summaryrefslogtreecommitdiff
path: root/tools/updatelang
diff options
context:
space:
mode:
Diffstat (limited to 'tools/updatelang')
-rwxr-xr-xtools/updatelang7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/updatelang b/tools/updatelang
index 7a3cb934b9..fa78430958 100755
--- a/tools/updatelang
+++ b/tools/updatelang
@@ -57,9 +57,10 @@ sub parselangfile {
57 } 57 }
58 } elsif ($pos ne 'phrase' && $line =~ /^([^:]+): ?\"?([^\"]*)\"?$/) { 58 } elsif ($pos ne 'phrase' && $line =~ /^([^:]+): ?\"?([^\"]*)\"?$/) {
59 my @targets = split(',', $1); 59 my @targets = split(',', $1);
60 my $w = $2;
61
60 foreach (@targets) { 62 foreach (@targets) {
61 my $l = trim($_); 63 my $l = trim($_);
62
63 # Convert some obsolete keys 64 # Convert some obsolete keys
64 if ($l eq "swcodec") { 65 if ($l eq "swcodec") {
65 $l = "*"; 66 $l = "*";
@@ -67,9 +68,11 @@ sub parselangfile {
67 $l = "*"; 68 $l = "*";
68 } elsif ($l eq "recording_swcodec") { 69 } elsif ($l eq "recording_swcodec") {
69 $l = "recording"; 70 $l = "recording";
71# } elsif ($id =~ /USB_MODE/ && $l =~ /ibassodx/) {
72# $l = "*";
70 } 73 }
71 74
72 $thisphrase{$pos}->{$l} = $2; 75 $thisphrase{$pos}->{$l} = $w;
73 } 76 }
74 } 77 }
75 if ($line eq '</voice>' || 78 if ($line eq '</voice>' ||