Changeset 31086 in osm for applications
- Timestamp:
- 2015-04-18T00:25:50+02:00 (10 years ago)
- Location:
- applications/editors/josm/i18n
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/build.xml
r31029 r31086 97 97 </target> 98 98 <target name="buildcore" depends="po/josm.pot,init"> 99 <gettext-merge keysFile="josm.pot" poDirectory="po"/>100 99 <antcall target="coretrans"/> 101 100 </target> -
applications/editors/josm/i18n/i18n.pl
r30169 r31086 8 8 my $waswarn = 0; 9 9 my $maxcount = 0; 10 my $lang_pattern = '(.._..|...?|ca\@valencia)'; 10 11 11 12 main(); … … 29 30 30 31 my $cnt = -1; # don't count translators info 31 if($file =~ /\/ (.._..)\.po$/ || $file =~ /\/(...?)\.po$/)32 if($file =~ /\/$lang_pattern\.po$/) 32 33 { 33 34 my $l = $1; … … 261 262 my $la; 262 263 my $cnt = 0; 263 if($file =~ /[-_](.._..)\.lang$/ || $file =~ /^(?:.*\/)?(.._..)\.lang$/ || 264 $file =~ /[-_](...?)\.lang$/ || $file =~ /^(?:.*\/)?(...?)\.lang$/) 264 if($file =~ /[-_]$lang_pattern\.lang$/ || $file =~ /^(?:.*\/)?$lang_pattern\.lang$/) 265 265 { 266 266 $la = $1; -
applications/editors/josm/i18n/launchpad.pl
r31071 r31086 16 16 # list of supported languages 17 17 my %lang = map {$_ => 1} ( 18 "ast", "bg", "ca", "c s", "da", "de", "el", "en_AU", "en_GB",18 "ast", "bg", "ca", "ca\@valencia", "cs", "da", "de", "el", "en_AU", "en_GB", 19 19 "es", "et", "fi", "fr", "gl", "hu", "id", 20 20 "it", "ja", "km", "lt", "nl", "pl", "pt", "pt_BR", "ru", "sk", … … 157 157 foreach my $name (split("\n", `find $path -name "*.po"`)) 158 158 { 159 $name =~ /([a-zA-Z_ ]+)\.po/;159 $name =~ /([a-zA-Z_@]+)\.po/; 160 160 if($lang{$1}) 161 161 { 162 system "cp -v $name po/$1.po";162 system("cp", "-v", $name, "po/$1.po"); 163 163 } 164 164 elsif($cleanall)
Note:
See TracChangeset
for help on using the changeset viewer.