]> source.dussan.org Git - redmine.git/commitdiff
Set proper locale.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Oct 2012 08:22:49 +0000 (08:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Oct 2012 08:22:49 +0000 (08:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10629 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/i18n_test.rb

index 37a440e677a124a3c28d559b60460c0ed4f884e5..8d31821fe9527b23216596477bbef0a19c1bd918 100644 (file)
@@ -239,6 +239,7 @@ class Redmine::I18nTest < ActiveSupport::TestCase
   end
 
   def test_traditional_chinese_locale
+    set_language_if_valid 'zh-TW'
     str_tw = "Traditional Chinese (\xe7\xb9\x81\xe9\xab\x94\xe4\xb8\xad\xe6\x96\x87)"
     if str_tw.respond_to?(:force_encoding)
       str_tw.force_encoding('UTF-8')
@@ -247,6 +248,7 @@ class Redmine::I18nTest < ActiveSupport::TestCase
   end
 
   def test_french_locale
+    set_language_if_valid 'fr'
     str_fr = "Fran\xc3\xa7ais"
     if str_fr.respond_to?(:force_encoding)
       str_fr.force_encoding('UTF-8')