Hmmm ... yes ... a bug....
here's the fix:
/admin/languages.php
line 189 starts with:
PHP Code:
// check if we're changing settings for the default language
$result = $db->Execute("select code from " . TABLE_LANGUAGES . " where languages_id = '" . (int)$lID . "'");
$default_lang_change_flag = (DEFAULT_LANGUAGE == $result->fields['code'] && DEFAULT_LANGUAGE == $code) ? false : true;
replace that with:
PHP Code:
// check if the spelling of the name for the default language has just been changed (thus meaning we need to change the spelling of DEFAULT_LANGUAGE to match it)
$result = $db->Execute("select code from " . TABLE_LANGUAGES . " where languages_id = '" . (int)$lID . "'");
$changing_default_lang = (DEFAULT_LANGUAGE == $result->fields['code']) ? true : false;
$default_needs_an_update = (DEFAULT_LANGUAGE == $code) ? false : true;
$default_lang_change_flag = ($default_needs_an_update && $changing_default_lang) ? true : false;
Bookmarks