diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-08 13:42:23 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-08 13:42:23 +0000 |
commit | 91dcde955e9f68db1e3af84366632ad9ae87cbad (patch) | |
tree | 5f827cb908cd84692d3233b22a7c241325fa7c2f /phpBB/install | |
parent | 9cfa28b5020afb7447105f85d03d1db01ac11aab (diff) | |
download | forums-91dcde955e9f68db1e3af84366632ad9ae87cbad.tar forums-91dcde955e9f68db1e3af84366632ad9ae87cbad.tar.gz forums-91dcde955e9f68db1e3af84366632ad9ae87cbad.tar.bz2 forums-91dcde955e9f68db1e3af84366632ad9ae87cbad.tar.xz forums-91dcde955e9f68db1e3af84366632ad9ae87cbad.zip |
Changes to language functionality.
Notes to translators:
* Language directory should where possible be named xx[_yy[_zz]] as appropriate for the language code (lower case with underscores to separate)
* USER_LANG should contain the relevant iso code which is returned with page content (ie en-gb for the default language pack)
git-svn-id: file:///svn/phpbb/trunk@6468 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install')
-rwxr-xr-x | phpBB/install/index.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 96828fb939..172d296399 100755 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -120,8 +120,8 @@ if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language) $accept_lang_ary = explode(',', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])); foreach ($accept_lang_ary as $accept_lang) { - // Set correct format ... guess full xx-yy form - $accept_lang = substr($accept_lang, 0, 2) . '-' . substr($accept_lang, 3, 2); + // Set correct format ... guess full xx_yy form + $accept_lang = substr($accept_lang, 0, 2) . '_' . substr($accept_lang, 3, 2); if (file_exists($phpbb_root_path . 'language/' . $accept_lang)) { @@ -130,7 +130,7 @@ if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language) } else { - // No match on xx-yy so try xx + // No match on xx_yy so try xx $accept_lang = substr($accept_lang, 0, 2); if (file_exists($phpbb_root_path . 'language/' . $accept_lang)) { @@ -311,7 +311,7 @@ class module } define('HEADER_INC', true); - global $template, $lang, $language, $stage, $phpbb_root_path; + global $template, $lang, $stage, $phpbb_root_path; $template->assign_vars(array( 'L_CHANGE' => $lang['CHANGE'], @@ -324,7 +324,7 @@ class module 'S_CONTENT_ENCODING' => 'UTF-8', 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], - 'S_USER_LANG' => $language, + 'S_USER_LANG' => $lang['USER_LANG'], ) ); |