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"
|
name = "weapongenerator.lua"
|
||||||
|
|
||||||
|
|
||||||
def _lister(path) -> list:
|
def _lister(path) -> list:
|
||||||
_list: list = []
|
_list: list = []
|
||||||
try:
|
try:
|
||||||
@@ -34,8 +35,8 @@ def parsing_file(f):
|
|||||||
|
|
||||||
test_en = parsing_file(name)[0].split('\"')[1].split(' /*')[0]
|
test_en = parsing_file(name)[0].split('\"')[1].split(' /*')[0]
|
||||||
test = translate(test_en)
|
test = translate(test_en)
|
||||||
print("msgid: \"%s\"" % test_en)
|
translate_entity = ("\n#: %s\nmsgid: \"%s\"\nmsgstr: \"%s\"" % (name, test_en, test))
|
||||||
print("msgstr: \"%s\"" % test)
|
print(translate_entity)
|
||||||
|
|
||||||
|
|
||||||
def all_to_translate():
|
def all_to_translate():
|
||||||
|
|||||||
Reference in New Issue
Block a user