Edgewall Software
Modify

Opened 5 months ago

Closed 3 months ago

#13778 closed defect (fixed)

The label of "Revert changes" button in admin enum pages should be translated

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 1.6.1
Component: i18n Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:

The label of Revert changes button is translatable, now.

API Changes:
Internal Changes:

Description

  • trac/htdocs/js/admin_enums.js

    diff --git a/trac/htdocs/js/admin_enums.js b/trac/htdocs/js/admin_enums.js
    index bd8ee945b..f51cd90b7 100644
    a b jQuery(function($) {  
    66  $enumlist.addSelectAllCheckboxes();
    77
    88  // Insert 'Revert changes' button after the 'Apply changes' button
    9   var $revert_button = $('<input type="submit" name="revert" value="Revert changes" disabled="disabled" />')
    10                        .insertAfter($apply_button);
     9  var $revert_button = $($.htmlFormat(
     10    '<input type="submit" name="revert" value="$1" disabled="disabled" />',
     11    _("Revert changes")));
     12  $revert_button.insertAfter($apply_button);
    1113
    1214  // Disable the 'Apply changes' button until there is a change
    1315  $apply_button.prop('disabled', true);
  • trac/locale/messages-js.pot

    diff --git a/trac/locale/messages-js.pot b/trac/locale/messages-js.pot
    index 1f40e3d40..e3d0c3bb8 100644
    a b msgstr ""  
    2121msgid "Clone"
    2222msgstr ""
    2323
     24#: trac/htdocs/js/admin_enums.js:11
     25msgid "Revert changes"
     26msgstr ""
     27
    2428#: tracopt/ticket/htdocs/ticketclone.js:34
    2529msgid "Create a new ticket from this comment"
    2630msgstr ""

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 3 months ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Fixed in [17851,17853] and merged in [17855].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.