Skip to content
Snippets Groups Projects
Verified Commit 93bc133e authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Don't add encondings in i18n functions

parent 8f64f678
No related branches found
No related tags found
1 merge request!4Don't add encondings in i18n functions
......@@ -14,7 +14,7 @@ def i18n_day_names(loc: Optional[str] = None) -> Tuple[str]:
""" Return a tuple of day names for the current locale. """
if loc is None:
loc = to_locale(get_language()) + "." + DEFAULT_LOCALE_ENCODING
loc = to_locale(get_language())
try:
return CalendarWeek.day_names(loc)
......@@ -26,7 +26,7 @@ def i18n_day_abbrs(loc: Optional[str] = None) -> Tuple[str]:
""" Return a tuple of day name abbreviations for the current locale. """
if loc is None:
loc = to_locale(get_language()) + "." + DEFAULT_LOCALE_ENCODING
loc = to_locale(get_language())
try:
return CalendarWeek.day_abbrs(loc)
......@@ -38,7 +38,7 @@ def i18n_month_names(loc: Optional[str] = None) -> Tuple[str]:
""" Return a tuple of month names for the current locale. """
if loc is None:
loc = to_locale(get_language()) + "." + DEFAULT_LOCALE_ENCODING
loc = to_locale(get_language())
try:
return CalendarWeek.month_names(loc)
......@@ -50,7 +50,7 @@ def i18n_month_abbrs(loc: Optional[str] = None) -> Tuple[str]:
""" Return a tuple of month name abbreviations for the current locale. """
if loc is None:
loc = to_locale(get_language()) + "." + DEFAULT_LOCALE_ENCODING
loc = to_locale(get_language())
try:
return CalendarWeek.month_abbrs(loc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment