Skip to content

Commit

Permalink
grass.py: fix missing parameters in gettext.install()
Browse files Browse the repository at this point in the history
fix #2507
  • Loading branch information
pesekon2 committed Dec 2, 2022
1 parent 722aaa0 commit 31a672d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/init/grass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,10 +1564,7 @@ def set_language(grass_config_dir):
del os.environ["LC_ALL"] # Remove LC_ALL to not override LC_NUMERIC

# From now on enforce the new language
if encoding:
gettext.install("grasslibs", gpath("locale"), codeset=encoding)
else:
gettext.install("grasslibs", gpath("locale"))
gettext.install("grasslibs", gpath("locale"))


def lock_mapset(mapset_path, force_gislock_removal, user):
Expand Down

0 comments on commit 31a672d

Please sign in to comment.