]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix bustage from checkin of Bug 374331--defaultlanguage parameter no longer exists...
authormkanat%bugzilla.org <>
Sun, 6 May 2007 03:11:35 +0000 (03:11 +0000)
committermkanat%bugzilla.org <>
Sun, 6 May 2007 03:11:35 +0000 (03:11 +0000)
Bugzilla/Install.pm
docs/xml/customization.xml
editparams.cgi

index 36254a9c199e872a24f3ea09c11d397b99eba0ab..c488ab31405cd207e2a071b717eb5c6af66fda74 100644 (file)
@@ -36,6 +36,7 @@ use Bugzilla::Util qw(get_text);
 use Bugzilla::Version;
 
 sub SETTINGS {
+    my @languages = split(/[\s,]+/, Bugzilla->params->{'languages'});
     return {
     # 2005-03-03 travis@sedsystems.ca -- Bug 41972
     display_quips      => { options => ["on", "off"], default => "on" },
@@ -58,8 +59,8 @@ sub SETTINGS {
     # 2006-08-04 wurblzap@gmail.com -- Bug 322693
     skin               => { subclass => 'Skin', default => 'standard' },
     # 2006-12-10 LpSolit@gmail.com -- Bug 297186
-    lang               => { options => [split(/[\s,]+/, Bugzilla->params->{'languages'})],
-                            default => Bugzilla->params->{'defaultlanguage'} }
+    lang               => { options => \@languages,
+                            default => $languages[0] }
     }
 };
 
index 5b9e99deeee8a4648f478ce75bd9fa69a6f2786c..a513610be71d29ae43674bcd4942345bddee8130 100644 (file)
       <para>After untarring the localizations (or creating your own) in the 
       <filename class="directory">BUGZILLA_ROOT/template</filename> directory,
       you must update the <option>languages</option> parameter to contain any
-      localizations you'd like to permit. You may also wish to set the
-      <option>defaultlanguage</option> parameter to something other than
-      <quote>en</quote> if you don't want English to be the default language.
+      localizations you'd like to permit. You may also wish to re-order
+      the <option>languages</option> parameter so that <quote>en</quote> 
+      doesn't come first, if you don't want English to be the default language.
       </para>
     </section>
       
index ca74df6853295de8eb2ccfb8a86537b6c5e6964c..7d280474bd8364ff8ecf0e655eecb141972fb341 100755 (executable)
@@ -145,7 +145,7 @@ if ($action eq 'save' && $current_module) {
         # then we delete it (the user pref is reset to the default one).
         my @languages = split(/[\s,]+/, Bugzilla->params->{'languages'});
         map {trick_taint($_)} @languages;
-        add_setting('lang', \@languages, Bugzilla->params->{'defaultlanguage'}, undef, 1);
+        add_setting('lang', \@languages, $languages[0], undef, 1);
     }
 
     $vars->{'message'} = 'parameters_updated';