2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-09 13:20:53 +00:00

Translation Fixes (#4433)

* Change 'zh-cn' to 'zh-hans'

* Enforce consistent naming scheme when rendering translated javascript files

* More intelligent lookup of translated javascript files

- Ensure that the language code is lower-case (to match translated files)
- Provide fallback if specified langauge code is not found

* Replace underscore characters

* remove debug hook
This commit is contained in:
Oliver
2023-03-02 08:24:31 +11:00
committed by GitHub
parent fdfc3e5e7e
commit ec66e5351b
4 changed files with 35 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: inventree\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-28 21:17+0000\n"
"POT-Creation-Date: 2023-03-01 10:01+0000\n"
"PO-Revision-Date: 2023-02-28 22:38\n"
"Last-Translator: \n"
"Language-Team: Chinese Simplified\n"
@@ -11550,7 +11550,8 @@ msgstr ""
#: templates/socialaccount/signup.html:10
#, python-format
msgid "You are about to use your %(provider_name)s account to login to\n"
msgid ""
"You are about to use your %(provider_name)s account to login to\n"
"%(site_name)s.<br>As a final step, please complete the following form:"
msgstr ""
@@ -11737,4 +11738,3 @@ msgstr "编辑项目权限"
#: users/models.py:231
msgid "Permission to delete items"
msgstr "删除项目权限"