mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
I18N: Improve translator comments.
* Add missing translator comments. * Fix placement of some translator comments. Translator comments should be on the line directly above the line containing the translation function call for optimal compatibility with various `.pot` file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translator comments. Includes minor code layout fixes. Polyglots, rejoice! All WordPress core files now have translator comments for all strings with placeholders! Props jrf, subrataemfluence, GaryJ, webdados, Dency, swissspidy, alvarogois, marcomartins, mihaiiceyro, vladwtz, niq1982, flipkeijzer, michielatyoast, chandrapatel, thrijith, joshuanoyce, FesoVik, tessak22, bhaktirajdev, cleancoded, dhavalkasvala, garrett-eclipse, bibliofille, socalchristina, priyankkpatel, 5hel2l2y, adamsilverstein, JeffPaul, pierlo, SergeyBiryukov. Fixes #44360. git-svn-id: https://develop.svn.wordpress.org/trunk@45926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -61,14 +61,23 @@ if ( isset( $_GET['action'] ) ) {
|
||||
|
||||
// A list of valid actions and their associated messaging for confirmation output.
|
||||
$manage_actions = array(
|
||||
/* translators: %s: Site URL */
|
||||
'activateblog' => __( 'You are about to activate the site %s.' ),
|
||||
/* translators: %s: Site URL */
|
||||
'deactivateblog' => __( 'You are about to deactivate the site %s.' ),
|
||||
/* translators: %s: Site URL */
|
||||
'unarchiveblog' => __( 'You are about to unarchive the site %s.' ),
|
||||
/* translators: %s: Site URL */
|
||||
'archiveblog' => __( 'You are about to archive the site %s.' ),
|
||||
/* translators: %s: Site URL */
|
||||
'unspamblog' => __( 'You are about to unspam the site %s.' ),
|
||||
/* translators: %s: Site URL */
|
||||
'spamblog' => __( 'You are about to mark the site %s as spam.' ),
|
||||
/* translators: %s: Site URL */
|
||||
'deleteblog' => __( 'You are about to delete the site %s.' ),
|
||||
/* translators: %s: Site URL */
|
||||
'unmatureblog' => __( 'You are about to mark the site %s as mature.' ),
|
||||
/* translators: %s: Site URL */
|
||||
'matureblog' => __( 'You are about to mark the site %s as not mature.' ),
|
||||
);
|
||||
|
||||
@@ -152,7 +161,14 @@ if ( isset( $_GET['action'] ) ) {
|
||||
$site = get_site( $site_id );
|
||||
$site_address = untrailingslashit( $site->domain . $site->path );
|
||||
|
||||
wp_die( sprintf( __( 'Sorry, you are not allowed to delete the site %s.' ), $site_address ), 403 );
|
||||
wp_die(
|
||||
sprintf(
|
||||
/* translators: %s: Site URL */
|
||||
__( 'Sorry, you are not allowed to delete the site %s.' ),
|
||||
$site_address
|
||||
),
|
||||
403
|
||||
);
|
||||
}
|
||||
|
||||
$updated_action = 'all_delete';
|
||||
|
||||
Reference in New Issue
Block a user