From c7c10a888fff91fb035d714a1355b201b0d3be8c Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sun, 18 Jan 2026 16:49:38 +0000
Subject: [PATCH] Remove frontend-only translations from messages domain and
set frontend as default domain
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
---
.../elements/part_search_controller.js | 6 +--
.../password_strength_estimate_controller.js | 10 ++---
.../structural_entity_select_controller.js | 2 +-
assets/translator.js | 5 ++-
translations/messages.cs.xlf | 40 -------------------
translations/messages.da.xlf | 40 -------------------
translations/messages.de.xlf | 40 -------------------
translations/messages.en.xlf | 40 -------------------
translations/messages.es.xlf | 40 -------------------
translations/messages.fr.xlf | 10 -----
translations/messages.hu.xlf | 40 -------------------
translations/messages.it.xlf | 40 -------------------
translations/messages.ja.xlf | 10 -----
translations/messages.pl.xlf | 40 -------------------
translations/messages.ru.xlf | 40 -------------------
translations/messages.zh.xlf | 40 -------------------
16 files changed, 13 insertions(+), 430 deletions(-)
diff --git a/assets/controllers/elements/part_search_controller.js b/assets/controllers/elements/part_search_controller.js
index 21ac0b90..c1396900 100644
--- a/assets/controllers/elements/part_search_controller.js
+++ b/assets/controllers/elements/part_search_controller.js
@@ -79,9 +79,9 @@ export default class extends Controller {
panelPlacement: this.element.dataset.panelPlacement,
plugins: [recentSearchesPlugin],
openOnFocus: true,
- placeholder: trans("search.placeholder", {}, 'frontend'),
+ placeholder: trans("search.placeholder"),
translations: {
- submitButtonTitle: trans("search.submit", {}, 'frontend')
+ submitButtonTitle: trans("search.submit")
},
// Use a navigator compatible with turbo:
@@ -150,7 +150,7 @@ export default class extends Controller {
},
templates: {
header({ html }) {
- return html`
+ return html`
`;
},
item({item, components, html}) {
diff --git a/assets/controllers/elements/password_strength_estimate_controller.js b/assets/controllers/elements/password_strength_estimate_controller.js
index d75a08c5..d9cfbc87 100644
--- a/assets/controllers/elements/password_strength_estimate_controller.js
+++ b/assets/controllers/elements/password_strength_estimate_controller.js
@@ -88,23 +88,23 @@ export default class extends Controller {
switch (level) {
case 0:
- text = trans("user.password_strength.very_weak", {}, 'frontend');
+ text = trans("user.password_strength.very_weak");
classes = "bg-danger badge-danger";
break;
case 1:
- text = trans("user.password_strength.weak", {}, 'frontend');
+ text = trans("user.password_strength.weak");
classes = "bg-warning badge-warning";
break;
case 2:
- text = trans("user.password_strength.medium", {}, 'frontend');
+ text = trans("user.password_strength.medium");
classes = "bg-info badge-info";
break;
case 3:
- text = trans("user.password_strength.strong", {}, 'frontend');
+ text = trans("user.password_strength.strong");
classes = "bg-primary badge-primary";
break;
case 4:
- text = trans("user.password_strength.very_strong", {}, 'frontend');
+ text = trans("user.password_strength.very_strong");
classes = "bg-success badge-success";
break;
default:
diff --git a/assets/controllers/elements/structural_entity_select_controller.js b/assets/controllers/elements/structural_entity_select_controller.js
index 986895fd..2666530b 100644
--- a/assets/controllers/elements/structural_entity_select_controller.js
+++ b/assets/controllers/elements/structural_entity_select_controller.js
@@ -204,7 +204,7 @@ export default class extends Controller {
if (data.not_in_db_yet) {
//Not yet added items are shown italic and with a badge
- name += "" + escape(data.text) + "" + "" + trans("entity.select.group.new_not_added_to_DB", {}, 'frontend') + "";
+ name += "" + escape(data.text) + "" + "" + trans("entity.select.group.new_not_added_to_DB") + "";
} else {
name += "" + escape(data.text) + "";
}
diff --git a/assets/translator.js b/assets/translator.js
index a0181a08..ad967488 100644
--- a/assets/translator.js
+++ b/assets/translator.js
@@ -15,4 +15,7 @@ const translator = createTranslator({
localeFallbacks,
});
-export const { trans } = translator;
+// Wrapper function with default domain set to 'frontend'
+export const trans = (id, parameters = {}, domain = 'frontend', locale = null) => {
+ return translator.trans(id, parameters, domain, locale);
+};
diff --git a/translations/messages.cs.xlf b/translations/messages.cs.xlf
index 096bf247..298e1479 100644
--- a/translations/messages.cs.xlf
+++ b/translations/messages.cs.xlf
@@ -4025,16 +4025,6 @@ Pokud jste to provedli nesprávně nebo pokud počítač již není důvěryhodn
Reg.Ex. shoda
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Jdi!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11224,36 +11214,6 @@ Element 3
Není uveden žádný textový obsah! Popisky zůstanou prázdné.
-
-
- user.password_strength.very_weak
- Velmi slabé
-
-
-
-
- user.password_strength.weak
- Slabé
-
-
-
-
- user.password_strength.medium
- Střední
-
-
-
-
- user.password_strength.strong
- Silné
-
-
-
-
- user.password_strength.very_strong
- Velmi silné
-
-
perm.users.impersonate
diff --git a/translations/messages.da.xlf b/translations/messages.da.xlf
index ca536a5d..8ed10c07 100644
--- a/translations/messages.da.xlf
+++ b/translations/messages.da.xlf
@@ -4032,16 +4032,6 @@ Bemærk også, at uden to-faktor-godkendelse er din konto ikke længere så godt
Reg. Ex. matching
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Kom nu!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11256,36 +11246,6 @@ Oversættelsen
Intet tekstindhold angivet! De oprettede etiketter vil være tomme.
-
-
- user.password_strength.very_weak
- Meget svag
-
-
-
-
- user.password_strength.weak
- Svag
-
-
-
-
- user.password_strength.medium
- Middel
-
-
-
-
- user.password_strength.strong
- Stærk
-
-
-
-
- user.password_strength.very_strong
- Meget stærk
-
-
perm.users.impersonate
diff --git a/translations/messages.de.xlf b/translations/messages.de.xlf
index 10c7e7a7..1930fbbe 100644
--- a/translations/messages.de.xlf
+++ b/translations/messages.de.xlf
@@ -4024,16 +4024,6 @@ Wenn Sie dies fehlerhafterweise gemacht haben oder ein Computer nicht mehr vertr
Reg.Ex. Matching
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Los!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11304,36 +11294,6 @@ Element 1 -> Element 1.2]]>
Kein Textinhalt angegeben! Die erzeugten Label werden leer sein.
-
-
- user.password_strength.very_weak
- Sehr schwach
-
-
-
-
- user.password_strength.weak
- Schwach
-
-
-
-
- user.password_strength.medium
- Mittel
-
-
-
-
- user.password_strength.strong
- Stark
-
-
-
-
- user.password_strength.very_strong
- Sehr stark
-
-
perm.users.impersonate
diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf
index feea210a..f7f10146 100644
--- a/translations/messages.en.xlf
+++ b/translations/messages.en.xlf
@@ -3959,16 +3959,6 @@ If you have done this incorrectly or if a computer is no longer trusted, you can
Reg.Ex. Matching
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Go!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11153,36 +11143,6 @@ Element 1 -> Element 1.2]]>
No text content given! The labels will remain empty.
-
-
- user.password_strength.very_weak
- Very weak
-
-
-
-
- user.password_strength.weak
- Weak
-
-
-
-
- user.password_strength.medium
- Medium
-
-
-
-
- user.password_strength.strong
- Strong
-
-
-
-
- user.password_strength.very_strong
- Very strong
-
-
perm.users.impersonate
diff --git a/translations/messages.es.xlf b/translations/messages.es.xlf
index 8e3057ac..a7c1f906 100644
--- a/translations/messages.es.xlf
+++ b/translations/messages.es.xlf
@@ -4024,16 +4024,6 @@ Subelementos serán desplazados hacia arriba.
Reg.Ex. Matching
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- ¡Vamos!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11242,36 +11232,6 @@ Elemento 3
¡No se ha dado contenido de texto! Las etiquetas permanecerán vacías.
-
-
- user.password_strength.very_weak
- Muy débil
-
-
-
-
- user.password_strength.weak
- Débil
-
-
-
-
- user.password_strength.medium
- Medio
-
-
-
-
- user.password_strength.strong
- Fuerte
-
-
-
-
- user.password_strength.very_strong
- Muy fuerte
-
-
perm.users.impersonate
diff --git a/translations/messages.fr.xlf b/translations/messages.fr.xlf
index 7428ca38..9492a94d 100644
--- a/translations/messages.fr.xlf
+++ b/translations/messages.fr.xlf
@@ -4014,16 +4014,6 @@ Si vous avez fait cela de manière incorrecte ou si un ordinateur n'est plus fia
Reg.Ex. Correspondance
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Rechercher!
-
-
Part-DB1\templates\_sidebar.html.twig:2
diff --git a/translations/messages.hu.xlf b/translations/messages.hu.xlf
index c06475ea..a7a56611 100644
--- a/translations/messages.hu.xlf
+++ b/translations/messages.hu.xlf
@@ -3952,16 +3952,6 @@
Reguláris kifejezés egyezés
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Indítás!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11157,36 +11147,6 @@
Nincs szöveges tartalom megadva! A címkék üresek maradnak.
-
-
- user.password_strength.very_weak
- Nagyon gyenge
-
-
-
-
- user.password_strength.weak
- Gyenge
-
-
-
-
- user.password_strength.medium
- Közepes
-
-
-
-
- user.password_strength.strong
- Erős
-
-
-
-
- user.password_strength.very_strong
- Nagyon erős
-
-
perm.users.impersonate
diff --git a/translations/messages.it.xlf b/translations/messages.it.xlf
index 372ca686..5de5b7e5 100644
--- a/translations/messages.it.xlf
+++ b/translations/messages.it.xlf
@@ -4026,16 +4026,6 @@ Se è stato fatto in modo errato o se un computer non è più attendibile, puoi
Corrispondenza Reg.Ex.
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Cerca!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11244,36 +11234,6 @@ Element 3
Nessun contenuto di testo specificato! Le etichette generate saranno vuote.
-
-
- user.password_strength.very_weak
- Molto debole
-
-
-
-
- user.password_strength.weak
- Debole
-
-
-
-
- user.password_strength.medium
- Media
-
-
-
-
- user.password_strength.strong
- Forte
-
-
-
-
- user.password_strength.very_strong
- Molto forte
-
-
perm.users.impersonate
diff --git a/translations/messages.ja.xlf b/translations/messages.ja.xlf
index 569c7fc9..acb0fdd9 100644
--- a/translations/messages.ja.xlf
+++ b/translations/messages.ja.xlf
@@ -4014,16 +4014,6 @@
正規表現で検索
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- 検索
-
-
Part-DB1\templates\_sidebar.html.twig:2
diff --git a/translations/messages.pl.xlf b/translations/messages.pl.xlf
index 4fd30d6e..7409e4df 100644
--- a/translations/messages.pl.xlf
+++ b/translations/messages.pl.xlf
@@ -4029,16 +4029,6 @@ Jeśli zrobiłeś to niepoprawnie lub komputer nie jest już godny zaufania, mo
Dopasowywanie Reg.Ex.
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Idź!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11247,36 +11237,6 @@ Element 3
Nie podano zawartości tekstowej! Etykiety pozostaną puste.
-
-
- user.password_strength.very_weak
- Bardzo słabe
-
-
-
-
- user.password_strength.weak
- Słabe
-
-
-
-
- user.password_strength.medium
- Średnie
-
-
-
-
- user.password_strength.strong
- Mocne
-
-
-
-
- user.password_strength.very_strong
- Bardzo mocne
-
-
perm.users.impersonate
diff --git a/translations/messages.ru.xlf b/translations/messages.ru.xlf
index 3055fc31..c5100410 100644
--- a/translations/messages.ru.xlf
+++ b/translations/messages.ru.xlf
@@ -4035,16 +4035,6 @@
Соответствие рег.выраж.
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- Поехали!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11251,36 +11241,6 @@
Текстовое содержание не указано! Созданные ярлыки будут пустыми.
-
-
- user.password_strength.very_weak
- Очень слабый
-
-
-
-
- user.password_strength.weak
- Слабый
-
-
-
-
- user.password_strength.medium
- Средний
-
-
-
-
- user.password_strength.strong
- Сильный
-
-
-
-
- user.password_strength.very_strong
- Очень сильный
-
-
perm.users.impersonate
diff --git a/translations/messages.zh.xlf b/translations/messages.zh.xlf
index 5e1c8538..44678eb6 100644
--- a/translations/messages.zh.xlf
+++ b/translations/messages.zh.xlf
@@ -4033,16 +4033,6 @@
正则匹配
-
-
- Part-DB1\templates\_navbar_search.html.twig:68
- Part-DB1\templates\_navbar_search.html.twig:62
-
-
- search.submit
- GO!
-
-
Part-DB1\templates\_sidebar.html.twig:37
@@ -11250,36 +11240,6 @@ Element 3
没有文字内容。标签将保持为空
-
-
- user.password_strength.very_weak
- 非常弱
-
-
-
-
- user.password_strength.weak
- 弱
-
-
-
-
- user.password_strength.medium
- 中
-
-
-
-
- user.password_strength.strong
- 强
-
-
-
-
- user.password_strength.very_strong
- 非常强
-
-
perm.users.impersonate