Write all languages to the twine strings file.

We used to only write translations to the strings file that did not
match the developer language. It was done this way to try and reduce
space in the strings file and to get en-UK to pick up en changes.

This turned out to be the wrong decision. It's better to explicitly
ensure that all strings are translated in all languages, and to not
automatically pick up en string changes in other languages.

This fixes issue #29.
This commit is contained in:
Sebastian Celis 2013-06-16 21:40:13 -05:00
parent 9a3f4fdc44
commit 63fd78f0bc

View file

@ -167,7 +167,7 @@ module Twine
end
@language_codes[1..-1].each do |lang|
value = row.translations[lang]
if value && value != row.translations[dev_lang]
if value
if value[0,1] == ' ' || value[-1,1] == ' ' || (value[0,1] == '`' && value[-1,1] == '`')
value = '`' + value + '`'
end