From 868f49375c06a7029f8a2f2ac471f16c5008057c Mon Sep 17 00:00:00 2001 From: jmash Date: Mon, 29 Dec 2008 14:52:47 +0000 Subject: [PATCH] pre1.2.2 - extend translataion git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@82841 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pagemash.js | 8 ++++---- pagemash.php | 17 ++++++++++++----- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/pagemash.js b/pagemash.js index 52f6e47..c52f928 100644 --- a/pagemash.js +++ b/pagemash.js @@ -54,7 +54,7 @@ var saveList = function() { postBody: 'm='+Json.toString(theDump), update: "debug_list", onComplete: function() { - $('update_status').setText('Database Updated'); + $('update_status').setText(window.pmash.update); new Fx.Style($('update_status'), 'opacity', {duration: 500}).start(0,1).chain(function() { new Fx.Style($('update_status'), 'opacity', {duration: 1500}).start(1,0); }); @@ -127,15 +127,15 @@ window.addEvent('domready', function(){ e.stop(); switch($('pageMashInfo_toggle').getText()) { case "Show Further Info": - $('pageMashInfo_toggle').setText('Hide Further Info'); + $('pageMashInfo_toggle').setText(window.pmash.hideInfo); break case "Hide Further Info": - $('pageMashInfo_toggle').setText('Show Further Info'); + $('pageMashInfo_toggle').setText(window.pmash.showInfo); break } }); pageMashInfo.hide(); - $('pageMashInfo_toggle').setText('Show Further Info'); + $('pageMashInfo_toggle').setText(window.pmash.showInfo); /* loop through each page */ diff --git a/pagemash.php b/pagemash.php index 4e21771..c61a799 100644 --- a/pagemash.php +++ b/pagemash.php @@ -4,7 +4,7 @@ Plugin Name: pageMash Plugin URI: http://joelstarnes.co.uk/pagemash/ Description: Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows quick sorting, hiding and organising of page structure. Author: Joel Starnes -Version: 1.2.1 +Version: 1.2.2 Author URI: http://joelstarnes.co.uk/ */ @@ -162,15 +162,22 @@ function pageMash_head(){ function pageMash_add_css(){ global $pageMash_url, $CollapsePagesOnLoad; - if($CollapsePagesOnLoad): ?> - - + window.pmash = { + "update": "Database Updated", + "showInfo": "Show Further Info Poo", + "hideInfo": "Hide Further Info" + } + + ', $pageMash_url); // ?>