From f54dfd55dcd3c0b6be38dcc432c18a4fd82f742c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 26 Jun 2026 12:12:56 -0400 Subject: [PATCH] refactor: migrate all translation keys to tx for 4.15.0 --- templates/account/blocks.tpl | 12 +- templates/account/categories.tpl | 18 +-- templates/account/consent.tpl | 42 +++---- templates/account/edit.tpl | 44 +++---- templates/account/edit/password.tpl | 16 +-- templates/account/edit/username.tpl | 12 +- templates/account/followers.tpl | 4 +- templates/account/following.tpl | 4 +- templates/account/groups.tpl | 4 +- templates/account/info.tpl | 64 +++++----- templates/account/posts.tpl | 14 +-- templates/account/profile.tpl | 12 +- templates/account/sessions.tpl | 2 +- templates/account/settings.tpl | 110 +++++++++--------- templates/account/shares.tpl | 2 +- templates/account/theme.tpl | 31 +++-- templates/account/topics.tpl | 12 +- templates/account/uploads.tpl | 6 +- templates/admin/plugins/harmony.tpl | 28 ++--- templates/category.tpl | 14 +-- templates/header.tpl | 2 +- templates/notifications.tpl | 2 +- templates/partials/account/admin-menu.tpl | 16 +-- templates/partials/account/header.tpl | 22 ++-- templates/partials/account/session-list.tpl | 6 +- templates/partials/account/sidebar-left.tpl | 36 +++--- 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/header/brand.tpl | 4 +- templates/partials/mobile-nav.tpl | 4 +- templates/partials/notifications_list.tpl | 6 +- templates/partials/paginator.tpl | 20 ++-- templates/partials/posts_list_item.tpl | 2 +- .../quick-category-search-results.tpl | 8 +- templates/partials/quick-search-results.tpl | 8 +- templates/partials/sidebar-left.tpl | 4 +- templates/partials/sidebar/chats.tpl | 10 +- templates/partials/sidebar/drafts.tpl | 6 +- templates/partials/sidebar/logged-in-menu.tpl | 8 +- .../partials/sidebar/logged-out-menu.tpl | 20 ++-- templates/partials/sidebar/notifications.tpl | 10 +- templates/partials/sidebar/search-mobile.tpl | 10 +- templates/partials/sidebar/search.tpl | 10 +- templates/partials/sidebar/user-menu.tpl | 40 +++---- templates/partials/skin-switcher.tpl | 6 +- templates/partials/topic-list-bar.tpl | 24 ++-- templates/partials/topic/crosspost.tpl | 4 +- templates/partials/topic/event.tpl | 6 +- templates/partials/topic/mark-unread.tpl | 2 +- templates/partials/topic/navigator-mobile.tpl | 8 +- templates/partials/topic/post-editor.tpl | 2 +- templates/partials/topic/post-menu.tpl | 2 +- templates/partials/topic/post-placeholder.tpl | 15 --- templates/partials/topic/post.tpl | 34 +++--- templates/partials/topic/quickreply.tpl | 12 +- templates/partials/topic/reply-button.tpl | 10 +- .../partials/topic/selection-tooltip.tpl | 2 +- templates/partials/topic/sort.tpl | 8 +- 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_menu.tpl | 12 +- templates/popular.tpl | 2 +- templates/recent.tpl | 6 +- templates/tag.tpl | 4 +- templates/tags.tpl | 6 +- templates/top.tpl | 2 +- templates/topic.tpl | 10 +- templates/unread.tpl | 4 +- templates/users.tpl | 8 +- templates/world.tpl | 16 +-- 74 files changed, 491 insertions(+), 503 deletions(-) delete mode 100644 templates/partials/topic/post-placeholder.tpl diff --git a/templates/account/blocks.tpl b/templates/account/blocks.tpl index 3827411c..8a1be32c 100644 --- a/templates/account/blocks.tpl +++ b/templates/account/blocks.tpl @@ -1,17 +1,17 @@
-

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

+

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

{{{ end }}} diff --git a/templates/account/categories.tpl b/templates/account/categories.tpl index 7227012b..573fe5a6 100644 --- a/templates/account/categories.tpl +++ b/templates/account/categories.tpl @@ -8,43 +8,43 @@