forked from organicmaps/organicmaps
Reverted apple fix and applied proper fix of norwegian locale (should be 'nb')
This commit is contained in:
parent
2440f513b6
commit
1f6623827e
2 changed files with 1 additions and 9 deletions
|
@ -13,8 +13,7 @@ module Twine
|
|||
'zh-rCN' => 'zh-Hans',
|
||||
'zh-rHK' => 'zh-Hant',
|
||||
'en-rGB' => 'en-UK',
|
||||
'in' => 'id',
|
||||
'nb' => 'no'
|
||||
'in' => 'id'
|
||||
# TODO: spanish
|
||||
]
|
||||
DEFAULT_LANG_CODES = Hash[
|
||||
|
|
|
@ -81,13 +81,6 @@ module Twine
|
|||
end
|
||||
|
||||
def write_file(path, lang)
|
||||
# This is a patch to correctly support Norwegian, when 'no' is specified in translations file,
|
||||
# but by default XCode creates nb.lproj folder and 'no' translation is ignored.
|
||||
# Strange that it works on Android even with values-nb folder name...
|
||||
# If you change translation to nb, then it works for Apple, but stops working on Android.
|
||||
if lang == "nb"
|
||||
lang = "no"
|
||||
end
|
||||
default_lang = @strings.language_codes[0]
|
||||
encoding = @options[:output_encoding] || 'UTF-8'
|
||||
File.open(path, "w:#{encoding}") do |f|
|
||||
|
|
Loading…
Add table
Reference in a new issue