mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
lang: Support languages that speak the units before a numerical value
Previously, it was hardcoded to the english convention of units-last, so "100%" would be voiced as "one hundred percent". This adds a new language flag that makes the units be voiced first, ie "100%" will be voiced as "percent one hundred". So far only the Chinese-traditional and Chinese-simplified languages utilize this feature (taken from an old ticket, FS#10340) but I'm sure others would want this feature too. Change-Id: Idf825ec9299dc0ed09921cf67aec61b1ab262fc6
This commit is contained in:
parent
ab0ba139f5
commit
92b80bdba5
6 changed files with 25 additions and 4 deletions
|
@ -37,4 +37,6 @@ int lang_english_to_id(const char *english);
|
|||
|
||||
/* returns whether the loaded language is a right-to-left language */
|
||||
int lang_is_rtl(void);
|
||||
/* returns whether the loaded language needs units spoken before the value */
|
||||
int lang_units_first(void);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue