Make WordPress Core

Changeset 40035 for trunk


Ignore:
Timestamp:
01/31/2017 09:58:49 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Update/Install: Give context to "Deleted! string to allow for differentiation between theme and plugin translations.

Props swissspidy.
See #39747. See #37290.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r40034 r40035  
    842842        } );
    843843
    844         wp.a11y.speak( wp.updates.l10n.deleted, 'polite' );
     844        wp.a11y.speak( wp.updates.l10n.pluginDeleted, 'polite' );
    845845
    846846        $document.trigger( 'wp-plugin-delete-success', response );
     
    12741274        }
    12751275
    1276         wp.a11y.speak( wp.updates.l10n.deleted, 'polite' );
     1276        wp.a11y.speak( wp.updates.l10n.themeDeleted, 'polite' );
    12771277
    12781278        $document.trigger( 'wp-theme-delete-success', response );
  • trunk/src/wp-includes/script-loader.php

    r40034 r40035  
    694694                /* translators: %s: Error string for a failed deletion */
    695695                'deleteFailed'               => __( 'Deletion failed: %s' ),
    696                 'deleted'                    => __( 'Deleted!' ),
     696                'pluginDeleted'              => _x( 'Deleted!', 'plugin' ),
     697                'themeDeleted'               => _x( 'Deleted!', 'theme' ),
    697698                'livePreview'                => __( 'Live Preview' ),
    698699                'activatePlugin'             => is_network_admin() ? __( 'Network Activate' ) : __( 'Activate' ),
  • trunk/tests/qunit/fixtures/updates.js

    r40034 r40035  
    4343        'deleting': 'Deleting...',
    4444        'deleteFailed': 'Deletion failed: %s',
    45         'deleted': 'Deleted!',
     45        'pluginDeleted': 'Deleted!',
     46        'themeDeleted': 'Deleted!',
    4647        'livePreview': 'Live Preview',
    4748        'activatePlugin': 'Activate',
Note: See TracChangeset for help on using the changeset viewer.