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:
@@ -1,7 +1,9 @@
|
||||
#01 2008-01-22 Emil Ericsson
|
||||
#02 2010-2013 Updated by Johan Thor
|
||||
#03 2015-08-09 Johan Thor
|
||||
#04 2016-12-30 Johan Thor
|
||||
#001 2008-01-22 Emil Ericsson
|
||||
#002 2010-2013 Updated by Johan Thor
|
||||
#003 2015-08-09 Johan Thor
|
||||
#004 2016-12-30 Johan Thor
|
||||
#100
|
||||
#101 @LANGUAGE_DISPLAY_NAME=Svenska
|
||||
|
||||
ABOUT_TAB_BUILD;Version
|
||||
ABOUT_TAB_CREDITS;Erkännande
|
||||
|
||||
Reference in New Issue
Block a user