From 7707124027d708503705e5b3a055dd9bfba1e81b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 29 Jan 2008 17:17:13 +0000 Subject: [PATCH] Widget i18n from nbachiyski. see #5583 git-svn-id: https://develop.svn.wordpress.org/trunk@6679 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/widgets.php | 10 ++++++++++ wp-admin/js/widgets.js | 12 ++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/wp-admin/includes/widgets.php b/wp-admin/includes/widgets.php index 6bf03c9df5..17ff22afdf 100644 --- a/wp-admin/includes/widgets.php +++ b/wp-admin/includes/widgets.php @@ -177,6 +177,16 @@ function wp_widget_control( $key, $widget, $display = 'display' ) {
> +
+ + + + + + + + "> +
250 ) li.animate( { marginLeft: 0 } ); - t.siblings('h4').children('a').text( editText ); + t.siblings('h4').children('a').text( widgetsL10n.edit ); } else { t.animate( { height: 'show' } ); if ( width > 250 ) li.animate( { marginLeft: ( width - 250 ) * -1 } ); - t.siblings('h4').children('a').text( cancText ); + t.siblings('h4').children('a').text( widgetsL10n.cancel ); } } ).end(); }; @@ -54,7 +50,7 @@ jQuery(function($) { increment++; newLi.html( newLi.html().replace( /%i%/g, i ) ); } else { - $(this).text( editText ).unbind().click( editClick ); + $(this).text( widgetsL10n.edit ).unbind().click( editClick ); // save form content in textarea so we don't have any conflicting HTML ids oldLi.html( '' ); } @@ -91,7 +87,7 @@ jQuery(function($) { $(this).parents('li:first').remove(); var t = $('#widget-list ul#widget-control-info-' + w + ' textarea'); t.parent().html( t.text() ).parents('li.widget-list-item:first').children( 'h4' ).children('a.widget-action') - .show().text( addText ).unbind().click( addClick ); + .show().text( widgetsL10n.add ).unbind().click( addClick ); var n = parseInt( $('#widget-count').text(), 10 ) - 1; $('#widget-count').text( n.toString() ) return false;