We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa332a1 commit b1607f9Copy full SHA for b1607f9
lang/language.py
@@ -5,10 +5,11 @@
5
import os
6
7
__author__ = 'Rico'
8
+dir_path = os.path.dirname(os.path.abspath(__file__))
9
+file_path = os.path.join(dir_path, "translations.ini")
10
-path = os.path.dirname(os.path.abspath(__file__))
11
translations = configparser.ConfigParser()
-translations.read_file(codecs.open(path + "/translations.ini", encoding="UTF-8"))
12
+translations.read_file(codecs.open(file_path, encoding="UTF-8"))
13
14
15
# translate returns the translation for a specific string
0 commit comments