Browse Source

Set proper locale.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10629 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.2.0
Jean-Philippe Lang 11 years ago
parent
commit
43da05f3cb
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      test/unit/lib/redmine/i18n_test.rb

+ 2
- 0
test/unit/lib/redmine/i18n_test.rb View 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')

Loading…
Cancel
Save