It is noteworthy that, according to the GNU gettext FAQ[1], * source code must be ASCII *. That means that you can't write code like
<?= _("áááàààãã")?>
in UTF-8, ISO-8859-1 or whatever, and hope that that will work. It won't.
[1]http://www.gnu.org/software/gettext/FAQ.html#nonascii_strings
Gettext
- Introduzione
- Installazione/Configurazione
- Costanti predefinite
- Gettext Funzioni
- bind_textdomain_codeset — Specify the character encoding in which the messages from the DOMAIN message catalog will be returned
- bindtextdomain — Sets the path for a domain
- dcgettext — Overrides the domain for a single lookup
- dcngettext — Plural version of dcgettext
- dgettext — Override the current domain
- dngettext — Plural version of dgettext
- gettext — Lookup a message in the current domain
- ngettext — Plural version of gettext
- textdomain — Sets the default domain
Gettext
djogopatrao at gmail dot com
10-Dec-2008 07:49
10-Dec-2008 07:49
php at devicenull dot org
21-Aug-2008 04:58
21-Aug-2008 04:58
To get this working properly on debian, install the locales-all package. I just spent a few hours finding a bug where it wouldn't work because that package is missing
thomasdecaux at hotmail dot com
14-Aug-2008 10:42
14-Aug-2008 10:42
Gettext is a function allowing to get translated text from a table. Its the common function used to internationalize a web site.
