-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathofuslang.py
More file actions
44 lines (38 loc) · 997 Bytes
/
ofuslang.py
File metadata and controls
44 lines (38 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import os, sys, zlib, base64, json, time
lang = {}
'''
#Spanish
tr = 'es_ES'
lang[tr] = []
lang[tr].append({
'trName': 'OfusPy',
'trTitle': 'Ofuscador Python',
'trExitTitle': 'Salir de la aplicación',
'trExitBody': '¿Estás seguro de que quieres salir?',
'trOfusTitle': 'Información',
'trOfusBody': 'Completo',
'trSeleFile': 'Seleccionar archivos',
'trBtnFile': 'Examinar',
'trBtnFolder': 'Carpeta',
'trBtnExit': 'Salir',
'trBtnOfus': 'Ofuscar'
})
'''
#English
tr = 'en_EN'
lang[tr] = []
lang[tr].append({
'trName': 'OfusPy',
'trTitle': 'Python Obfuscator',
'trExitTitle': 'Exit Application',
'trExitBody': 'Are you sure you want to exit?',
'trOfusTitle': 'Information',
'trOfusBody': 'full',
'trSeleFile': 'Select files',
'trBtnFile': 'Browse',
'trBtnFolder': 'Folder',
'trBtnExit': 'Close',
'trBtnOfus': 'Obfuscate'
})
with open('local/'+tr+'.po', 'w') as outfile:
json.dump(lang, outfile)