Skip to content

Commit 3f7f5fe

Browse files
committed
Upper-casing locale
1 parent 4598845 commit 3f7f5fe

File tree

11 files changed

+2
-1
lines changed

11 files changed

+2
-1
lines changed

rein/lib/localization.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def init_localization():
88
'''prepare l10n'''
99
# Extract system locale identifier
1010
loc = locale.getdefaultlocale()[0]
11-
file_name = "messages-%s.mo" % loc.split('_')[0]
11+
file_name = "messages-%s.mo" % loc.split('_')[0].upper()
1212
file_path = os.path.join(os.path.dirname(os.path.abspath(rein.locale.__file__)), file_name)
1313

1414
try:
@@ -23,3 +23,4 @@ def init_localization():
2323

2424
if __name__ == '__main__':
2525
init_localization()
26+

0 commit comments

Comments
 (0)