note 33159 added to ref.gettext

From: Date: Tue, 17 Jun 2003 23:15:19 +0000
Subject: note 33159 added to ref.gettext
Groups: php.notes 
Request: Send a blank email to php-notes+get-50539@lists.php.net to get a copy of this message
Even though in some cases setlocale() may require a country code in addition to the language code this does not mean that it is required for gettext. If setlocale() is set to either es_ES or es_MX gettext() will still get the text from a po file in the 'es' folder. It probably is not a good idea to go changing a systems alias file(s) just to avoid the verbosity of the ISO standard because: a) you might break something b) your code just lost it's portability . ---- Manual Page -- http://www.php.net/manual/en/ref.gettext.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33159 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33159&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33159&report=yes

« previous php.notes (#50539) next »