Changeset 31086 in osm for applications


Ignore:
Timestamp:
2015-04-18T00:25:50+02:00 (10 years ago)
Author:
simon04
Message:

see #josm11148 - Add Valencian language to josm (ca@valencia)

Location:
applications/editors/josm/i18n
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/build.xml

    r31029 r31086  
    9797    </target>
    9898    <target name="buildcore" depends="po/josm.pot,init">
    99         <gettext-merge keysFile="josm.pot" poDirectory="po"/>
    10099        <antcall target="coretrans"/>
    101100    </target>
  • applications/editors/josm/i18n/i18n.pl

    r30169 r31086  
    88my $waswarn = 0;
    99my $maxcount = 0;
     10my $lang_pattern = '(.._..|...?|ca\@valencia)';
    1011
    1112main();
     
    2930
    3031    my $cnt = -1; # don't count translators info
    31     if($file =~ /\/(.._..)\.po$/ || $file =~ /\/(...?)\.po$/)
     32    if($file =~ /\/$lang_pattern\.po$/)
    3233    {
    3334      my $l = $1;
     
    261262    my $la;
    262263    my $cnt = 0;
    263     if($file =~ /[-_](.._..)\.lang$/ || $file =~ /^(?:.*\/)?(.._..)\.lang$/ ||
    264     $file =~ /[-_](...?)\.lang$/ || $file =~ /^(?:.*\/)?(...?)\.lang$/)
     264    if($file =~ /[-_]$lang_pattern\.lang$/ || $file =~ /^(?:.*\/)?$lang_pattern\.lang$/)
    265265    {
    266266      $la = $1;
  • applications/editors/josm/i18n/launchpad.pl

    r31071 r31086  
    1616# list of supported languages
    1717my %lang = map {$_ => 1} (
    18 "ast", "bg", "ca", "cs", "da", "de", "el", "en_AU", "en_GB",
     18"ast", "bg", "ca", "ca\@valencia", "cs", "da", "de", "el", "en_AU", "en_GB",
    1919"es", "et", "fi", "fr", "gl", "hu", "id",
    2020"it", "ja", "km", "lt", "nl", "pl", "pt", "pt_BR", "ru", "sk",
     
    157157    foreach my $name (split("\n", `find $path -name "*.po"`))
    158158    {
    159         $name =~ /([a-zA-Z_]+)\.po/;
     159        $name =~ /([a-zA-Z_@]+)\.po/;
    160160        if($lang{$1})
    161161        {
    162             system "cp -v $name po/$1.po";
     162            system("cp", "-v", $name, "po/$1.po");
    163163        }
    164164        elsif($cleanall)
Note: See TracChangeset for help on using the changeset viewer.