SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Geoffrey T. D. <da...@us...> - 2001年05月31日 17:35:35
Update of /cvsroot/phpwiki/phpwiki
In directory usw-pr-cvs1:/tmp/cvs-serv6139
Added Files:
	README.coding 
Log Message:
New file: beginnings of coding style notes.
--- NEW FILE ---
Here are the beginnings of some coding guidelines for PhpWiki.
! I18N: Using gettext()
String literals which end up making it into the HTML output should be wrapped
with a call to ''gettext()''. This allows translations to be substituted when 
PhpWiki is run in non-english environments.
It is important that the argument of ''gettext()'' be a constant string
literal, in double quotes (").
 OKAY: gettext("This is a message.");
 OKAY: gettext ("Fazool."); 
 OKAY: sprintf(gettext("Hello %s"), $name);
 BAD: gettext('This will be ignored by xgettext.');
 BAD: gettext("Howdy" . ", wazoo");
 BAD: gettext("Hello $name");
 BAD: define("MES", "howdy"); gettext(MES);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /