Skip to content
Snippets Groups Projects

Don't add encondings in i18n functions

Merged Jonathan Weth requested to merge fix/no-encoding-before-normalise into master
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
+ 4
4
@@ -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)
Loading