X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..baf10cd39289cd7e94a819305e46f43e85a136c6:/script/locale/yaml2po diff --git a/script/locale/yaml2po b/script/locale/yaml2po index 22d3e78db..2753d69b7 100755 --- a/script/locale/yaml2po +++ b/script/locale/yaml2po @@ -16,7 +16,6 @@ LOCALE_DIR = File.dirname(__FILE__) + '/../../config/locales/' EN = YAML.load_file(LOCALE_DIR + 'en.yml') def iterate(hash, fhash = {}, path = '', outfile = $stdout) - postr = '' hash.each do |key, val| fhash[key] = {} unless fhash.key? key if val.is_a? Hash @@ -32,7 +31,6 @@ end def lang2po(lang, outfile = $stdout) puts lang - oth = {} infile = LOCALE_DIR + lang + '.yml' if File.exist? infile oth = YAML.load_file(infile)