mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
This commit is contained in:
parent
8cb8a30f9d
commit
e100daf343
16 changed files with 231 additions and 3 deletions
|
|
@ -16331,3 +16331,17 @@
|
|||
*: "Rechtliche Hinweise"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Deustch"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16368,3 +16368,31 @@
|
|||
*: "Chess box Menu"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_INVALID_VOICE_FILE
|
||||
desc: played if the voice file fails to load
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Invalid Voice File"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "American English"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16444,4 +16444,31 @@
|
|||
*: "Chess box Menu"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
||||
<phrase>
|
||||
id: VOICE_INVALID_VOICE_FILE
|
||||
desc: played if the voice file fails to load
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Invalid Voice File"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "English"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -15066,3 +15066,17 @@
|
|||
*: "Perte de contrôle"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Français"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -15564,3 +15564,17 @@
|
|||
*: "Καθαρισμός λίστας αναπαραγωγής"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Ελληνικά"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16860,3 +16860,17 @@
|
|||
*: "Esperto"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Italiano"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16869,3 +16869,17 @@
|
|||
*: "Expert"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Nederlands"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -15568,3 +15568,17 @@
|
|||
*: "Knight"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Norsk"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16377,3 +16377,17 @@
|
|||
*: "Menu Czesboks"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Polski"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16620,3 +16620,17 @@
|
|||
*: "Перейти к последнему альбому"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Русский"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16296,3 +16296,17 @@
|
|||
*: "Ponechať aktuálnu stopu pri nahradení playlistu"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Slovenčina"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16858,3 +16858,17 @@
|
|||
*: "Стручњак"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "српски"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -16861,3 +16861,17 @@
|
|||
*: "Çok Zor"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: VOICE_LANG_NAME
|
||||
desc: Spoken name of the language
|
||||
user: core
|
||||
<source>
|
||||
*: ""
|
||||
</source>
|
||||
<dest>
|
||||
*: ""
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Türkçe"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
|||
|
|
@ -658,6 +658,11 @@ sub buildzip {
|
|||
# Copy over the Invalid Language fallback stuff
|
||||
glob_copy("$ROOT/apps/lang/Invalid*.talk", "$temp_dir/langs/");
|
||||
|
||||
# Copy over any generated voice/talk clips
|
||||
glob_copy('Invalid*.talk', "$temp_dir/langs/");
|
||||
glob_copy('*.lng.talk', "$temp_dir/langs/");
|
||||
glob_copy('*.voice', "$temp_dir/langs/");
|
||||
|
||||
# copy the .lua files
|
||||
glob_mkdir("$temp_dir/rocks/viewers/lua/");
|
||||
glob_copy('apps/plugins/lua/*.lua', "$temp_dir/rocks/viewers/lua/");
|
||||
|
|
|
|||
|
|
@ -237,8 +237,14 @@ foreach (@englishorder) {
|
|||
foreach (@missingorder) {
|
||||
# print "#!! '$_' missing\n";
|
||||
push(@langorder, $_);
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -511,6 +511,14 @@ sub generateclips {
|
|||
if (defined($ENV{'POOL'})) {
|
||||
copy($enc, $pool_file);
|
||||
}
|
||||
# Special cases
|
||||
if ($id eq "VOICE_INVALID_VOICE_FILE") {
|
||||
copy ($enc, "InvalidVoice_$language.talk");
|
||||
}
|
||||
if ($id eq "VOICE_LANG_NAME") {
|
||||
copy ($enc, "$language.lng.talk");
|
||||
}
|
||||
|
||||
unlink($wav);
|
||||
}
|
||||
$voice = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue