summaryrefslogtreecommitdiff
path: root/tools/updatelang
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-06-20 16:54:51 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-06-20 17:31:31 -0400
commite100daf343d1ee00641402aeca5b631c97b96977 (patch)
tree4684d3bd46279470eaab08ec6456351fbbec86e8 /tools/updatelang
parent8cb8a30f9d8e87fbd1103abef6447358393cfcd1 (diff)
downloadrockbox-e100daf343d1ee00641402aeca5b631c97b96977.tar.gz
rockbox-e100daf343d1ee00641402aeca5b631c97b96977.zip
voice: Voiced strings for INVALID_VOICE and LANGUAGE_NAME
* Voice generation script will create standalone .talk clips * These talk clips will be included in the rockbox .zip file * All .voice files will be included in the rockbox .zip file * Added LANGUAGE_NAME for all languages in the nightly builds This way, any voice pack installed will give you a the langauge voiced in the browser, and if the voice file fails to load you will get a natively translated error message. Change-Id: I6b627a51746cd088d6e200666dd326ea2745f55f
Diffstat (limited to 'tools/updatelang')
-rwxr-xr-xtools/updatelang10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/updatelang b/tools/updatelang
index 98c5d3cb73..febfadbfe0 100755
--- a/tools/updatelang
+++ b/tools/updatelang
@@ -237,8 +237,14 @@ foreach (@englishorder) {
237foreach (@missingorder) { 237foreach (@missingorder) {
238# print "#!! '$_' missing\n"; 238# print "#!! '$_' missing\n";
239 push(@langorder, $_); 239 push(@langorder, $_);
240 $lang{$_} = $english{$_}; 240 if ($_ eq 'VOICE_LANG_NAME') {
241 $lang{$_}{'notes'} .= "### This phrase is missing entirely, copying from english!\n"; 241 $lang{$_} = $english{$_};
242 $lang{$_}{'voice'}{'*'} = "";
243 $lang{$_}{'notes'} .= "### This phrase is missing entirely, please fill out\n";
244 } else {
245 $lang{$_} = $english{$_};
246 $lang{$_}{'notes'} .= "### This phrase is missing entirely, copying from english!\n";
247 }
242 $lang{$_}{'new'} = 1; 248 $lang{$_}{'new'} = 1;
243} 249}
244undef @missingorder; 250undef @missingorder;