From 36734e5f906298032ddfc2a9a27dbdf57dfba9c1 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Sat, 9 Aug 2025 23:52:07 +0300 Subject: [PATCH] l10n: change default section to "common" --- app.py | 2 +- translations/de.ini | 2 +- translations/en.ini | 2 +- translations/fr.ini | 2 +- translations/ja.ini | 2 +- translations/ru.ini | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index d0bed04..da30e4a 100644 --- a/app.py +++ b/app.py @@ -43,7 +43,7 @@ def inject_translations(): if ":" in text: section, key = text.split(":", 1) else: - section, key = "messages", text + section, key = "common", text template = g.translations \ .get(section, {}) \ diff --git a/translations/de.ini b/translations/de.ini index 33c3c37..5a49932 100644 --- a/translations/de.ini +++ b/translations/de.ini @@ -1,4 +1,4 @@ -[messages] +[common] site source = Website-Quellcode contact us = Kontakt diff --git a/translations/en.ini b/translations/en.ini index acac200..7355687 100644 --- a/translations/en.ini +++ b/translations/en.ini @@ -1,4 +1,4 @@ -[messages] +[common] site source = Site source contact us = Contact us diff --git a/translations/fr.ini b/translations/fr.ini index 58b30e3..7d3dc56 100644 --- a/translations/fr.ini +++ b/translations/fr.ini @@ -1,4 +1,4 @@ -[messages] +[common] site source = Code source du site contact us = Contacte-nous diff --git a/translations/ja.ini b/translations/ja.ini index 9be82bd..ab49619 100644 --- a/translations/ja.ini +++ b/translations/ja.ini @@ -1,4 +1,4 @@ -[messages] +[common] site source = サイトのソースコード contact us = 問い合わせ diff --git a/translations/ru.ini b/translations/ru.ini index cf4bc35..0d4c9e8 100644 --- a/translations/ru.ini +++ b/translations/ru.ini @@ -1,4 +1,4 @@ -[messages] +[common] site source = Исходники сайта contact us = Для связи