Skip to content

Commit

Permalink
1.6.1dev: make the label of Revert changes translatable and add Jap…
Browse files Browse the repository at this point in the history
…anese 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
  • Loading branch information
jomae committed Oct 3, 2024
1 parent 22b5064 commit 37b6446
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 4 additions & 2 deletions trac/htdocs/js/admin_enums.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ jQuery(function($) {
$enumlist.addSelectAllCheckboxes();

// Insert 'Revert changes' button after the 'Apply changes' button
var $revert_button = $('<input type="submit" name="revert" value="Revert changes" disabled="disabled" />')
.insertAfter($apply_button);
var $revert_button = $($.htmlFormat(
'<input type="submit" name="revert" value="$1" disabled="disabled" />',
_("Revert changes")));
$revert_button.insertAfter($apply_button);

// Disable the 'Apply changes' button until there is a change
$apply_button.prop('disabled', true);
Expand Down
6 changes: 5 additions & 1 deletion trac/locale/ja/LC_MESSAGES/messages-js.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 "このコメントから新規チケットを作成する"
Expand Down
4 changes: 4 additions & 0 deletions trac/locale/messages-js.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 37b6446

Please sign in to comment.