mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/global_preferences] DefaultLanguage is the first of the locales
Not EN, because we might build without the EN locale
This commit is contained in:
committed by
EmilieNumworks
parent
19b5653851
commit
efff509e2a
@@ -95,8 +95,10 @@ def print_header(data, path, locales):
|
||||
|
||||
# Languages enumeration
|
||||
f.write("enum class Language : uint16_t {\n")
|
||||
index = 0
|
||||
for locale in locales:
|
||||
f.write(" " + locale.upper() + ",\n")
|
||||
f.write(" " + locale.upper() + (" = 0" if (index < 1) else "") +",\n")
|
||||
index = index + 1
|
||||
f.write("};\n\n")
|
||||
|
||||
# Language names
|
||||
|
||||
Reference in New Issue
Block a user