Support empty translations.

This seems strange, but I can imagine weird scenarios where a key should
translate to nothing in certain languages. So, let's support this for
now.
This commit is contained in:
Sebastian Celis 2012-02-15 11:16:36 -06:00
parent 6f286dc159
commit 125eb59036

View file

@ -94,7 +94,7 @@ module Twine
parsed = true
end
else
match = /^([^=]+)=(.+)$/.match(line)
match = /^([^=]+)=(.*)$/.match(line)
if match
key = match[1].strip
value = match[2].strip