From: Philippe M. <phi...@us...> - 2001-12-27 10:03:41
|
Update of /cvsroot/squirrelmail/squirrelmail/src In directory usw-pr-cvs1:/tmp/cvs-serv24106/src Modified Files: help.php Log Message: Konstantin patch Index: help.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/src/help.php,v retrieving revision 1.24 retrieving revision 1.25 diff -u -w -r1.24 -r1.25 --- help.php 2001/12/23 07:42:40 1.24 +++ help.php 2001/12/27 10:03:38 1.25 @@ -121,6 +121,26 @@ if (!$squirrelmail_language) $squirrelmail_language = "en"; + /** + * This harebrained solution is here because it produces the + * smallest patchfile. + * The real solution would be to either: + * a) move all locales into full-name locale names, like they + * really should be according to the ISO docs (e.g. en -> en_US, + * es -> es_ES, ru -> ru_RU), since it's standard to have a language + * name + undescore + country name. + * b) Provide a $languages['ru_RU']['HELPALIAS'] = 'ru'; + * + * Konstantin Riabitsev + */ + global $languages; + while (list($key, $val) = each($languages)){ + if ($val['ALIAS'] == $squirrelmail_language){ + $squirrelmail_language = $key; + break; + } + } + if (file_exists("../help/$squirrelmail_language")) { $help_exists = true; |