diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/genlang | 4 | ||||
-rwxr-xr-x | tools/updatelang | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/genlang b/tools/genlang index abff3e8e18..24b29b7d9a 100755 --- a/tools/genlang +++ b/tools/genlang | |||
@@ -469,6 +469,10 @@ while(<LANG>) { | |||
469 | else { | 469 | else { |
470 | $idnum = $idcount[$user]++; | 470 | $idnum = $idcount[$user]++; |
471 | } | 471 | } |
472 | |||
473 | # Strip out the magic "Same as english" flag | ||
474 | $dest =~ s/^("?)~/$1/; | ||
475 | $voice =~ s/^("?)~/$1/; | ||
472 | 476 | ||
473 | $id{$idstr} = $idnum; | 477 | $id{$idstr} = $idnum; |
474 | $idnum[$user][$idnum]=$idstr; | 478 | $idnum[$user][$idnum]=$idstr; |
diff --git a/tools/updatelang b/tools/updatelang index 6f0012c573..e8a5fcae9d 100755 --- a/tools/updatelang +++ b/tools/updatelang | |||
@@ -360,7 +360,7 @@ foreach my $id (@langorder) { | |||
360 | $lang{$id}{'dest'}{$tgt} = $english{$id}{'dest'}{$tgt}; | 360 | $lang{$id}{'dest'}{$tgt} = $english{$id}{'dest'}{$tgt}; |
361 | } | 361 | } |
362 | } elsif ($lp{$tgt} ne 'none' && $lp{$tgt} ne '' && not_ignorelist($id) && !$lang{$id}{'new'} && !$ignoredups) { | 362 | } elsif ($lp{$tgt} ne 'none' && $lp{$tgt} ne '' && not_ignorelist($id) && !$lang{$id}{'new'} && !$ignoredups) { |
363 | $lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' is identical to english!\n"; | 363 | $lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' is identical to english! (correct or prefix with ~)\n"; |
364 | # print "#!! '$id:$tgt' dest identical ('$lp{$tgt}')\n"; | 364 | # print "#!! '$id:$tgt' dest identical ('$lp{$tgt}')\n"; |
365 | } | 365 | } |
366 | if ($id eq 'LANG_VOICED_DATE_FORMAT') { | 366 | if ($id eq 'LANG_VOICED_DATE_FORMAT') { |
@@ -466,7 +466,7 @@ foreach my $id (@langorder) { | |||
466 | $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is identical to english, copying translated <dest>\n"; | 466 | $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is identical to english, copying translated <dest>\n"; |
467 | $lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt}; | 467 | $lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt}; |
468 | } else { | 468 | } else { |
469 | $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is identical to english!\n"; | 469 | $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is identical to english! (correct or prefix with ~)\n"; |
470 | } | 470 | } |
471 | } | 471 | } |
472 | if (defined($lp{$tgt}) && ($lp{$tgt} =~ /%"/)) { | 472 | if (defined($lp{$tgt}) && ($lp{$tgt} =~ /%"/)) { |