From a4681109ebcab35d03a51af604f7fb5561e50799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 2 Jul 2026 14:18:39 -0400 Subject: [PATCH] update all language keys to use tx() helper --- templates/account/blocks.tpl | 16 +-- templates/account/categories.tpl | 10 +- templates/account/consent.tpl | 42 +++---- templates/account/edit.tpl | 42 +++---- templates/account/edit/password.tpl | 14 +-- templates/account/edit/username.tpl | 10 +- templates/account/followers.tpl | 4 +- templates/account/following.tpl | 4 +- templates/account/groups.tpl | 4 +- templates/account/info.tpl | 70 +++++------ templates/account/posts.tpl | 14 +-- templates/account/profile.tpl | 53 +++------ templates/account/sessions.tpl | 2 +- templates/account/settings.tpl | 110 +++++++++--------- templates/account/theme.tpl | 16 +-- templates/account/topics.tpl | 12 +- templates/account/uploads.tpl | 8 +- templates/categories.tpl | 2 +- templates/category.tpl | 12 +- templates/modules/usercard.tpl | 9 +- templates/notifications.tpl | 4 +- templates/partials/account/header.tpl | 8 +- templates/partials/account/menu.tpl | 54 ++++----- templates/partials/account/session-list.tpl | 6 +- templates/partials/buttons/newTopic.tpl | 2 +- templates/partials/categories/item.tpl | 4 +- templates/partials/categories/lastpost.tpl | 6 +- templates/partials/category/subcategory.tpl | 4 +- templates/partials/chats-menu.tpl | 4 +- templates/partials/cookie-consent.tpl | 2 +- templates/partials/header/chats.tpl | 6 +- templates/partials/header/notifications.tpl | 10 +- templates/partials/header/search.tpl | 8 +- templates/partials/header/user-menu.tpl | 36 +++--- templates/partials/menu.tpl | 16 +-- templates/partials/notifications_list.tpl | 6 +- templates/partials/paginator.tpl | 18 +-- templates/partials/post_bar.tpl | 4 +- templates/partials/posts_list_item.tpl | 2 +- .../quick-category-search-results.tpl | 8 +- templates/partials/quick-search-results.tpl | 4 +- templates/partials/search/results.tpl | 6 +- templates/partials/topic/crosspost.tpl | 2 +- templates/partials/topic/event.tpl | 36 +++++- templates/partials/topic/navigator.tpl | 8 +- templates/partials/topic/post-editor.tpl | 2 +- templates/partials/topic/post.tpl | 18 +-- templates/partials/topic/quickreply.tpl | 10 +- templates/partials/topic/reply-button.tpl | 10 +- .../partials/topic/selection-tooltip.tpl | 2 +- templates/partials/topic/sort.tpl | 10 +- templates/partials/topic/stats.tpl | 22 ++-- templates/partials/topic/tools.tpl | 2 +- templates/partials/topic/watch.tpl | 18 +-- templates/partials/topics_list.tpl | 26 ++--- templates/partials/users_list.tpl | 2 +- templates/partials/users_list_menu.tpl | 12 +- templates/popular.tpl | 4 +- templates/recent.tpl | 6 +- templates/tag.tpl | 6 +- templates/tags.tpl | 4 +- templates/top.tpl | 4 +- templates/topic.tpl | 8 +- templates/unread.tpl | 6 +- templates/users.tpl | 4 +- templates/world.tpl | 36 +++--- 66 files changed, 470 insertions(+), 460 deletions(-) diff --git a/templates/account/blocks.tpl b/templates/account/blocks.tpl index cdd5ae798..f53ac6b90 100644 --- a/templates/account/blocks.tpl +++ b/templates/account/blocks.tpl @@ -1,16 +1,16 @@ -

[[pages:account/blocks, {username}]]

+

{{tx("pages:account/blocks", txEscape(username))}}

- - + +
{{{ end }}} @@ -30,12 +30,12 @@
-
[[user:has-no-blocks]]
+
{{tx("user:has-no-blocks")}}
{{{ each users }}}
- +
{{{ end }}} diff --git a/templates/account/categories.tpl b/templates/account/categories.tpl index 65d5e9d94..03381a7af 100644 --- a/templates/account/categories.tpl +++ b/templates/account/categories.tpl @@ -6,14 +6,14 @@ diff --git a/templates/account/consent.tpl b/templates/account/consent.tpl index b67161965..91c31aa13 100644 --- a/templates/account/consent.tpl +++ b/templates/account/consent.tpl @@ -1,7 +1,7 @@ -

[[user:consent.title]]

-

[[user:consent.lead]]

-

[[user:consent.intro]]

+

{{tx("user:consent.title")}}

+

{{tx("user:consent.lead")}}

+

{{tx("user:consent.intro")}}


@@ -9,31 +9,31 @@
- [[user:consent.received]] + {{tx("user:consent.received")}}
- [[user:consent.not-received]] + {{tx("user:consent.not-received")}}

- +
-

[[user:consent.email-intro]]

+

{{tx("user:consent.email-intro")}}

-

[[user:consent.digest-frequency, {digest.frequency}]]

+

{{tx("user:consent.digest-frequency", digest.frequency)}}

- [[user:consent.digest-off]] + {{tx("user:consent.digest-off")}}
@@ -42,25 +42,25 @@
-

[[user:consent.right-of-access]]

-

[[user:consent.right-of-access-description]]

-

[[user:consent.right-to-rectification]]

-

[[user:consent.right-to-rectification-description]]

-

[[user:consent.right-to-erasure]]

-

[[user:consent.right-to-erasure-description]]

-

[[user:consent.right-to-data-portability]]

-

[[user:consent.right-to-data-portability-description]]

+

{{tx("user:consent.right-of-access")}}

+

{{tx("user:consent.right-of-access-description")}}

+

{{tx("user:consent.right-to-rectification")}}

+

{{tx("user:consent.right-to-rectification-description")}}

+

{{tx("user:consent.right-to-erasure")}}

+

{{tx("user:consent.right-to-erasure-description")}}

+

{{tx("user:consent.right-to-data-portability")}}

+

{{tx("user:consent.right-to-data-portability-description")}}

{{{ if canExport }}} {{{ end }}} diff --git a/templates/account/edit.tpl b/templates/account/edit.tpl index 8896296dd..faf7cdd9b 100644 --- a/templates/account/edit.tpl +++ b/templates/account/edit.tpl @@ -5,33 +5,33 @@