settings: rename noop "gettext" call to N_ (#64997)
This commit is contained in:
parent
70fe8b479f
commit
5bc6828342
|
@ -27,7 +27,7 @@ import os
|
|||
|
||||
from django.conf.global_settings import STATICFILES_FINDERS
|
||||
|
||||
_ = lambda s: s
|
||||
N_ = lambda s: s
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
@ -178,7 +178,7 @@ try:
|
|||
|
||||
WORKING_DAY_CALENDAR = 'workalendar.europe.France'
|
||||
EXCEPTIONS_SOURCES = {
|
||||
'holidays': {'class': WORKING_DAY_CALENDAR, 'label': _('Holidays')},
|
||||
'holidays': {'class': WORKING_DAY_CALENDAR, 'label': N_('Holidays')},
|
||||
}
|
||||
except ImportError:
|
||||
WORKING_DAY_CALENDAR = None
|
||||
|
|
Loading…
Reference in New Issue