Include single file for humanized translations

This commit is contained in:
amcmanu3 2024-07-07 19:22:54 -04:00
parent e33cf5451c
commit 8cf855488c
4 changed files with 24 additions and 18 deletions

View File

@ -892,6 +892,8 @@ class PanelHandler(BaseHandler):
os.path.join(self.helper.root_dir, "app", "translations") os.path.join(self.helper.root_dir, "app", "translations")
) )
): ):
if file == "humanized_index.json":
continue
if file.endswith(".json"): if file.endswith(".json"):
if file.split(".")[0] not in self.helper.get_setting( if file.split(".")[0] not in self.helper.get_setting(
"disabled_language_files" "disabled_language_files"
@ -1307,6 +1309,8 @@ class PanelHandler(BaseHandler):
for file in sorted( for file in sorted(
os.listdir(os.path.join(self.helper.root_dir, "app", "translations")) os.listdir(os.path.join(self.helper.root_dir, "app", "translations"))
): ):
if file == "humanized_index.json":
continue
if file.endswith(".json"): if file.endswith(".json"):
if file.split(".")[0] not in self.helper.get_setting( if file.split(".")[0] not in self.helper.get_setting(
"disabled_language_files" "disabled_language_files"

View File

@ -122,7 +122,7 @@ data['lang']) }}{% end %}
name="lang" form="user_form"> name="lang" form="user_form">
{% for lang in data['languages'] %} {% for lang in data['languages'] %}
{% if not 'incomplete' in lang %} {% if not 'incomplete' in lang %}
<option value="{{lang}}" >{{translate('language', lang, data['lang'], False)}}</option> <option value="{{lang}}" >{{translate('language', lang, 'humanized_index')}}</option>
{% else %} {% else %}
<option value="{{lang}}" disabled>{{lang}}</option> <option value="{{lang}}" disabled>{{lang}}</option>
{% end %} {% end %}

View File

@ -217,23 +217,6 @@
"copyright": "Copyright", "copyright": "Copyright",
"version": "Version" "version": "Version"
}, },
"language": {
"cs_CS": "cs_CS",
"de_DE": "de_DE",
"en_EN": "English",
"es_ES": "es_ES",
"fr_FR": "fr_FR",
"he_IL": "he_IL",
"it_IT": "it_IT",
"lol_EN": "lol_EN",
"lv_LV": "lv_LV",
"nl_BE": "nl_BE",
"pl_PL": "pl_PL",
"th_TH": "th_TH",
"tr_TR": "tr_TR",
"uk_UA": "uk_UA",
"zh_CN": "zh_CN"
},
"login": { "login": {
"defaultPath": "The password you entered is the default credential path, not the password. Please find the default password in that location.", "defaultPath": "The password you entered is the default credential path, not the password. Please find the default password in that location.",
"disabled": "User account disabled. Please contact your system administrator for more info.", "disabled": "User account disabled. Please contact your system administrator for more info.",

View File

@ -0,0 +1,19 @@
{
"language": {
"cs_CS": "Čeština",
"de_DE": "Deutsch",
"en_EN": "English (US)",
"es_ES": "Español",
"fr_FR": "Français (France)",
"he_IL": "he_IL",
"it_IT": "Italiano",
"lol_EN": "lol_EN",
"lv_LV": "Latviešu",
"nl_BE": "nl_BE",
"pl_PL": "Polski",
"th_TH": "ไทย",
"tr_TR": "Türkçe",
"uk_UA": "Українська",
"zh_CN": "中文(中国)"
}
}