X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5524765d17f4369be98790b986b5792cec9e79ac..8cdee8e0c75e6e62742eabc19bd8559cb13d5072:/script/locale/merge-from-translatewiki diff --git a/script/locale/merge-from-translatewiki b/script/locale/merge-from-translatewiki index e1616ce5f..afb3fca92 100644 --- a/script/locale/merge-from-translatewiki +++ b/script/locale/merge-from-translatewiki @@ -207,7 +207,6 @@ sub spit_out my $yaml_out = Dump $data; open my $fh, ">", $file; - say $fh "# Imported at " . (scalar localtime) . " from Translatewiki.net"; print $fh $yaml_out; close $fh; } @@ -306,9 +305,12 @@ sub get_translatewiki_translations } my %translatewiki_languages; - say "All languages are: @languages"; + my $all_count = scalar @languages; + say "Translatewiki has $all_count languages I'm about to get"; + my $count = 0; for my $lang (@languages) { - say STDERR "Getting language $lang from Translatewiki"; + $count ++; + say STDERR "Getting language $count/$all_count ($lang) from Translatewiki"; my $yaml = get_language_from_translatewiki($lang); my $flat_data = load_and_flatten_yaml($yaml);