Skip to content

Commit

Permalink
2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaM-TL committed Oct 7, 2019
1 parent 7a4c118 commit 0976822
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/fotokilof.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# pylint: disable=line-too-long

""" nice GUI for ImageMagick with few common used command """
""" nice GUI for ImageMagick with few common used (by me) command """

import configparser
import datetime
Expand All @@ -24,16 +24,23 @@
import ini_read
import magick

localedir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'locale')

if sys.platform.startswith('win'):
import locale
if os.getenv('LANG') is None:
lang, enc = locale.getdefaultlocale()
os.environ['LANG'] = lang

localedir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'locale')
translate = gettext.translation('fotokilof', localedir, fallback=True)
gettext.install('fotokilof', localedir)
_ = translate.gettext
print(gettext.find("fotokilof", 'locale'))


###################
# CONSTANTS
VERSION = "2.6"
VERSION = "2.6.1"
if platform.system() == "Windows":
PREVIEW_ORIG = 400 # preview size in Windows
PREVIEW_NEW = 400 # preview size in Windows
Expand Down

0 comments on commit 0976822

Please sign in to comment.