From 55519962ccf8cb9112837af6d3c87b506d15a344 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Thu, 26 Mar 2015 20:56:26 +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. Built from https://develop.svn.wordpress.org/trunk@31905 git-svn-id: http://core.svn.wordpress.org/trunk@31884 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 14 ++++++++++++-- wp-includes/class-wp-customize-control.php | 9 +++++++-- wp-includes/class-wp-customize-section.php | 2 +- wp-includes/post-template.php | 4 ++-- wp-includes/script-loader.php | 2 ++ wp-includes/version.php | 2 +- wp-includes/widgets.php | 3 ++- 7 files changed, 27 insertions(+), 9 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 52e3531250..4e63fd82f0 100644 --- a/wp-admin/themes.php +++ b/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/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index bd964c2d6f..c220f2a921 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/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 ) ) : ?>