Commit 3dfa3bbd authored by intrigeri's avatar intrigeri
Browse files

Test suite: adjust preferred locales used by "the Unsafe Browser works in all supported languages".

parent 7c8b6da7
......@@ -13,7 +13,8 @@ def supported_torbrowser_languages
File.read(localization_descriptions).split("\n").map do |line|
# The line will be of the form "xx:YY:..." or "xx-YY:YY:..."
first, second = line.sub('-', '_').split(':')
candidates = ["#{first}_#{second}.utf8", "#{first}.utf8",
candidates = ["#{first}_#{second}.UTF-8", "#{first}_#{second}.utf8",
"#{first}.UTF-8", "#{first}.utf8",
"#{first}_#{second}", first]
when_not_found = Proc.new { raise "Could not find a locale for '#{line}'" }
candidates.find(when_not_found) do |candidate|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment