Internationalization of Slony + use 'properties' instead of 'details' in
authorsoranzo <soranzo>
Thu, 9 Jun 2005 01:24:11 +0000 (01:24 +0000)
committersoranzo <soranzo>
Thu, 9 Jun 2005 01:24:11 +0000 (01:24 +0000)
lang/english.php
lang/recoded/english.php
plugin_slony.php

index f029b1ae578c8c074135890affc3254be84498d2..becec7d7d2f952932338023d5eb270aba4c35890 100755 (executable)
@@ -4,7 +4,7 @@
         * English language file for phpPgAdmin.  Use this as a basis
         * for new translations.
         *
-        * $Id: english.php,v 1.176 2005/05/03 01:50:07 soranzo Exp $
+        * $Id: english.php,v 1.176.2.1 2005/06/09 01:24:11 soranzo Exp $
         */
 
        // Language and character set
        $lang['strtablespacealtered'] = 'Tablespace altered.';
        $lang['strtablespacealteredbad'] = 'Tablespace alteration failed.';
 
+       // Slony clusters
+       $lang['strnoclusters'] = 'No clusters found.';
+       $lang['strconfdropcluster'] = 'Are you sure you want to drop cluster "%s"?';
+       $lang['strclusterdropped'] = 'Cluster dropped.';
+       $lang['strclusterdroppedbad'] = 'Cluster drop failed.';
+
+       // Slony nodes
+       $lang['strnodes'] = 'Nodes';
+       $lang['strnonodes'] = 'No nodes found.';
+       $lang['strcreatenode'] = 'Create node';
+       $lang['strid'] = 'ID';
+       $lang['stractive'] = 'Active';
+       $lang['strnodecreated'] = 'Node created.';
+       $lang['strnodecreatedbad'] = 'Node creation failed.';
+       $lang['strconfdropnode'] = 'Are you sure you want to drop node "%s"?';
+       $lang['strnodedropped'] = 'Node dropped.';
+       $lang['strnodedroppedbad'] = 'Node drop failed';
+
+       // Slony paths  
+       $lang['strpaths'] = 'Paths';
+       $lang['strnopaths'] = 'No paths found.';
+       $lang['strcreatepath'] = 'Create path';
+       $lang['strnodename'] = 'Node name';
+       $lang['strnodeid'] = 'Node ID';
+       $lang['strconninfo'] = 'Connection string';
+       $lang['strconnretry'] = 'Seconds before retry to connect';
+       $lang['strpathneedsconninfo'] = 'You must give a connection string for the path.';
+       $lang['strpathneedsconnretry'] = 'You must give the number of seconds to wait before retry to connect.';
+       $lang['strpathcreated'] = 'Path created.';
+       $lang['strpathcreatedbad'] = 'Path creation failed.';
+       $lang['strconfdroppath'] = 'Are you sure you want to drop path "%s"?';
+       $lang['strpathdropped'] = 'Path dropped.';
+       $lang['strpathdroppedbad'] = 'Path drop failed.';
+
+       // Slony listens
+       $lang['strlistens'] = 'Listens';
+       $lang['strnolistens'] = 'No listens found.';
+       $lang['strcreatelisten'] = 'Create listen';
+       $lang['strlistencreated'] = 'Listen created.';
+       $lang['strlistencreated'] = 'Listen creation failed.';
+       $lang['strconfdroplisten'] = 'Are you sure you want to drop listen "%s"?';
+       $lang['strlistendropped'] = 'Listen dropped.';
+       $lang['strlistendroppedbad'] = 'Listen drop failed.';
+
+       // Slony replication sets
+       $lang['strrepsets'] = 'Replication sets';
+       $lang['strnorepsets'] = 'No replication sets found.';
+       $lang['strcreaterepset'] = 'Create replication set';
+       $lang['strrepsetcreated'] = 'Replication set created.';
+       $lang['strrepsetcreatedbad'] = 'Replication set creation failed.';
+       $lang['strconfdroprepset'] = 'Are you sure you want to drop replication set "%s"?';
+       $lang['strrepsetdropped'] = 'Replication set dropped.';
+       $lang['strrepsetdroppedbad'] = 'Replication set drop failed.';
+
+       // Slony subscriptions
+       $lang['strsubscriptions'] = 'Subscriptions';
+       $lang['strnosubscriptions'] = 'No subscriptions found.';
+
        // Miscellaneous
        $lang['strtopbar'] = '%s running on %s:%s -- You are logged in as user "%s", %s';
        $lang['strtimefmt'] = 'jS M, Y g:iA';
index 0a1debbf61c6e9504bc0b6281c31338f75ea1980..3171f18c72726c5b0b0ab129ea3d8924b1d56be9 100644 (file)
@@ -4,7 +4,7 @@
         * English language file for phpPgAdmin.  Use this as a basis
         * for new translations.
         *
-        * $Id: english.php,v 1.128 2005/05/03 01:50:09 soranzo Exp $
+        * $Id: english.php,v 1.128.2.1 2005/06/09 01:24:11 soranzo Exp $
         */
 
        // Language and character set
        $lang['strtablespacealtered'] = 'Tablespace altered.';
        $lang['strtablespacealteredbad'] = 'Tablespace alteration failed.';
 
+       // Slony clusters
+       $lang['strnoclusters'] = 'No clusters found.';
+       $lang['strconfdropcluster'] = 'Are you sure you want to drop cluster &quot;%s&quot;?';
+       $lang['strclusterdropped'] = 'Cluster dropped.';
+       $lang['strclusterdroppedbad'] = 'Cluster drop failed.';
+
+       // Slony nodes
+       $lang['strnodes'] = 'Nodes';
+       $lang['strnonodes'] = 'No nodes found.';
+       $lang['strcreatenode'] = 'Create node';
+       $lang['strid'] = 'ID';
+       $lang['stractive'] = 'Active';
+       $lang['strnodecreated'] = 'Node created.';
+       $lang['strnodecreatedbad'] = 'Node creation failed.';
+       $lang['strconfdropnode'] = 'Are you sure you want to drop node &quot;%s&quot;?';
+       $lang['strnodedropped'] = 'Node dropped.';
+       $lang['strnodedroppedbad'] = 'Node drop failed';
+
+       // Slony paths  
+       $lang['strpaths'] = 'Paths';
+       $lang['strnopaths'] = 'No paths found.';
+       $lang['strcreatepath'] = 'Create path';
+       $lang['strnodename'] = 'Node name';
+       $lang['strnodeid'] = 'Node ID';
+       $lang['strconninfo'] = 'Connection string';
+       $lang['strconnretry'] = 'Seconds before retry to connect';
+       $lang['strpathneedsconninfo'] = 'You must give a connection string for the path.';
+       $lang['strpathneedsconnretry'] = 'You must give the number of seconds to wait before retry to connect.';
+       $lang['strpathcreated'] = 'Path created.';
+       $lang['strpathcreatedbad'] = 'Path creation failed.';
+       $lang['strconfdroppath'] = 'Are you sure you want to drop path &quot;%s&quot;?';
+       $lang['strpathdropped'] = 'Path dropped.';
+       $lang['strpathdroppedbad'] = 'Path drop failed.';
+
+       // Slony listens
+       $lang['strlistens'] = 'Listens';
+       $lang['strnolistens'] = 'No listens found.';
+       $lang['strcreatelisten'] = 'Create listen';
+       $lang['strlistencreated'] = 'Listen created.';
+       $lang['strlistencreated'] = 'Listen creation failed.';
+       $lang['strconfdroplisten'] = 'Are you sure you want to drop listen &quot;%s&quot;?';
+       $lang['strlistendropped'] = 'Listen dropped.';
+       $lang['strlistendroppedbad'] = 'Listen drop failed.';
+
+       // Slony replication sets
+       $lang['strrepsets'] = 'Replication sets';
+       $lang['strnorepsets'] = 'No replication sets found.';
+       $lang['strcreaterepset'] = 'Create replication set';
+       $lang['strrepsetcreated'] = 'Replication set created.';
+       $lang['strrepsetcreatedbad'] = 'Replication set creation failed.';
+       $lang['strconfdroprepset'] = 'Are you sure you want to drop replication set &quot;%s&quot;?';
+       $lang['strrepsetdropped'] = 'Replication set dropped.';
+       $lang['strrepsetdroppedbad'] = 'Replication set drop failed.';
+
+       // Slony subscriptions
+       $lang['strsubscriptions'] = 'Subscriptions';
+       $lang['strnosubscriptions'] = 'No subscriptions found.';
+
        // Miscellaneous
        $lang['strtopbar'] = '%s running on %s:%s -- You are logged in as user &quot;%s&quot;, %s';
        $lang['strtimefmt'] = 'jS M, Y g:iA';
index 0ac2e42c17ce5ed02ba50ffcd53df62d407f4595..76879fde2db2c8e18fcf9e7196f8a2996e2e42dd 100755 (executable)
@@ -3,7 +3,7 @@
        /**
         * Slony database tab plugin
         *
-        * $Id: plugin_slony.php,v 1.1.2.13 2005/06/08 13:26:08 chriskl Exp $
+        * $Id: plugin_slony.php,v 1.1.2.14 2005/06/09 01:24:11 soranzo Exp $
         */
 
        // Include application functions
@@ -54,9 +54,9 @@
                                
                                break;                  
                        case 'clusters_top':
-                               // Top level Nodes and Replication Sets folders
+                               // Top level Nodes and Replication sets folders
                                $tabs = array('nodes' => array (
-                                                                               'title' => 'Nodes',
+                                                                               'title' => $lang['strnodes'],
                                                                                'url'   => 'plugin_slony.php',
                                                                                'urlvars' => array('subject' => 'nodes')
                                                                        ));
@@ -82,7 +82,7 @@
                                $misc->printTreeXML($items, $attrs);
 
                                $tabs = array('sets' => array (
-                                                                               'title' => 'Replication Sets',
+                                                                               'title' =>      $lang['strrepsets'],
                                                                                'url'   => 'plugin_slony.php',
                                                                                'urlvars' => array('subject' => 'sets')
                                                                        ));
                                // Nodes paths and listens entries
                                
                                $tabs = array('paths' => array (
-                                                                               'title' => 'Paths',
+                                                                               'title' => $lang['strpaths'],
                                                                                'url'   => 'plugin_slony.php',
                                                                                'urlvars' => array('subject' => 'paths')
                                                                        ));
                                $misc->printTreeXML($items, $attrs);
 
                                $tabs = array('listens' => array (
-                                                                               'title' => 'Listens',
+                                                                               'title' => $lang['strlistens'],
                                                                                'url'   => 'plugin_slony.php',
                                                                                'urlvars' => array('subject' => 'listens')
                                                                        ));
                                $misc->printTreeXML($sets, $attrs);
                                break;
                        case 'sets_top':
-                               // Top level Nodes and Replication Sets folders
+                               // Top level Nodes and Replication sets folders
                                
                                $tabs = array('sequences' => array (
                                                                                'title' => $lang['strsequences'],
                                $misc->printTreeXML($items, $attrs);
 
                                $tabs = array('subscriptions' => array (
-                                                                               'title' => 'Subscriptions',
+                                                                               'title' => $lang['strsubscriptions'],
                                                                                'url'   => 'plugin_slony.php',
                                                                                'urlvars' => array('subject' => 'subscriptions')
                                                                        ));
                );
                
                $actions = array (
-                       'detail' => array(
+                       'properties' => array(
                                'title' => $lang['strproperties'],
                                'url'   => "plugin_slony.php?{$misc->href}&amp;action=cluster_properties&amp;",
                                'vars'  => array()
                        )
                );
                
-               $misc->printTable($clusters, $columns, $actions, 'No clusters found.');
+               $misc->printTable($clusters, $columns, $actions, $lang['strnoclusters']);
        }
 
        // CLUSTERS
                $cluster = &$slony->getCluster();
                
                if (is_object($cluster) && $cluster->recordCount() > 0) {                       
-                       // Display domain info
                        echo "<table>\n";
                        echo "<tr><th class=\"data left\" width=\"70\">{$lang['strname']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($slony->slony_cluster), "</td></tr>\n";
                        $misc->printTitle($lang['strdrop']);
 
                        // XXX: N
-                       echo "<p>", sprintf('Are you sure you want to drop Slony cluster "%s"?', $misc->printVal($slony->clony_cluster)), "</p>\n";
+                       echo "<p>", sprintf($lang['strconfdropcluster'], $misc->printVal($slony->clony_cluster)), "</p>\n";
 
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
                else {
                        $status = $slony->dropCluster();
                        if ($status == 0)
-                               doDefault('Cluster dropped.');
+                               doDefault($lang['strclusterdropped']);
                        else
-                               doDefault('Failed dropping cluster.');
+                               doDefault($lang['strclusterdroppedbad']);
                }
        }
 
                );
                
                $actions = array (
-                       'detail' => array(
+                       'properties' => array(
                                'title' => $lang['strproperties'],
                                'url'   => "plugin_slony.php?{$misc->href}&amp;action=node_properties&amp;",
                                'vars'  => array('no_id' => 'no_id')
                        )
                );
                
-               $misc->printTable($nodes, $columns, $actions, 'No nodes found.');
+               $misc->printTable($nodes, $columns, $actions, $lang['strnonodes']);
                
-               echo "<p><a class=\"navlink\" href=\"{$PHP_SELF}?action=create_node&amp;{$misc->href}\">Create Node</a></p>\n";
+               echo "<p><a class=\"navlink\" href=\"{$PHP_SELF}?action=create_node&amp;{$misc->href}\">{$lang['strcreatenode']}</a></p>\n";
        }
        
        /**
                        if ($node->f['no_comment'] !== null)
                                echo "<p class=\"comment\">", $misc->printVal($node->f['no_comment']), "</p>\n";
 
-                       // Display domain info
                        echo "<table>\n";
                        echo "<tr><th class=\"data left\" width=\"70\">{$lang['strname']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($node->f['no_comment']), "</td></tr>\n";
-                       echo "<tr><th class=\"data left\" width=\"70\">ID</th>\n";
+                       echo "<tr><th class=\"data left\" width=\"70\">{$lang['strid']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($node->f['no_id']), "</td></tr>\n";
-                       echo "<tr><th class=\"data left\" width=\"70\">Active</th>\n";
+                       echo "<tr><th class=\"data left\" width=\"70\">{$lang['stractive']}</th>\n";
                        echo "<td class=\"data1\">", ($data->phpBool($node->f['no_active'])) ? $lang['stryes'] : $lang['strno'], "</td></tr>\n";
                        echo "<tr><th class=\"data left\" width=\"70\">{$lang['strcomment']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($node->f['no_comment']), "</td></tr>\n";
                        if (!isset($_POST['nodecomment'])) $_POST['nodecomment'] = '';
        
                        $misc->printTrail('slony_nodes');
-                       $misc->printTitle('Create Node');
+                       $misc->printTitle($lang['strcreatenode']);
                        $misc->printMsg($msg);
        
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo $misc->form;
                        echo "<table width=\"100%\">\n";
-                       echo "\t<tr>\n\t\t<th class=\"data left\">ID</th>\n";
+                       echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strid']}</th>\n";
                        echo "\t\t<td class=\"data1\"><input name=\"nodeid\" size=\"5\" value=\"",
                                htmlspecialchars($_POST['nodeid']), "\" /></td>\n\t</tr>\n";
                        echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strcomment']}</th>\n";
                else {
                        $status = $slony->createNode($_POST['nodeid'], $_POST['nodecomment']);
                        if ($status == 0)
-                               doNodes('Node created.');
+                               doNodes($lang['strnodecreated']);
                        else
-                               doCreateNode(true, 'Failed creating node.');
+                               doCreateNode(true, $lang['strnodecreatedbad']);
                }
        }
 
                        $misc->printTrail('slony_cluster');
                        $misc->printTitle($lang['strdrop']);
 
-                       echo "<p>", sprintf('Are you sure you want to drop node "%s"?', $misc->printVal($_REQUEST['no_id'])), "</p>\n";
+                       echo "<p>", sprintf($lang['strconfdropnode'], $misc->printVal($_REQUEST['no_id'])), "</p>\n";
 
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"drop_node\" />\n";
                else {
                        $status = $slony->dropNode($_REQUEST['no_id']);
                        if ($status == 0)
-                               doNodes('Node dropped.');
+                               doNodes($lang['strnodedropped']);
                        else
-                               doNodes('Failed dropping node.');
+                               doNodes($lang['strnodedroppedbad']);
                }
        }
                
                );
                
                $actions = array (
-                       'detail' => array(
+                       'properties' => array(
                                'title' => $lang['strproperties'],
                                'url'   => "plugin_slony.php?{$misc->href}&amp;action=path_properties&amp;",
                                'vars'  => array('no_id' => 'pa_client', 'path_id' => 'no_id')
                        )
                );
                
-               $misc->printTable($paths, $columns, $actions, 'No paths found.');
+               $misc->printTable($paths, $columns, $actions, $lang['strnopaths']);
        
-               echo "<p><a class=\"navlink\" href=\"{$PHP_SELF}?action=create_path&amp;{$misc->href}&amp;no_id={$_REQUEST['no_id']}\">Create Path</a></p>\n";
+               echo "<p><a class=\"navlink\" href=\"{$PHP_SELF}?action=create_path&amp;{$misc->href}&amp;no_id={$_REQUEST['no_id']}\">{$lang['strcreatepath']}</a></p>\n";
        }
        
        /**
                        if ($path->f['no_comment'] !== null)
                                echo "<p class=\"comment\">", $misc->printVal($path->f['no_comment']), "</p>\n";
 
-                       // Display domain info
                        echo "<table>\n";
-                       echo "<tr><th class=\"data left\" width=\"70\">Server name</th>\n";
+                       echo "<tr><th class=\"data left\" width=\"70\">{$lang['strnodename']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($path->f['no_comment']), "</td></tr>\n";
-                       echo "<tr><th class=\"data left\" width=\"70\">Server ID</th>\n";
+                       echo "<tr><th class=\"data left\" width=\"70\">{$lang['strnodeid']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($path->f['no_id']), "</td></tr>\n";
-                       echo "<tr><th class=\"data left\" width=\"70\">Connect Info</th>\n";
+                       echo "<tr><th class=\"data left\" width=\"70\">{$lang['strconninfo']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($path->f['pa_conninfo']), "</td></tr>\n";
-                       echo "<tr><th class=\"data left\" width=\"70\">Retry</th>\n";
+                       echo "<tr><th class=\"data left\" width=\"70\">{$lang['strconnretry']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($path->f['pa_connretry']), "</td></tr>\n";
                        echo "</table>\n";
                }
                        $nodes = &$slony->getNodes();
 
                        $misc->printTrail('slony_paths');
-                       $misc->printTitle('Create Path');
+                       $misc->printTitle($lang['strcreatepath']);
                        $misc->printMsg($msg);
        
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo $misc->form;
                        echo "<table width=\"100%\">\n";
-                       echo "\t<tr>\n\t\t<th class=\"data left required\">Server</th>\n";
+                       echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strnodename']}</th>\n";
                        echo "\t\t<td class=\"data1\">\n\t\t\t<select name=\"pathserver\">\n";
                        while (!$nodes->EOF) {
                                echo "\t\t\t\t<option value=\"{$nodes->f['no_id']}\"",
                                $nodes->moveNext();
                        }
                        echo "\t\t\t</select>\n\t\t</td>\n\t\n";                
-                       echo "\t<tr>\n\t\t<th class=\"data left required\">Connect Info</th>\n";
+                       echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strconninfo']}</th>\n";
                        echo "\t\t<td class=\"data1\"><input name=\"pathconn\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"",
                                htmlspecialchars($_POST['pathconn']), "\" /></td>\n\t</tr>\n";
-                       echo "\t<tr>\n\t\t<th class=\"data left required\">Conn Retry</th>\n";
+                       echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strconnretry']}</th>\n";
                        echo "\t\t<td class=\"data1\"><input name=\"pathretry\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"",
                                htmlspecialchars($_POST['pathretry']), "\" /></td>\n\t</tr>\n";
                                
                }
                else {
                        if (trim($_POST['pathconn']) == '') {
-                               doCreatePath(true, 'Connect info is required.');
+                               doCreatePath(true, $lang['strpathneedsconninfo']);
                                return;
                        }
                        elseif (trim($_POST['pathretry']) == '') {
-                               doCreatePath(true, 'Connect retry is required.');
+                               doCreatePath(true, $lang['strpathneedsconnretry']);
                                return;
                        }
                                
                        $status = $slony->createPath($_POST['no_id'], $_POST['pathserver'], $_POST['pathconn'], $_POST['pathretry']);
                        if ($status == 0)
-                               doPaths('Path created.');
+                               doPaths($lang['strpathcreated']);
                        else
-                               doCreatePath(true, 'Failed creating path.');
+                               doCreatePath(true, $lang['strpathcreatedbad']);
                }
        }
 
                        $misc->printTrail('slony_cluster');
                        $misc->printTitle($lang['strdrop']);
 
-                       echo "<p>", sprintf('Are you sure you want to drop path "%s"?', $misc->printVal($_REQUEST['path_id'])), "</p>\n";
+                       echo "<p>", sprintf($lang['strconfdroppath'], $misc->printVal($_REQUEST['path_id'])), "</p>\n";
 
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"drop_path\" />\n";
                else {
                        $status = $slony->dropPath($_REQUEST['no_id'], $_REQUEST['path_id']);
                        if ($status == 0)
-                               doPaths('Path dropped.');
+                               doPaths($lang['strpathdropped']);
                        else
-                               doPaths('Failed dropping path.');
+                               doPaths($lang['strpathdroppedbad']);
                }
        }
        
                );
                
                $actions = array (
-                       'detail' => array(
+                       'properties' => array(
                                'title' => $lang['strproperties'],
                                'url'   => "plugin_slony.php?{$misc->href}&amp;action=listen_properties&amp;",
                                'vars'  => array('no_id' => 'li_receiver', 'listen_id' => 'no_id', 'origin_id' => 'li_origin')
 
                );
                
-               $misc->printTable($listens, $columns, $actions, 'No listens found.');
+               $misc->printTable($listens, $columns, $actions, $lang['strnolistens']);
 
-               echo "<p><a class=\"navlink\" href=\"{$PHP_SELF}?action=create_listen&amp;{$misc->href}&amp;no_id={$_REQUEST['no_id']}\">Create Listen</a></p>\n";
+               echo "<p><a class=\"navlink\" href=\"{$PHP_SELF}?action=create_listen&amp;{$misc->href}&amp;no_id={$_REQUEST['no_id']}\">{$lang['strcreatelisten']}</a></p>\n";
        }
 
        /**
                        if ($listen->f['no_comment'] !== null)
                                echo "<p class=\"comment\">", $misc->printVal($listen->f['no_comment']), "</p>\n";
 
-                       // Display domain info
                        echo "<table>\n";
                        echo "<tr><th class=\"data left\" width=\"70\">Provider</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($listen->f['no_comment']), "</td></tr>\n";
                        $nodes = &$slony->getNodes();
 
                        $misc->printTrail('slony_listens');
-                       $misc->printTitle('Create Listen');
+                       $misc->printTitle($lang['strcreatelisten']);
                        $misc->printMsg($msg);
        
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                else {
                        $status = $slony->createListen($_POST['no_id'], $_POST['listenorigin'], $_POST['listenprovider']);
                        if ($status == 0)
-                               doListens('Listen created.');
+                               doListens($lang['strlistencreated']);
                        else
-                               doCreateListen(true, 'Failed creating listen.');
+                               doCreateListen(true, $lang['strlistencreatedbad']);
                }
        }
 
                        $misc->printTrail('slony_cluster');
                        $misc->printTitle($lang['strdrop']);
 
-                       echo "<p>", sprintf('Are you sure you want to drop listen "%s"?', $misc->printVal($_REQUEST['listen_id'])), "</p>\n";
+                       echo "<p>", sprintf($lang['strconfdroplisten'], $misc->printVal($_REQUEST['listen_id'])), "</p>\n";
 
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"drop_listen\" />\n";
                else {
                        $status = $slony->dropListen($_REQUEST['no_id'], $_REQUEST['origin_id'], $_REQUEST['listen_id']);
                        if ($status == 0)
-                               doListens('Listen dropped.');
+                               doListens($lang['strlistendropped']);
                        else
-                               doListens('Failed dropping listen.');
+                               doListens($lang['strlistendroppedbad']);
                }
        }
        
                );
                
                $actions = array (
-                       'detail' => array(
+                       'properties' => array(
                                'title' => $lang['strproperties'],
                                'url'   => "plugin_slony.php?{$misc->href}&amp;action=set_properties&amp;",
                                'vars'  => array('set_id' => 'set_id')
                        )
                );
                
-               $misc->printTable($sets, $columns, $actions, 'No replication sets found.');
+               $misc->printTable($sets, $columns, $actions, $lang['strnorepsets']);
                
-               echo "<p><a class=\"navlink\" href=\"{$PHP_SELF}?action=create_set&amp;{$misc->href}\">Create Replication Set</a></p>\n";
+               echo "<p><a class=\"navlink\" href=\"{$PHP_SELF}?action=create_set&amp;{$misc->href}\">{$lang['strcreaterepset']}</a></p>\n";
        }       
 
        /**
                        if ($set->f['set_comment'] !== null)
                                echo "<p class=\"comment\">", $misc->printVal($set->f['set_comment']), "</p>\n";
 
-                       // Display domain info
                        echo "<table>\n";
                        echo "<tr><th class=\"data left\" width=\"70\">{$lang['strname']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($set->f['set_comment']), "</td></tr>\n";
-                       echo "<tr><th class=\"data left\" width=\"70\">ID</th>\n";
+                       echo "<tr><th class=\"data left\" width=\"70\">{$lang['strid']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($set->f['set_id']), "</td></tr>\n";
                        echo "<tr><th class=\"data left\" width=\"70\">Origin ID</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($set->f['set_origin']), "</td></tr>\n";
                        if (!isset($_POST['setcomment'])) $_POST['setcomment'] = '';
        
                        $misc->printTrail('slony_sets');
-                       $misc->printTitle('Create ReplicationSet');
+                       $misc->printTitle($lang['strcreaterepset']);
                        $misc->printMsg($msg);
        
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo $misc->form;
                        echo "<table width=\"100%\">\n";
-                       echo "\t<tr>\n\t\t<th class=\"data left\">ID</th>\n";
+                       echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strid']}</th>\n";
                        echo "\t\t<td class=\"data1\"><input name=\"setid\" size=\"5\" value=\"",
                                htmlspecialchars($_POST['setid']), "\" /></td>\n\t</tr>\n";
                        echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strcomment']}</th>\n";
                else {
                        $status = $slony->createReplicationSet($_POST['setid'], $_POST['setcomment']);
                        if ($status == 0)
-                               doReplicationSets('Replication set created.');
+                               doReplicationSets($lang['strrepsetcreated']);
                        else
-                               doCreateReplicationSet(true, 'Failed creating set.');
+                               doCreateReplicationSet(true, $lang['strrepsetcreatedbad']);
                }
        }
 
                        $misc->printTrail('slony_cluster');
                        $misc->printTitle($lang['strdrop']);
 
-                       echo "<p>", sprintf('Are you sure you want to drop replication set "%s"?', $misc->printVal($_REQUEST['set_id'])), "</p>\n";
+                       echo "<p>", sprintf($lang['strconfdroprepset'], $misc->printVal($_REQUEST['set_id'])), "</p>\n";
 
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"drop_set\" />\n";
                else {
                        $status = $slony->dropReplicationSet($_REQUEST['set_id']);
                        if ($status == 0)
-                               doReplicationSets('Replication set dropped.');
+                               doReplicationSets($lang['strrepsetdropped']);
                        else
-                               doReplicationSets('Failed dropping set.');
+                               doReplicationSets($lang['strrepsetdroppedbad']);
                }
        }
        
                                'title' => $lang['strname'],
                                'field' => 'no_comment'
                        ),
-                       'actions' => array(
+/*                     'actions' => array(
                                'title' => $lang['stractions'],
-                       ),
+                       ),*/
                        'no_comment' => array(
                                'title' => $lang['strcomment'],
                                'field' => 'no_comment'
                );
                
                $actions = array (
-                       'detail' => array(
+                       'properties' => array(
                                'title' => $lang['strproperties'],
                                'url'   => "plugin_slony.php?{$misc->href}&amp;action=subscription_properties&amp;",
                                'vars'  => array('set_id' => 'sub_set', 'no_id' => 'no_id')
                        )
                );
                
-               $misc->printTable($subscriptions, $columns, $actions, 'No subscriptions found.');
+               $misc->printTable($subscriptions, $columns, $actions, $lang['strnosubscriptions']);
        }
        
        /**
                        if ($subscription->f['receiver'] !== null)
                                echo "<p class=\"comment\">", $misc->printVal($subscription->f['receiver']), "</p>\n";
 
-                       // Display domain info
                        echo "<table>\n";
                        echo "<tr><th class=\"data left\" width=\"70\">Provider ID</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($subscription->f['sub_provider']), "</td></tr>\n";