localization

gh-pages
somas95 2018-04-11 20:30:01 +02:00
parent 238dff1dad
commit 9afa07dc1c
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ PROJECT_ROOT_DIRECTORY = os.path.abspath(
os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))
if os.environ.get('IN_FLATPAK'):
locale_dir = 'lib/python3.5/site-packages/uberwriter-1.0-py3.5.egg/po'
locale_dir = 'po'
print('flatpak')
else:
locale_dir = PROJECT_ROOT_DIRECTORY + 'po'