Skip to content

Commit 86bc3bf

Browse files
committed
add tg_mt
1 parent b40a0b0 commit 86bc3bf

File tree

5 files changed

+45
-10
lines changed

5 files changed

+45
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ __pycache__/
44
*.pyc
55
*.stackdump
66
.idea/
7+
.DS_Store

.venv/.gitkeep

Whitespace-only changes.

.vscode/launch.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "Python: Current File",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "${file}",
12+
"console": "integratedTerminal"
13+
},
714
{
815
"name": "tg.py",
916
"type": "python",
@@ -49,11 +56,15 @@
4956
},
5057
},
5158
{
52-
"name": "Python: Current File",
59+
"name": "tg_mt.py",
5360
"type": "python",
5461
"request": "launch",
55-
"program": "${file}",
56-
"console": "integratedTerminal"
57-
}
62+
"program": "${workspaceFolder}/tg_mt.py",
63+
"console": "integratedTerminal",
64+
"env": {
65+
"https_proxy": "http://127.0.0.1:1080",
66+
"http_proxy": "http://127.0.0.1:1080",
67+
},
68+
},
5869
]
5970
}

tg_bus.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
def open_files():
77
return (
8-
ArbFile('../@tg/flutter_distar_ex17/lib/v2/resource/l10n/app_en.arb', 'en'),
9-
ArbFile('../@tg/flutter_distar_ex17/lib/v2/resource/l10n/app_th.arb', 'th'),
10-
ArbFile('../@tg/flutter_distar_ex17/lib/v2/resource/l10n/app_zh.arb', 'zh'),
8+
ArbFile('../@tg/tg_flutter/flutter_distar_ex17/lib/v2/resource/l10n/app_en.arb', 'en'),
9+
ArbFile('../@tg/tg_flutter/flutter_distar_ex17/lib/v2/resource/l10n/app_th.arb', 'th'),
10+
ArbFile('../@tg/tg_flutter/flutter_distar_ex17/lib/v2/resource/l10n/app_zh.arb', 'zh'),
1111
)
1212

1313

1414
def main():
15-
translate_files(open_files(), translate_all_lang=True)
15+
# translate_files(open_files(), translate_all_lang=True)
1616
# import_xls('./tmp/urikar-2021-04-14-result.xls', open_files(), delete_no_exist_item=False)
17-
# export_xls('./tmp/tg-bug-2022-01-22.xls', open_files())
18-
# import_xls('./tmp/tg-bug-2022-01-22.xls', open_files())
17+
export_xls('./tmp/tg-bug-2022-11-09.xls', open_files())
18+
import_xls('./tmp/tg-bug-2022-11-09.xls', open_files())
1919
pass
2020

2121

tg_mt.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
from att import *
4+
5+
6+
def open_files():
7+
return (
8+
ArbFile('../@tg/tg_flutter/maintain/lib/resources/l10n/app_zh.arb', 'zh'),
9+
ArbFile('../@tg/tg_flutter/maintain/lib/resources/l10n/app_en.arb', 'en'),
10+
ArbFile('../@tg/tg_flutter/maintain/lib/resources/l10n/app_th.arb', 'th'),
11+
)
12+
13+
14+
def main():
15+
translate_files(open_files(), translate_all_lang=True)
16+
# import_xls('./tmp/urikar-2021-04-14-result.xls', open_files(), delete_no_exist_item=False)
17+
# export_xls('./tmp/tg-mt-2022-01-22.xls', open_files())
18+
# import_xls('./tmp/tg-bmt-2022-01-22.xls', open_files())
19+
pass
20+
21+
22+
if __name__ == "__main__":
23+
main()

0 commit comments

Comments
 (0)