Making WordPress.org


Ignore:
Timestamp:
03/09/2019 01:13:13 PM (8 years ago)
Author:
ocean90
Message:

Rosetta: Check if the provided locale exists before adding the association.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/admin/network/class-locale-associations-view.php

    r7174 r8430  
    7878                                        '<div class="notice notice-error"><p>%s</p></div>',
    7979                                        __( 'Please provide a locale and a subdomain.', 'rosetta' )
     80                                );
     81                                break;
     82                        case 'add-association|locale_does_not_exist' :
     83                                printf(
     84                                        '<div class="notice notice-error"><p>%s</p></div>',
     85                                        __( 'The locale does not exist yet.', 'rosetta' )
    8086                                );
    8187                                break;
Note: See TracChangeset for help on using the changeset viewer.