From e100daf343d1ee00641402aeca5b631c97b96977 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 20 Jun 2024 16:54:51 -0400 Subject: 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 --- tools/updatelang | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tools/updatelang') diff --git a/tools/updatelang b/tools/updatelang index 98c5d3cb73..febfadbfe0 100755 --- a/tools/updatelang +++ b/tools/updatelang @@ -237,8 +237,14 @@ foreach (@englishorder) { foreach (@missingorder) { # print "#!! '$_' missing\n"; push(@langorder, $_); - $lang{$_} = $english{$_}; - $lang{$_}{'notes'} .= "### This phrase is missing entirely, copying from english!\n"; + if ($_ eq 'VOICE_LANG_NAME') { + $lang{$_} = $english{$_}; + $lang{$_}{'voice'}{'*'} = ""; + $lang{$_}{'notes'} .= "### This phrase is missing entirely, please fill out\n"; + } else { + $lang{$_} = $english{$_}; + $lang{$_}{'notes'} .= "### This phrase is missing entirely, copying from english!\n"; + } $lang{$_}{'new'} = 1; } undef @missingorder; -- cgit v1.2.3