Locale support for en, pt and es

This commit is contained in:
Vinicius Moreira
2019-06-13 17:17:56 -03:00
parent 672b432181
commit 83ddad0d68
9 changed files with 127 additions and 22 deletions

View File

@@ -2,5 +2,9 @@ import os
def get_path(resource_path):
cur_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
return cur_dir + '/resources/' + resource_path
app_dir = get_app_dir()
return app_dir + '/resources/' + resource_path
def get_app_dir():
return os.path.dirname(os.path.dirname(os.path.abspath(__file__)))