[wpmu-trac] [WordPress MU Trac] #270: If there is only one extra
language pack, the change WPLANG option will not show up.
WordPress MU Trac
wpmu-trac at lists.automattic.com
Fri Mar 2 23:35:28 GMT 2007
#270: If there is only one extra language pack, the change WPLANG option will not
show up.
------------------------+---------------------------------------------------
Reporter: kingler | Owner: somebody
Type: defect | Status: new
Priority: high | Milestone:
Component: component1 | Version: 1.0
Severity: major | Keywords: WPLANG language
------------------------+---------------------------------------------------
in wp-admin/options-general.php, the following line is causing problems.
{{{
if( is_array( $lang_files ) && count($lang_files) > 1 ) {
}}}
When adding an extra language pack to the wp-includes/languages/ folder,
only 1 file will be found in that folder. According the above line, the
change language option will not be shown!
If the >1 line is changed to >0, there is still a problem. If the site-
admin set the default site language to something other than the default
language, an user will not be able to set the language back to English.
The reason is with the same file options-general.php.
{{{
if( $lang == false ) {
$lang = get_site_option( "WPLANG" );
add_option( "WPLANG", $lang );
}
}}}
This part of the code checks whether $lang is empty or not. If it is
empty, it will be reset to the site default. However, English language as
a default will set the WPLANG option as empty, but the code will interpret
it as no setting and apply the site default.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/270>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list