]> git.openstreetmap.org Git - rails.git/commit
Translatewiki doesn't support trailing whitespace in messages. So if
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 20 Sep 2009 10:10:12 +0000 (10:10 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 20 Sep 2009 10:10:12 +0000 (10:10 +0000)
commit039a49a97b5376e8b92ea2bfe5c31ff1c0ca9f17
tree4abb77cd9cd15df1569647c158496cef24dacc7c
parent00332614f9ceb89931289bcf8f17a52716124483
Translatewiki doesn't support trailing whitespace in messages. So if
we want to move to it (without hacking it) we're going to have to
eliminate those.

I compiled a list of them and I'm removing trailing whitespace from
those messages where the whitespace was a no-op. Mostly cases like
"<td>foo </td><td>bar</td>" or "<p>foo \n</p>"

These are the commands I ran to remove them:

    perl -pi -e 's[(      )(coordinates:)(\s*)"(.*?) "$][$1$2$3"$4"]g' *yml
    perl -pi -e 's[(      )(subject:|language:|location:|latitude:|latitude:|longitude:|coordinates:)(\s*)"(.*?) "$][$1$2$3"$4"]g' *yml
    perl -pi -e 's[(      )(recent_entries:)(\s*)"(.*?) "$][$1$2$3"$4"]g' *yml
    perl -pi -e 's[(      )(home location:|latitude:|longitude:|preferred languages:|profile description:|)(\s*)"(.*?) "$][$1$2$3"$4"]g' *yml
    perl -pi -e 's[^(        )(heading:)(\s*)"(.*?) "$][$1$2$3"$4"]g' *yml
    perl -pi -e 's[^(      )(email or username:|password:|confirm email address:|display name:|email address:|confirm password:|nearby users:)(\s*)"(.*?) "$][$1$2$3"$4"]g' *yml
    perl -pi -e 's[(      contact_webmaster:\s*)\x27(.*?) \x27][$1\x27$2\x27]' *yml
21 files changed:
config/locales/be.yml
config/locales/de.yml
config/locales/en.yml
config/locales/fr.yml
config/locales/gcf.yml
config/locales/he.yml
config/locales/hi.yml
config/locales/hu.yml
config/locales/is.yml
config/locales/it.yml
config/locales/ja.yml
config/locales/ko.yml
config/locales/nl.yml
config/locales/pl.yml
config/locales/pt-BR.yml
config/locales/ro.yml
config/locales/ru.yml
config/locales/sl.yml
config/locales/vi.yml
config/locales/yo.yml
config/locales/zh-CN.yml