From 7d4c7408f593a170cfd730b9a3aef48a09235f52 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 5 Dec 2006 02:29:45 +0000 Subject: [PATCH] upload-js gettext. Props nbachiyski. fixes #3224 git-svn-id: http://svn.automattic.com/wordpress/trunk@4605 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 2 +- wp-admin/upload-js.php | 48 ++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index e86bd4aaab..002652bb0d 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -2033,7 +2033,7 @@ function the_attachment_links( $id = false ) { - + diff --git a/wp-admin/upload-js.php b/wp-admin/upload-js.php index 5ee62c1e64..b7fd8664fc 100644 --- a/wp-admin/upload-js.php +++ b/wp-admin/upload-js.php @@ -72,22 +72,22 @@ addLoadEvent( function() { var params = $H(this.params); params.ID = ''; params.action = ''; - h += "« Back"; + h += "' class='back'>echo wp_specialchars(__('« Back'), 1);"; } else { - h += "« Back"; + h += "' class='back'>"; } h += "
" if ( !this.currentImage.isImage ) - h += "

" + this.currentImage.title + "

"; + h += "

'>" + this.currentImage.title + "

"; else h += "

" + this.currentImage.title + "

"; h += " — "; - h += "Edit" + h += "" h += ""; h += '
' h += "
"; if ( this.currentImage.isImage ) { - h += ""; + h += ">"; h += "" + this.currentImage.title + ""; h += ""; } else @@ -97,20 +97,20 @@ addLoadEvent( function() { h += "
"; h += ""; if ( this.currentImage.thumb ) { - h += ""; } - h += ""; h += "
"; - h += "
"; - h += ""; + h += "
"; + h += "
"; + h += ""; h += "
"; - h += "
"; - h += "
"; - h += ""; + h += "
"; + h += "
"; + h += "
"; + h += ""; h += "

"; - h += "' />"; + h += "' />"; h += "

"; h += "
"; @@ -134,22 +134,22 @@ addLoadEvent( function() { var params = $H(this.params); params.ID = ''; params.action = ''; - h += "' class='back'>« "; + h += "' class='back'>« "; } else { - h += "' class='back'>« "; + h += "' class='back'>« "; } h += "
" if ( !this.currentImage.isImage ) - h += "

'>" + this.currentImage.title + "

"; + h += "

'>" + this.currentImage.title + "

"; else h += "

" + this.currentImage.title + "

"; h += " — "; - h += "" + h += "" h += ""; h += '
' h += "
"; if ( this.currentImage.isImage ) { - h += "'>"; + h += "'>"; h += "" + this.currentImage.title + ""; h += ""; } else @@ -158,20 +158,20 @@ addLoadEvent( function() { h += "" - h += ""; + h += ""; h += ""; h += ""; - h += ""; + h += ""; h += ""; h += ""; - h += ""; + h += ""; h += ""; - h += "
' onclick='theFileList.deleteFile(" + id + ");' />"; + h += "
' onclick='theFileList.deleteFile(" + id + ");' />"; h += ""; h += ""; h += ""; h += ""; - h += "
' />
"; + h += "
' />
"; h += "
"; new Insertion.Top('upload-content', h); @@ -244,7 +244,7 @@ addLoadEvent( function() { }, deleteFile: function(id) { - if ( confirm("") ) { + if ( confirm("") ) { $('action-value').value = 'delete'; $('upload-file').submit(); return true;