From 1794911d276c9f74eea3df18eea0a6514480e567 Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 26 Sep 2023 16:33:47 +0300 Subject: [PATCH] 0.7.50 i18n localization problem test --- GeneralApp/views.py | 2 ++ TWB/settings.py | 1 + 2 files changed, 3 insertions(+) diff --git a/GeneralApp/views.py b/GeneralApp/views.py index 9847316..5e73578 100644 --- a/GeneralApp/views.py +++ b/GeneralApp/views.py @@ -35,6 +35,8 @@ def test_code(request): def MainPage(request): from RoutesApp.forms import RouteForm + print(f'LOCALE_PATHS = {str(settings.LOCALE_PATHS)}') + page = StaticPage.objects.get(url='main') from ArticlesApp.models import ArticleModel diff --git a/TWB/settings.py b/TWB/settings.py index f634ec4..a1af215 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -185,6 +185,7 @@ LOCALE_PATHS = ( ) + gettext = lambda s: s LANGUAGES = ( (u'ru', gettext(u'Russian')),