The Rails application that powers OpenStreetMap
Find a file
Æ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
app [2304]: Split the default English i18n parameter in Potlatch out to a YAML file 2009-09-23 17:08:46 +00:00
config Delete redundant translations from localised files. 2009-09-23 17:29:29 +00:00
db Add xid_to_int4() function for Postgres. 2009-09-07 16:44:54 +00:00
doc changed component name in trac 2009-07-25 11:47:39 +00:00
lib Replace hard coded nwr enumeration support with a more generic 2009-08-04 13:23:36 +00:00
public Potlatch 1.2b 2009-09-17 00:38:20 +00:00
script oops, wrong e-mail address 2009-09-07 19:29:25 +00:00
test Workaround rails 2.3.4 bogus deprecation warnings. 2009-09-04 10:52:58 +00:00
vendor Icelandic day names should be in lower case 2009-09-17 22:49:42 +00:00
Rakefile beginning of osm on rails 2006-07-28 21:41:39 +00:00
README Lots of documentation updates, plus split out potlatch libraries in to lib 2008-01-24 16:03:56 +00:00

Documentation
=============

Try `rake doc:app` and see /doc/