X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5cbd4038edb32b0304bd766e70fc680ea447b52b..aba28ec9e0fef281d0228cfd6b5fc4986c8e2f18:/script/locale/po2yaml diff --git a/script/locale/po2yaml b/script/locale/po2yaml index a4b8ac8b7..69278ea69 100755 --- a/script/locale/po2yaml +++ b/script/locale/po2yaml @@ -21,11 +21,11 @@ end def po2hash(f) trs = {} path = [] - msgstr = '' + msgstr = "" f.each_line do |line| line.strip! if line[0..8] == 'msgctxt "' - path = line[9..-2].split(':') + path = line[9..-2].split(":") elsif line[0..7] == 'msgstr "' msgstr = line[8..-2] end @@ -34,7 +34,7 @@ def po2hash(f) add_translation(trs, path, msgstr) path = [] - msgstr = '' + msgstr = "" end trs end @@ -42,7 +42,7 @@ end filename = ARGV[0] pofile = File.open(filename, "r") -langcode = File.basename(filename, '.po') +langcode = File.basename(filename, ".po") tr = { langcode => po2hash(pofile) }