Commit graph

80 commits

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason
a8babfbf43 #2351: Make the preset hint translatable 2009-10-15 12:03:10 +00:00
Ævar Arnfjörð Bjarmason
448a60f348 #2351: Make inspector and (and Yahoo) strings in Potlatch translatable. 2009-10-15 11:59:21 +00:00
Ævar Arnfjörð Bjarmason
320c4ca515 #2351: Make strings in potlatch.as translatable. Except for the Node/Way thing, don't know what to do with that. 2009-10-15 11:20:16 +00:00
Ævar Arnfjörð Bjarmason
b511f0f442 #2351: Make strings in offline.as translatable 2009-10-15 11:07:28 +00:00
Ævar Arnfjörð Bjarmason
e0eb2b79b7 [18163] commited by me yesterday (and reverted in [18165]) was
broken. I didn't restart rails when testing it because I thought lib/
was auto-refreshed as well and that:

    ruby -e 'x = []; x[0]["foo"] = "bar"'

Would work and autovify like it does in Perl. But no, you have to do:

    ruby -e 'x = [{}]; x[0]["foo"] = "bar"'

This commit is equivalent to [18163] aside from that fix to lib/potlatch.rb
2009-10-15 08:21:57 +00:00
Tom Hughes
d0c63b6d5d Revert r18163 as it is completely broken. 2009-10-15 07:46:54 +00:00
Ævar Arnfjörð Bjarmason
cc9a9ee399 Make the preset list at the bottom of the screen (Airport, Bus stop,
...) translatable
2009-10-14 23:42:09 +00:00
Translatewiki
31994a23ca Localisation updates from translatewiki.net (2009-10-15) 2009-10-14 23:02:03 +00:00
Translatewiki
709d0627fb Remove a trailing newline and rename duplicate second "Page 4" to "Page 5" 2009-10-10 23:14:36 +00:00
Richard Fairhurst
b889fea285 add OS7 to autocomplete 2009-10-10 22:11:03 +00:00
Translatewiki
ba7207b92c Localisation updates from translatewiki.net (2009-10-10) 2009-10-10 19:24:32 +00:00
Translatewiki
579170b1f4 localisation updates from translatewiki.net (2009-10-08) 2009-10-08 21:39:07 +00:00
Translatewiki
468d2766d8 * localisation updates from translatewiki.net (2009-10-07) 2009-10-06 23:03:08 +00:00
Translatewiki
15aa686d97 Another update for ru.yml. If this does not work, please let me know. Would also like to get rid of the leading newlines... 2009-10-04 11:35:49 +00:00
Translatewiki
cfb8d4cfbd Fix syntax error in r17978 2009-10-04 11:32:30 +00:00
Translatewiki
65c0675acb Localisation updates from translatewiki.net (2009-10-04) 2009-10-04 11:28:57 +00:00
Ævar Arnfjörð Bjarmason
d3c9842d50 Make Mail/Revert in History dialog i18n-able 2009-10-04 08:40:37 +00:00
Translatewiki
9c5755b647 Localisation updates from translatewiki.net (2009-10-02) 2009-10-02 11:28:35 +00:00
Translatewiki
3d4adecbc6 * Remove trailing newline from help_html
* Update message order
2009-10-02 11:20:57 +00:00
Translatewiki
1812b01564 * Localisation updates from translatewiki.net (2009-10-01)
* svn:eol-style native
2009-10-01 13:42:46 +00:00
Ævar Arnfjörð Bjarmason
f80d250d77 RichardF forgot to nuke cz.yml in [17664]. Nuking 2009-10-01 13:18:45 +00:00
Ævar Arnfjörð Bjarmason
03fd04be95 The 'more' message used in the history dialog (history.as) was missing 2009-10-01 10:59:43 +00:00
Ævar Arnfjörð Bjarmason
5f7586fb0a This whitespace at the end of "Custom: " isn't needed. The layer
selector looks the same without it and Translatewiki pukes on it.

In any case this needs to be turned into a message with
parameters. But Potlatch's code is too hairy so I'm not touching it.
2009-10-01 10:39:31 +00:00
Ævar Arnfjörð Bjarmason
7ac795ff54 Fixed message key that was broken due to a broken regex I used during
importing. It had AS message params mixed up with it.
2009-10-01 10:21:12 +00:00
Richard Fairhurst
495b8e2cb6 show buildings in pink 2009-09-30 23:54:25 +00:00
Ævar Arnfjörð Bjarmason
e7d7f35120 Some of these files were in ISO-8859-1, no idea how that happened.
Fixed with:

{{{
for i in $(file *|grep ISO|awk '{print $1}'|sed s/://); do cat $i | iconv -f iso-8859-1 -t utf-8 > $i.utf8;done
for i in *yml; do mv $i.utf8 $i; done
}}}
2009-09-23 18:14:30 +00:00
Ævar Arnfjörð Bjarmason
65fec5d38a Removing zh-HANS: Just contained a few messages in English 2009-09-23 18:09:00 +00:00
Ævar Arnfjörð Bjarmason
623c0dcef8 Removed i18n messages which contained English - old crap from the wiki 2009-09-23 18:08:01 +00:00
Ævar Arnfjörð Bjarmason
f32dc6ff8c Make the 'Advanced' menu translatable 2009-09-23 18:03:20 +00:00
Ævar Arnfjörð Bjarmason
d5c71f697b Delete redundant translations from localised files.
I used this script:

{{{
#!/usr/bin/env perl
use feature ':5.10';
use strict;
use warnings;
use YAML::Syck qw(Load LoadFile Dump DumpFile);
use File::Slurp qw(slurp);
use Data::Dump 'dump';
use Encode qw(decode);
use autodie;

$YAML::Syck::Headless = 1;
$YAML::Syck::SortKeys = 1;
$YAML::Syck::ImplicitUnicode = 1;

my %lang;
chdir 'locales';
my @yml = glob "*.yml";
my @lang = map { s/\.yml//; $_ } @yml;

for my $lang (@lang) {
    say "Loading $lang";
    $lang{$lang} = LoadFile("$lang.yml")->{$lang};
}

for my $lang (grep { $_ ne 'en' } @lang) {
    while (my ($k, $v) = each %{ $lang{ $lang } }) {
        if ($lang{ $lang }->{$k} eq $lang{ en }->{$k}
            or (exists $lang{ $lang }->{$k} and not exists $lang{ en }->{$k})) {
            delete $lang{ $lang }->{$k};
        }
    }
}

for my $lang (@lang) {
    DumpFile("$lang.yml", { $lang => $lang{$lang} }) or die "arghl";
}
}}}
2009-09-23 17:29:29 +00:00
Ævar Arnfjörð Bjarmason
aeca7367be Used perl -pi -e 's/^.*?"action_createpoi":/ action_createpoi:/g' *yml 2009-09-23 17:23:58 +00:00
Ævar Arnfjörð Bjarmason
889523944f Convert all the Potlatch locale files to a rails-like format (to make
it easier for Translatewiki).

Here's the program I used to convert it:

{{{
    #!/usr/bin/env perl
    use feature ':5.10';
    use strict;
    use warnings;
    use YAML::Syck qw(Load LoadFile Dump DumpFile);
    use File::Slurp qw(slurp);
    use Data::Dump 'dump';
    use Encode qw(decode);
    use autodie;
    
    $YAML::Syck::Headless = 1;
    $YAML::Syck::SortKeys = 1;
    $YAML::Syck::ImplicitUnicode = 1;
    
    my %lang;
    chdir 'locales';
    my @yml = glob "*.yml";
    my @lang = map { s/\.yml//; $_ } @yml;
    
    for my $lang (@lang) {
        say "Loading $lang";
    
        my $file = "$lang.yml";
        $lang{$lang} = LoadFile($file);
        if (-f "$lang.html") {
            $lang{$lang}->{"help_html"} = slurp("$lang.html")
        }
    
        DumpFile("$lang.yml.new", { $lang => $lang{$lang} }) or die "arghl";
    }
}}}
2009-09-23 16:26:17 +00:00
Ævar Arnfjörð Bjarmason
c60743e615 I'm hacking the Potlatch i18n system, moving the old files to the new location before I overwrite them to preserve history 2009-09-23 16:05:09 +00:00
Ævar Arnfjörð Bjarmason
3d4270d452 Syncing translations from the wiki. Hopefully for the last time :) 2009-09-23 15:51:33 +00:00
Richard Fairhurst
1db51102cd Or maybe this one. #2279. Ugh. 2009-09-17 00:51:45 +00:00
Richard Fairhurst
34fb52dcb7 Localisation 2009-09-17 00:48:55 +00:00
Richard Fairhurst
8dd2ce3ff0 fix annoying retry bug, and fine-tune relations colours 2009-09-06 23:54:02 +00:00
Richard Fairhurst
737a36fada Potlatch 1.2a 2009-08-30 19:14:50 +00:00
Balló György
b108476b9e Updated Hungarian translation for Potlatch 1.2 2009-08-19 14:52:54 +00:00
Richard Fairhurst
6e6b44e494 small parallel way fix, plus handy new 'join' keypress (J) 2009-08-07 00:25:00 +00:00
Richard Fairhurst
55e8611653 add secondary_link 2009-08-05 08:51:08 +00:00
Richard Fairhurst
233f3ee527 Potlatch 1.2 2009-08-04 22:24:20 +00:00
Tom Hughes
e94d21f829 Remove bogus executable permissions. 2009-07-14 23:10:39 +00:00
Ævar Arnfjörð Bjarmason
47de08218f New Potlatch translations pulled in as a result of http://wiki.openstreetmap.org/index.php?title=Template%3APotlatch%2FTranslation&diff=302859&oldid=301148 2009-07-14 22:23:38 +00:00
Ævar Arnfjörð Bjarmason
85fe28cabf Updated Hungarian translation from the wiki 2009-07-14 22:06:12 +00:00
Ævar Arnfjörð Bjarmason
212d56ce88 Delete the old localised.yaml file Potlatch used before it was split into per-language files 2009-07-14 21:40:50 +00:00
Balló György
684ba8b26a Updated Hungarian translation of Potlatch 2009-07-13 15:47:51 +00:00
Balló György
866e982488 Updated Hungarian translation of Potlatch 2009-07-12 15:55:00 +00:00
Balló György
7488c5056a Updated Hungarian translation of Potlatch 2009-07-12 13:27:36 +00:00
Richard Fairhurst
1ef85668de and the accompanying SWF 2009-07-09 20:00:29 +00:00