From 4b3cc5c55e07dc4a9cbd8b94f0bbe9e6a0fe5904 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 26 Mar 2015 20:55:34 +0000 Subject: [PATCH] Improve newly added strings for i18n: * Use a placeholder for the theme name to be able to reorder words. * Uppercase D for "Theme Details" to match existing strings. * Merge two revision date formats. * Add translator comment to strings with placeholders. props obenland. see #31776. git-svn-id: https://develop.svn.wordpress.org/trunk@31905 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/themes.php | 14 ++++++++++++-- src/wp-includes/class-wp-customize-control.php | 9 +++++++-- src/wp-includes/class-wp-customize-section.php | 2 +- src/wp-includes/post-template.php | 4 ++-- src/wp-includes/script-loader.php | 2 ++ src/wp-includes/widgets.php | 3 ++- 6 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index 52e3531250..4e63fd82f0 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -222,7 +222,12 @@ foreach ( $themes as $theme ) :
-

+

+ Active: %s' ), $theme['name'] ); + ?> +

@@ -319,7 +324,12 @@ $can_delete = current_user_can( 'delete_themes' );
<# if ( data.active ) { #> -

{{{ data.name }}}

+

+ Active: %s' ), '{{ data.name }}' ); + ?> + >

<# } else { #>

{{{ data.name }}}

<# } #> diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index bd964c2d6f..c220f2a921 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/wp-includes/class-wp-customize-control.php @@ -1213,7 +1213,12 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
<# if ( data.theme.active ) { #> -

{{ data.theme.name }}

+

+ Previewing: %s' ), '{{ data.theme.name }}' ); + ?> +

<# } else { #>

{{ data.theme.name }}

<# } #> @@ -1286,7 +1291,7 @@ class WP_Widget_Area_Customize_Control extends WP_Customize_Control { - + " target="_top" class="add-new-h2"> - +
controls ) ) : ?>