settings: rename noop "gettext" call to N_ (#64997)

This commit is contained in:
Frédéric Péters 2022-05-09 13:47:53 +02:00
parent 70fe8b479f
commit 5bc6828342
1 changed files with 2 additions and 2 deletions

View File

@ -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