Updated translate template
This commit is contained in:
5
main.py
5
main.py
@@ -6,6 +6,7 @@ from lib.translate import translate
|
||||
|
||||
name = "weapongenerator.lua"
|
||||
|
||||
|
||||
def _lister(path) -> list:
|
||||
_list: list = []
|
||||
try:
|
||||
@@ -34,8 +35,8 @@ def parsing_file(f):
|
||||
|
||||
test_en = parsing_file(name)[0].split('\"')[1].split(' /*')[0]
|
||||
test = translate(test_en)
|
||||
print("msgid: \"%s\"" % test_en)
|
||||
print("msgstr: \"%s\"" % test)
|
||||
translate_entity = ("\n#: %s\nmsgid: \"%s\"\nmsgstr: \"%s\"" % (name, test_en, test))
|
||||
print(translate_entity)
|
||||
|
||||
|
||||
def all_to_translate():
|
||||
|
||||
Reference in New Issue
Block a user