From 5990caf6eaf5467ab0594456ca20f43b6a361476 Mon Sep 17 00:00:00 2001 From: soranzo Date: Sun, 31 Dec 2006 16:21:26 +0000 Subject: [PATCH] Localize help.php . Use 'drop' instead of 'remove' in Slony. Print strnever for all infinite (role and user) validities. Use 'altered' instead of 'updated' for roles. Remove redundant strings strargname, strremove, strrolename. Remove unused strings strcatupdate, strmaxconnections, strnodatabase. --- classes/plugins/Slony.php | 10 ++++---- functions.php | 4 ++-- help.php | 22 ++++++++--------- lang/english.php | 50 ++++++++++++++++++--------------------- lang/recoded/english.php | 46 ++++++++++++++++------------------- plugin_slony.php | 38 ++++++++++++++--------------- roles.php | 20 ++++++++-------- users.php | 4 ++-- 8 files changed, 92 insertions(+), 102 deletions(-) diff --git a/classes/plugins/Slony.php b/classes/plugins/Slony.php index 781233f7..7385d613 100755 --- a/classes/plugins/Slony.php +++ b/classes/plugins/Slony.php @@ -3,7 +3,7 @@ /** * A class that implements the Slony 1.0.x support plugin * - * $Id: Slony.php,v 1.12 2006/10/01 23:42:18 xzilla Exp $ + * $Id: Slony.php,v 1.13 2006/12/31 16:21:26 soranzo Exp $ */ include_once('./classes/plugins/Plugin.php'); @@ -578,9 +578,9 @@ class Slony extends Plugin { } /** - * Removes a table from a replication set + * Drops a table from a replication set */ - function removeTable($tab_id) { + function dropTable($tab_id) { global $data; $schema = $this->slony_schema; @@ -681,9 +681,9 @@ class Slony extends Plugin { return $data->execute($sql); } /** - * Removes a sequence from a replication set + * Drops a sequence from a replication set */ - function removeSequence($seq_id) { + function dropSequence($seq_id) { global $data; $schema = $this->slony_schema; diff --git a/functions.php b/functions.php index 017ba2ac..379661a5 100644 --- a/functions.php +++ b/functions.php @@ -3,7 +3,7 @@ /** * Manage functions in a database * - * $Id: functions.php,v 1.56 2006/11/01 00:02:20 xzilla Exp $ + * $Id: functions.php,v 1.57 2006/12/31 16:21:26 soranzo Exp $ */ // Include application functions @@ -458,7 +458,7 @@ echo "{$szJSArguments}\n"; echo "\n"; echo "{$lang['strargmode']}\n"; - echo "{$lang['strargname']}\n"; + echo "{$lang['strname']}\n"; echo "{$lang['strargtype']}\n"; echo "\n"; echo "{$szJSAddTR}\n"; diff --git a/help.php b/help.php index e88cc918..9dbde0eb 100644 --- a/help.php +++ b/help.php @@ -3,11 +3,9 @@ /** * Help page redirection/browsing. * - * $Id: help.php,v 1.2 2005/10/18 03:45:16 chriskl Exp $ + * $Id: help.php,v 1.3 2006/12/31 16:21:26 soranzo Exp $ */ - # TODO: Localize messages, improve (or remove) help browser - // Include application functions include_once('./libraries/lib.inc.php'); @@ -15,7 +13,7 @@ $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : ''; function doDefault() { - global $data; + global $data, $lang; if (isset($_REQUEST['help'])) { $url = $data->getHelp($_REQUEST['help']); @@ -31,18 +29,18 @@ } } - doBrowse('Invalid help page'); + doBrowse($lang['strinvalidhelppage']); } function doBrowse($msg = '') { - global $misc, $data; + global $misc, $data, $lang; - $misc->printHeader('Help page browser'); + $misc->printHeader($lang['strhelppagebrowser']); $misc->printBody(); - $misc->printTitle('PostgreSQL and phpPgAdmin Help'); + $misc->printTitle($lang['strselecthelppage']); - echo $misc->printVal($msg); + echo $misc->printMsg($msg); echo "
\n"; @@ -63,12 +61,12 @@ } function doChoosePage($urls) { - global $misc; + global $misc, $lang; - $misc->printHeader('Help page browser'); + $misc->printHeader($lang['strhelppagebrowser']); $misc->printBody(); - $misc->printTitle('Please select a help page'); + $misc->printTitle($lang['strselecthelppage']); echo "