mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-27 21:16:48 +00:00
Tweaks (#401)
* Improve collect_translations.py * Cleanup * Update translation support * Update release notes
This commit is contained in:
parent
3085d98ce1
commit
7a11fdead8
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
- Enable label printing for stock locations
|
- Enable label printing for stock locations
|
||||||
- Enable label printing for parts
|
- Enable label printing for parts
|
||||||
|
- Updated translation support
|
||||||
|
|
||||||
### 0.12.5 - July 2023
|
### 0.12.5 - July 2023
|
||||||
---
|
---
|
||||||
|
@ -34,11 +34,13 @@
|
|||||||
<string>pt-BR</string>
|
<string>pt-BR</string>
|
||||||
<string>pt-PT</string>
|
<string>pt-PT</string>
|
||||||
<string>ru-RU</string>
|
<string>ru-RU</string>
|
||||||
|
<string>sl_SI</string>
|
||||||
<string>sv-SE</string>
|
<string>sv-SE</string>
|
||||||
<string>th-TH</string>
|
<string>th-TH</string>
|
||||||
<string>tr-TR</string>
|
<string>tr-TR</string>
|
||||||
<string>vi-VN</string>
|
<string>vi-VN</string>
|
||||||
<string>zh-CN</string>
|
<string>zh-CN</string>
|
||||||
|
<string>zh-TW</string>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>InvenTree</string>
|
<string>InvenTree</string>
|
||||||
|
@ -91,12 +91,16 @@ def generate_locale_list(locales):
|
|||||||
with open("supported_locales.dart", "w") as output:
|
with open("supported_locales.dart", "w") as output:
|
||||||
|
|
||||||
output.write("// This file is auto-generated by the 'collect_translations.py' script - do not edit it directly!\n\n")
|
output.write("// This file is auto-generated by the 'collect_translations.py' script - do not edit it directly!\n\n")
|
||||||
|
|
||||||
output.write('import "package:flutter/material.dart";\n\n')
|
output.write('import "package:flutter/material.dart";\n\n')
|
||||||
|
output.write("const List<Locale> supported_locales = [\n")
|
||||||
|
|
||||||
output.write("const List<Locale> supported_locales = [\n");
|
locales = sorted(locales)
|
||||||
|
|
||||||
for locale in locales:
|
for locale in locales:
|
||||||
|
|
||||||
|
if locale.startswith('.'):
|
||||||
|
continue
|
||||||
|
|
||||||
splt = locale.split("_")
|
splt = locale.split("_")
|
||||||
|
|
||||||
if len(splt) == 2:
|
if len(splt) == 2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user