Skip to content

Commit

Permalink
i18n: use gettext.bindtextdomain() instead of locale's one
Browse files Browse the repository at this point in the history
It doesn't work on OSX (per #67) and even so, the documentation says it
should not be used unless in specific cases, which we are not
considering in Sonata.

For more information, see
https://docs.python.org/3/library/locale.html#access-to-message-catalogs
  • Loading branch information
multani committed Sep 3, 2014
1 parent ecb6f84 commit 2c533b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sonata/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
sys.exit(1)

import gettext
import locale
import logging
import os
import platform
Expand Down Expand Up @@ -103,7 +102,7 @@ def run():

gettext.install('sonata', locales_path, names=["ngettext"])
gettext.textdomain('sonata')
locale.bindtextdomain('sonata', locales_path)
gettext.bindtextdomain('sonata', locales_path)


## Check initial dependencies:
Expand Down

0 comments on commit 2c533b3

Please sign in to comment.