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 Sep 17, 2022
1 parent 2378fbe commit c726ae1
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 @@ -1568,10 +1568,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 c726ae1

Please sign in to comment.