From: Tomas K. <to...@us...> - 2005-08-05 17:06:57
|
> tk> Display INBOX as _("INBOX") and check how you display UTF7-IMAP > > Hmm, of course when I put _("INBOX") into my plugin code, it also > showed up in the plugin's POT file even though at runtime I'm in the > "squirrelmail" text domain. It's a slight distaction to have it > there. Is there some standard trick that people use to avoid that? Use dgettext call (http://www.php.net/dgettext) or use own domain. But with dgettext you create dependence on php gettext extension or SquirrelMail 1.5.1cvs. Dependence can be removed by writing simple failsafe wrapper function. if (! function_exists('dgettext')) { function dgettext($domain,$string) { return $string; } } If you use dgettext - make sure that all supported SquirrelMail versions contain used string. -- Tomas |