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
- Introducción
- Installing/Configuring
- Constantes predefinidas
- Gettext Functions
- bind_textdomain_codeset — Especificar la codificación de caracteres con la que serán devueltos los mensajes del catálogo DOMINIO
- bindtextdomain — Define la ruta para un dominio
- dcgettext — Sobrescribe el dominio para una búsqueda única
- dcngettext — Versión plural de dcgettext
- dgettext — Sobrescribir el dominio actual
- dngettext — Versión plural de dgettext
- gettext — Consultar un mensaje en el dominio actual
- ngettext — Versión plural de gettext
- textdomain — Establece el dominio predeterminado
Gettext
djogopatrao at gmail dot com
10-Dec-2008 10:49
10-Dec-2008 10:49
php at devicenull dot org
20-Aug-2008 07:58
20-Aug-2008 07: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 01:42
14-Aug-2008 01:42
Gettext is a function allowing to get translated text from a table. Its the common function used to internationalize a web site.
