summaryrefslogtreecommitdiffstats
path: root/tools/updatelang
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-11-22 09:43:39 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-11-22 14:45:16 +0000
commit25529e4fe018206df5729b44223f382088fad4e9 (patch)
tree821ef2e8510ab9df85a7827a1e16e862c549e7c6 /tools/updatelang
parente8f8df4ee0da8915f8488b3d4bd275d73f46218b (diff)
downloadrockbox-25529e4fe018206df5729b44223f382088fad4e9.tar.gz
rockbox-25529e4fe018206df5729b44223f382088fad4e9.tar.bz2
rockbox-25529e4fe018206df5729b44223f382088fad4e9.zip
lang: More automated rejiggering, USB_MODE_* is no longer ibasso-specific
Change-Id: I8e7eb3bb3c5ed61572c0ade4059c3e3527558932
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 {
}
} elsif ($pos ne 'phrase' && $line =~ /^([^:]+): ?\"?([^\"]*)\"?$/) {
my @targets = split(',', $1);
+ my $w = $2;
+
foreach (@targets) {
my $l = trim($_);
-
# Convert some obsolete keys
if ($l eq "swcodec") {
$l = "*";
@@ -67,9 +68,11 @@ sub parselangfile {
$l = "*";
} elsif ($l eq "recording_swcodec") {
$l = "recording";
+# } elsif ($id =~ /USB_MODE/ && $l =~ /ibassodx/) {
+# $l = "*";
}
- $thisphrase{$pos}->{$l} = $2;
+ $thisphrase{$pos}->{$l} = $w;
}
}
if ($line eq '</voice>' ||