note 22052 added to ref.gettext
| From: | mgvNOSPAM at fx dot ro | Date: | Tue, 04 Jun 2002 23:47:37 +0000 |
| Subject: | note 22052 added to ref.gettext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31463@lists.php.net to get a copy of this message | ||
If you're as clueless as I am, please note the following:
1. Although most comments list setlocal() in the code, that's not actually required for
translations - read the docs under "string functions" for details (also, the official
gettext() examples don't include it);
2. hace_x's example is really cool, except you need to know that all "n"'s at
the end of his strings should have a backslash before - they're actually EOL characters, but
they somehow got messed up and I needed two hours to find that out...
--
http://www.php.net/manual/en/ref.gettext.php
http://master.php.net/manage/user-notes.php?action=edit+22052
http://master.php.net/manage/user-notes.php?action=delete+22052
http://master.php.net/manage/user-notes.php?action=reject+22052