Display actual language names in preferences

Add ability to set metadata variables in the language files.
Use the LANGUAGE_DISPLAY_NAME metadata variable value in preferences to
show the languages.

Metadata variables are defined in the first section of a language file,
i.e. the comments at the beginning of the file. At most one variable can
be defined per line. The definition takes the following format:
    #<header><whitespace>@<key>=<value>
where:
    <header> is any sequence of non-whitespace characters
    <whitespace> is any non-empty sequence of whitespace characters
    <key> is the metadata key name
    <value> is the metadata value
For example,
    #101 @LANGUAGE_DISPLAY_NAME=English (US)
defines a metadata key "LANGUAGE_DISPLAY_NAME" with value
"English (US)". Lines that do not match the format are ignored.
This commit is contained in:
Lawrence Lee
2023-07-04 17:40:33 -07:00
parent 1d9225dfc3
commit 6bd822352e
22 changed files with 446 additions and 282 deletions

View File

@@ -1,8 +1,10 @@
#01 2008-01-19 v2.3 breek
#02 2008-11-01 v2.4 pantaraf, chelidon, roberto
#03 2011-08-26 v3.0 joker, chelidon, ffsup2
#04 2011-08-31 v4.0 chelidon, ffsup2
#05 2014-04-21 crx
#001 2008-01-19 v2.3 breek
#002 2008-11-01 v2.4 pantaraf, chelidon, roberto
#003 2011-08-26 v3.0 joker, chelidon, ffsup2
#004 2011-08-31 v4.0 chelidon, ffsup2
#005 2014-04-21 crx
#100
#101 @LANGUAGE_DISPLAY_NAME=Italiano
ABOUT_TAB_BUILD;Versione
ABOUT_TAB_CREDITS;Riconoscimenti