Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-calendarweek
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
python-calendarweek
Commits
93bc133e
Verified
Commit
93bc133e
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Don't add encondings in i18n functions
parent
8f64f678
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Don't add encondings in i18n functions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
calendarweek/django.py
+4
-4
4 additions, 4 deletions
calendarweek/django.py
with
4 additions
and
4 deletions
calendarweek/django.py
+
4
−
4
View file @
93bc133e
...
@@ -14,7 +14,7 @@ def i18n_day_names(loc: Optional[str] = None) -> Tuple[str]:
...
@@ -14,7 +14,7 @@ def i18n_day_names(loc: Optional[str] = None) -> Tuple[str]:
"""
Return a tuple of day names for the current locale.
"""
"""
Return a tuple of day names for the current locale.
"""
if
loc
is
None
:
if
loc
is
None
:
loc
=
to_locale
(
get_language
())
+
"
.
"
+
DEFAULT_LOCALE_ENCODING
loc
=
to_locale
(
get_language
())
try
:
try
:
return
CalendarWeek
.
day_names
(
loc
)
return
CalendarWeek
.
day_names
(
loc
)
...
@@ -26,7 +26,7 @@ def i18n_day_abbrs(loc: Optional[str] = None) -> Tuple[str]:
...
@@ -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.
"""
"""
Return a tuple of day name abbreviations for the current locale.
"""
if
loc
is
None
:
if
loc
is
None
:
loc
=
to_locale
(
get_language
())
+
"
.
"
+
DEFAULT_LOCALE_ENCODING
loc
=
to_locale
(
get_language
())
try
:
try
:
return
CalendarWeek
.
day_abbrs
(
loc
)
return
CalendarWeek
.
day_abbrs
(
loc
)
...
@@ -38,7 +38,7 @@ def i18n_month_names(loc: Optional[str] = None) -> Tuple[str]:
...
@@ -38,7 +38,7 @@ def i18n_month_names(loc: Optional[str] = None) -> Tuple[str]:
"""
Return a tuple of month names for the current locale.
"""
"""
Return a tuple of month names for the current locale.
"""
if
loc
is
None
:
if
loc
is
None
:
loc
=
to_locale
(
get_language
())
+
"
.
"
+
DEFAULT_LOCALE_ENCODING
loc
=
to_locale
(
get_language
())
try
:
try
:
return
CalendarWeek
.
month_names
(
loc
)
return
CalendarWeek
.
month_names
(
loc
)
...
@@ -50,7 +50,7 @@ def i18n_month_abbrs(loc: Optional[str] = None) -> Tuple[str]:
...
@@ -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.
"""
"""
Return a tuple of month name abbreviations for the current locale.
"""
if
loc
is
None
:
if
loc
is
None
:
loc
=
to_locale
(
get_language
())
+
"
.
"
+
DEFAULT_LOCALE_ENCODING
loc
=
to_locale
(
get_language
())
try
:
try
:
return
CalendarWeek
.
month_abbrs
(
loc
)
return
CalendarWeek
.
month_abbrs
(
loc
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment