Skip to content

Commit 4f37342

Browse files
Tomas's suggestion + typo spotted while testing
1 parent f9851e1 commit 4f37342

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/gettext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def find(domain, localedir=None, languages=None, all=False):
495495
if val := os.environ.get('LANGUAGE'):
496496
languages = val.split(':')
497497
elif (loc := locale.getlocale()) != (None, None):
498-
languages.append(".".join(filter(None, loc)))
498+
languages = [".".join(filter(None, loc))]
499499
else:
500500
for envar in ('LC_ALL', 'LC_MESSAGES', 'LANG'):
501501
val = os.environ.get(envar)

Lib/test/test_gettext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ def test__all__(self):
813813
unittest.main()
814814

815815

816-
# For reference, here's the .po file used to created the GNU_MO_DATA above.
816+
# For reference, here's the .po file used to create the GNU_MO_DATA above.
817817
#
818818
# The original version was automatically generated from the sources with
819819
# pygettext. Later it was manually modified to add plural forms support.

0 commit comments

Comments
 (0)