From 37b6446e34c7f4d45703ee516cbb9ec4b68a6c54 Mon Sep 17 00:00:00 2001 From: jomae Date: Thu, 3 Oct 2024 18:23:29 +0000 Subject: [PATCH] 1.6.1dev: make the label of `Revert changes` translatable and add Japanese translation for the label (closes #13778) git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17851 af82e41b-90c4-0310-8c96-b1721e28e2e2 --- trac/htdocs/js/admin_enums.js | 6 ++++-- trac/locale/ja/LC_MESSAGES/messages-js.po | 6 +++++- trac/locale/messages-js.pot | 4 ++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/trac/htdocs/js/admin_enums.js b/trac/htdocs/js/admin_enums.js index bd8ee945b9..f51cd90b73 100644 --- a/trac/htdocs/js/admin_enums.js +++ b/trac/htdocs/js/admin_enums.js @@ -6,8 +6,10 @@ jQuery(function($) { $enumlist.addSelectAllCheckboxes(); // Insert 'Revert changes' button after the 'Apply changes' button - var $revert_button = $('') - .insertAfter($apply_button); + var $revert_button = $($.htmlFormat( + '', + _("Revert changes"))); + $revert_button.insertAfter($apply_button); // Disable the 'Apply changes' button until there is a change $apply_button.prop('disabled', true); diff --git a/trac/locale/ja/LC_MESSAGES/messages-js.po b/trac/locale/ja/LC_MESSAGES/messages-js.po index fd391115d4..30edec71ce 100644 --- a/trac/locale/ja/LC_MESSAGES/messages-js.po +++ b/trac/locale/ja/LC_MESSAGES/messages-js.po @@ -16,12 +16,16 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.15.0\n" #: tracopt/ticket/htdocs/ticketclone.js:22 msgid "Clone" msgstr "コピー" +#: trac/htdocs/js/admin_enums.js:11 +msgid "Revert changes" +msgstr "変更をもとに戻す" + #: tracopt/ticket/htdocs/ticketclone.js:34 msgid "Create a new ticket from this comment" msgstr "このコメントから新規チケットを作成する" diff --git a/trac/locale/messages-js.pot b/trac/locale/messages-js.pot index 1f40e3d403..e3d0c3bb80 100644 --- a/trac/locale/messages-js.pot +++ b/trac/locale/messages-js.pot @@ -21,6 +21,10 @@ msgstr "" msgid "Clone" msgstr "" +#: trac/htdocs/js/admin_enums.js:11 +msgid "Revert changes" +msgstr "" + #: tracopt/ticket/htdocs/ticketclone.js:34 msgid "Create a new ticket from this comment" msgstr ""