Commit 484e58cf authored by Frede Hundewadt's avatar Frede Hundewadt

small cosmetic rewrite

parent e56a1742
......@@ -27,9 +27,9 @@ import gettext
# The translation files will be under
APP_NAME = "pacman_mirrors"
APP_DIR = os.path.join(sys.prefix, "share")
LOCALE_DIR = os.path.join(APP_DIR, "locale")
CODESET = "utf-8"
# Now we need to choose the language. We will provide a list, and gettext
# will use the first translation available in the list
......@@ -47,7 +47,7 @@ LANGUAGES += ["en_US"]
# (nothing to change here for you)
gettext.bindtextdomain(APP_NAME, LOCALE_DIR)
gettext.bind_textdomain_codeset(APP_NAME, codeset='utf-8')
gettext.bind_textdomain_codeset(APP_NAME, codeset=CODESET)
language = gettext.translation(APP_NAME, LOCALE_DIR, LANGUAGES, fallback=True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment