The Rails application that powers OpenStreetMap
Find a file
Æ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
app Remove remaining trailing spaces from translations. 2009-09-22 20:15:09 +00:00
config Convert all the Potlatch locale files to a rails-like format (to make 2009-09-23 16:26:17 +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/