Update of /cvsroot/phpwebapp/web_app/doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11821
Modified Files:
changes.txt
Log Message:
*** empty log message ***
Index: changes.txt
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/doc/changes.txt,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** changes.txt 13 Jun 2005 06:55:21 -0000 1.17
--- changes.txt 13 Jun 2005 12:21:03 -0000 1.18
***************
*** 183,186 ****
--- 183,199 ----
application and its developer to decide about it.
+ In order to make a string translatable, it should be placed
+ as an argument of the T_() function and should be surrounded
+ by double quotes, like this: T_("Hello!") . This can be used
+ both in the PHP code and in the HTML templates (but not in
+ JS files, because they are not processed by the framework).
+
+ Then, the rest is the same as described by the gettext documentation
+ (see `info gettext`): the translatable strings are extracted
+ automatically from the PHP code and HTML templates using the
+ xgettext program (see `info xgettext`), creating *.po files,
+ then the strings are translated, then *.po files are converted
+ to *.mo files using `msgfmt`, then they are installed (placed at
+ the propper location in the application).
-------------------------------------------------------------------
|