Keep derivatives of dev languahe close to the top
allow en en-GB before alphabetical sorting Aligns with existing and is more logical
This commit is contained in:
parent
960715c45a
commit
5751945f1d
1 changed files with 9 additions and 1 deletions
|
@ -232,7 +232,15 @@ module Twine
|
|||
end
|
||||
|
||||
@language_codes[1..-1].each do |lang|
|
||||
write_value(definition, lang, f)
|
||||
if lang =~ /^#{dev_lang}/
|
||||
write_value(definition, lang, f)
|
||||
end
|
||||
end
|
||||
|
||||
@language_codes[1..-1].each do |lang|
|
||||
if not lang =~ /^#{dev_lang}/
|
||||
write_value(definition, lang, f)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Reference in a new issue