From 279403feb9a9dd94f8eb92b356f7aa202967da2a Mon Sep 17 00:00:00 2001 From: graf25 Date: Mon, 31 Dec 2001 05:18:53 +0000 Subject: [PATCH] Removing a workaround for old locale system. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2042 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/help.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/help.php b/src/help.php index 68f5643b..05afec40 100644 --- a/src/help.php +++ b/src/help.php @@ -122,26 +122,6 @@ if (!isset($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; $user_language = $squirrelmail_language; -- 2.25.1