openstreetmap-website/config/potlatch
Æ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
..
locales Convert all the Potlatch locale files to a rails-like format (to make 2009-09-23 16:26:17 +00:00
autocomplete.txt Remove bogus executable permissions. 2009-07-14 23:10:39 +00:00
colours.txt Potlatch 1.2a 2009-08-30 19:14:50 +00:00
icon_presets.txt and the accompanying SWF 2009-07-09 20:00:29 +00:00
presets.txt Potlatch 1.2a 2009-08-30 19:14:50 +00:00
relation_colours.txt fix annoying retry bug, and fine-tune relations colours 2009-09-06 23:54:02 +00:00