Changeset 11669 in josm for trunk/scripts
- Timestamp:
- 2017-03-04T22:25:06+01:00 (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/presets_lang.pl
r11667 r11669 41 41 $datan{"de"} = "/wiki/Proposed_features/De:Hausnummern"; 42 42 } 43 while($main =~ /< bdi lang="([a-z_A-Z-]+)"(?: style="unicode-bidi:embed;unicode-bidi:-webkit-isolate;unicode-bidi:isolate")?><a href="(\/wiki\/.*?)"/g)43 while($main =~ /<a href="(\/wiki\/[^"]+)"[^>]+><b>·<\/b> <bdi lang="([a-z_A-Z-]+)"(?: style="unicode-bidi:embed;unicode-bidi:-webkit-isolate;unicode-bidi:isolate")?>/g) 44 44 { 45 my $lang = lc($ 1);46 my $val = uri_unescape($ 2);45 my $lang = lc($2); 46 my $val = uri_unescape($1); 47 47 $lang = "$1_".uc($2) if($lang =~ /^(..)[_-](..)$/); 48 48 $lang = "zh_CN" if $lang eq "zh-hans"; 49 49 $lang = "zh_TW" if $lang eq "zh-hant"; 50 $datan{$lang} = $val; 50 if(-f "data/$lang.lang") 51 { 52 $datan{$lang} = $val; 53 } 54 else 55 { 56 print "Skip lang $lang\n"; 57 } 51 58 } 52 59 while($main =~ /<a href="(\/wiki\/([a-zA-Z-_]):.*?)".*? • /g)
Note:
See TracChangeset
for help on using the changeset viewer.