added polish translation and removed some hardcoded strings (from Rafal Slubowski...
authorchriskl <chriskl>
Mon, 23 Dec 2002 01:18:56 +0000 (01:18 +0000)
committerchriskl <chriskl>
Mon, 23 Dec 2002 01:18:56 +0000 (01:18 +0000)
lang/polish.php [new file with mode: 0644]
public_html/tblproperties.php
public_html/views.php

diff --git a/lang/polish.php b/lang/polish.php
new file mode 100644 (file)
index 0000000..591b359
--- /dev/null
@@ -0,0 +1,129 @@
+<?php
+
+       /**
+        * Polish language file for WebDB WebDB.         
+        *
+        * $Id: polish.php,v 1.1 2002/12/23 01:18:56 chriskl Exp $
+        */
+
+       $appLang = 'polish';
+
+       $strNoFrames = 'Aby u¿ywaæ tej aplikacji potrzebujesz przegl±darki obs³uguj±cej ramki.';
+       $strLogin = '- Zaloguj';
+       $strNoTables = 'Nie znaleziono tablic.';
+       $strNoTable = 'Nie znaleziono tablicy.';
+       $strNoViews = 'Nie znaleziono widoków.';
+       $strNoFunctions = 'Nie znaleziono funkcji.';
+       $strOwner = 'W³a¶ciciel';
+       $strAction = 'Akcja';   
+       $strActions = 'Akcje';  
+       $strName = 'Nazwa';
+       $strTable = 'Tabela';
+       $strTables = 'Tabele';
+       $strView = 'Widok';
+       $strViews = 'Widoki';
+       $strDefinition = 'Definicja';
+       $strRules = 'Regu³y';
+       $strSequence = 'Sekwencja';
+       $strSequences = 'Sekwencje';
+       $strFunction = 'Funkcja';
+       $strFunctions = 'Funkcje';
+       $strOperators = 'Operatory';
+       $strTypes = 'Typy';
+       $strAggregates = 'Aggregates';
+       $strIndicies = 'Indeksy';
+       $strProperties = 'W³a¶ciwo¶ci';
+       $strBrowse = 'Przegl±daj';
+       $strDrop = 'Usuñ';
+       $strDropped = 'Usuniêty';
+       $strNull = 'Null';
+       $strNotNull = 'Not Null';
+       $strPrev = 'Poprzedni';
+       $strNext = 'Nastêpny';
+       $strFailed = 'Failed';
+       $strNotLoaded = 'Nie wkompilowa³e¶ do PHP obs³ugi tej bazy danych.';
+       $strCreate = 'Utwórz';
+       $strComment = 'Skomentuj';
+       $strLength = 'D³ugo¶æ';
+       $strDefault = 'Domy¶lny';
+       $strAlter = 'Zmieñ';
+       $strPrivileges = 'Uprawnienia';
+       $strInsert = 'Wstaw';
+       $strSelect = 'Wybierz';
+       $strDelete = 'Usuñ';
+       $strUpdate = 'Zmieñ';
+       $strRule = 'Regu³a';
+       $strReferences = 'Odno¶niki';
+       $strTrigger = 'Trigger';
+
+
+               
+       // Users
+       $strUser = 'U¿ytkownik';
+       $strGroup = 'Grupa';
+       $strUsername = 'Nazwa u¿ytkownika';
+       $strPassword = 'Has³o';
+       $strSuper = 'Administrator?';
+       $strCreateDB = 'Tworzenie BD?';
+       $strExpires = 'Wygasa'; 
+       $strNoUsers = 'Nie znaleziono u¿ytkowników.';
+       
+       // Databases
+       $strDatabase = 'Baza danych';
+       $strDatabases = 'Bazy danych';
+       $strNoDatabases = 'Nie znaleziono ¿adnej bazy danych.';
+       $strDatabaseNeedsName = 'Musisz nazwaæ bazê danych.';
+       
+       // Views
+       $strViewNeedsName = 'Musisz nazwaæ widok.';
+       $strViewNeedsDef = 'Musisz zdefiniowaæ widok.';
+
+       // Sequences
+       $strNoSequences = 'Nie znaleziono sekwencji.';
+       $strSequenceName = 'sequence_name';
+       $strLastValue = 'last_value';
+       $strIncrementBy = 'increment_by';       
+       $strMaxValue = 'max_value';
+       $strMinValue = 'min_value';
+       $strCacheValue = 'cache_value';
+       $strLogCount = 'log_cnt';
+       $strIsCycled = 'is_cycled';
+       $strIsCalled = 'is_called';
+       $strReset =     'Wyczy¶æ';
+
+       // Indicies
+       $strIndexName = 'Nazwa Indeksu';
+       $strTabName = 'Tab Name';
+       $strColumnName = 'Nazwa Kolumny';
+       $strUniqueKey = 'Klucz Unikatowy';
+       $strPrimaryKey = 'Klucz G³ówny';
+       
+       // Tables
+       $strField = 'Pole';
+       $strType = 'Typ';
+       $strValue = 'Warto¶æ';
+       $strShowAllTables = 'Poka¿ wszystkie tablice';
+       $strUnique = 'Unikatowy';
+       $strPrimary = 'G³ówny';
+       $strKeyName = 'Nazwa Klucza';
+       $strNumFields = 'Ilo¶æ Pól';
+       $strCreateTable = 'Utwórz Tabelê';
+       $strTableNeedsName = 'Musisz nazwaæ tabelê.';
+       $strTableNeedsCols = 'Musisz podaæ prawid³ow± liczbê kolumn.';
+       $strExport = 'Eksport';
+       
+       // Functions
+       $strReturns = 'Zwraca';
+       $strArguments = 'Parametry';
+       $strLanguage = 'Jêzyk';
+       $strFunctionNeedsName = 'Musisz nazwaæ funkcjê.';
+       $strFunctionNeedsDef = 'Musisz zdefiniowaæ funkcjê.';
+       
+       // Triggers
+       $strTriggers = 'Triggery';
+       $strNoTriggers = 'Nie znaleziono triggerów.';
+       $strCreateTrigger = 'Utwórz Trigger';
+       
+       $strColumns = 'Kolumny';
+       $strConstraints = 'Wiêzy integralno¶ci';
+?>
index 9ce2cd0802878f4bcc8afef1de7ad0a19a7bea82..85d8b1f2d8c8d2c088dc155b9bda336a6a75855a 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List tables in a database
         *
-        * $Id: tblproperties.php,v 1.10 2002/12/19 22:27:38 xzilla Exp $
+        * $Id: tblproperties.php,v 1.11 2002/12/23 01:18:57 chriskl Exp $
         */
 
        // Include application functions
        function doIndicies($msg = '') {
                global $data, $localData, $misc;
                global $PHP_SELF;
-               global $strNoIndicies, $strIndicies, $strActions, $strName;
+               global $strNoIndicies, $strIndicies, $strActions, $strName, $strDefinition ;
 
                doNav();
                echo "<h2>", htmlspecialchars($_REQUEST['database']), ": ", htmlspecialchars($_REQUEST['table']), ": {$strIndicies}</h2>\n";
                
                if ($indexes->recordCount() > 0) {
                        echo "<table>\n";
-                       echo "<tr><th class=\"data\">{$strName}</th><th class=\"data\">Definition</th><th colspan=\"2\" class=\"data\">{$strActions}</th>\n";
+                       echo "<tr><th class=\"data\">{$strName}</th><th class=\"data\">{$strDefinition}</th><th colspan=\"2\" class=\"data\">{$strActions}</th>\n";
                        $i = 0;
                        
                        while (!$indexes->EOF) {
        function doDefault($msg = '') {
                global $data, $localData;
                global $PHP_SELF, $strTable, $strOwner, $strActions, $strNoTables;
-               global $strBrowse, $strProperties, $strDrop, $strShowAllTables;
-               global $strKeyName, $strUnique, $strField, $strAction, $strPrimary,$strPrivileges;
+               global $strBrowse, $strProperties, $strDrop, $strShowAllTables, $strPrivileges;
+               global $strKeyName, $strUnique, $strField, $strType, $strNotNull, $strDefault, $strAction, $strPrimary;
 
                doNav();
                echo "<h2>", htmlspecialchars($_REQUEST['database']), ": ", htmlspecialchars($_REQUEST['table']), "</h2>\n";
 
                if ($attrs->recordCount() > 0) {
                        echo "<table>\n";
-                       echo "<tr><th class=data>Field</th><th class=data>Type</th><th class=data>Not Null</th><th class=data>Default</th><th colspan=2 class=data>{$strActions}</th>\n";
+                       echo "<tr><th class=data>{$strField}</th><th class=data>{$strType}</th><th class=data>{$strNotNull}</th><th class=data>{$strDefault}</th><th colspan=2 class=data>{$strActions}</th>\n";
                        $i = 0;
                        while (!$attrs->EOF) {
                                $attrs->f['attnotnull'] = $localData->phpBool($attrs->f['attnotnull']);
@@ -398,16 +398,17 @@ EOF;
 
        function doNav() {
                global $PHP_SELF;
+               global $strColumns, $strIndicies, $strConstraints, $strTriggers, $strRules, $strExport;
 
                $vars = 'database=' . urlencode($_REQUEST['database']) . '&table=' . urlencode($_REQUEST['table']);
                
                echo "<table class=\"navbar\" border=\"0\" width=\"100%\" cellpadding=\"5\" cellspacing=\"3\">\n";
-               echo "<tr><td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}\">Columns</a></td>";
-               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=indicies\">Indexes</a></td>";
-               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=constraints\">Constraints</a></td>";
-               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=triggers\">Triggers</a></td>";
-               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=rules\">Rules</a></td>";
-               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=export\">Export</a></td></tr>";
+               echo "<tr><td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}\">{$strColumns}</a></td>";
+               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=indicies\">{$strIndicies}</a></td>";
+               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=constraints\">{$strConstraints}</a></td>";
+               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=triggers\">{$strTriggers}</a></td>";
+               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=rules\">{$strRules}</a></td>";
+               echo "<td width=\"17%\"><a href=\"{$PHP_SELF}?{$vars}&action=export\">{$strExport}</a></td></tr>";
                echo "</table>\n";
        }       
 
index 783ee1921b00156d1d46f51cd95185975a4ad60b..443fc53d53e7fb244ce4a4acac9f97f4975b35cd 100644 (file)
@@ -3,7 +3,7 @@
        /**\r
         * Manage views in a database\r
         *\r
-        * $Id: views.php,v 1.5 2002/07/26 09:03:06 chriskl Exp $\r
+        * $Id: views.php,v 1.6 2002/12/23 01:18:57 chriskl Exp $\r
         */\r
 \r
        // Include application functions\r
@@ -31,9 +31,9 @@
         */\r
        function doEdit($msg = '') {\r
                global $data, $localData, $misc;\r
-               global $PHP_SELF, $strName, $strDefinition;\r
+               global $PHP_SELF, $strName, $strDefinition, $strViews ;\r
                \r
-               echo "<h2>", htmlspecialchars($_REQUEST['database']), ": Views: ", htmlspecialchars($_REQUEST['view']), ": Edit</h2>\n";\r
+               echo "<h2>", htmlspecialchars($_REQUEST['database']), ": {$strViews}: ", htmlspecialchars($_REQUEST['view']), ": Edit</h2>\n";\r
                $misc->printMsg($msg);\r
                \r
                $viewdata = &$localData->getView($_REQUEST['view']);\r
@@ -65,9 +65,9 @@
         */\r
        function doProperties($msg = '') {\r
                global $data, $localData, $misc;\r
-               global $PHP_SELF, $strName, $strDefinition;\r
+               global $PHP_SELF, $strName, $strDefinition, $strViews;\r
        \r
-               echo "<h2>", htmlspecialchars($_REQUEST['database']), ": Views: ", htmlspecialchars($_REQUEST['view']), ": Properties</h2>\n";\r
+               echo "<h2>", htmlspecialchars($_REQUEST['database']), ": {$strViews}: ", htmlspecialchars($_REQUEST['view']), ": Properties</h2>\n";\r
                $misc->printMsg($msg);\r
                \r
                $viewdata = &$localData->getView($_REQUEST['view']);\r
         */\r
        function doDrop($confirm) {\r
                global $localData, $database;\r
-               global $PHP_SELF;\r
+               global $PHP_SELF, $strViews;\r
 \r
                if ($confirm) { \r
-                       echo "<h2>", htmlspecialchars($_REQUEST['database']), ": Views: ", htmlspecialchars($_REQUEST['view']), ": Drop</h2>\n";\r
+                       echo "<h2>", htmlspecialchars($_REQUEST['database']), ": {$strViews}: ", htmlspecialchars($_REQUEST['view']), ": Drop</h2>\n";\r
                        \r
                        echo "<p>Are you sure you want to drop the view \"", htmlspecialchars($_REQUEST['view']), "\"?</p>\n";\r
                        \r
         */\r
        function doCreate($msg = '') {\r
                global $data, $localData, $misc;\r
-               global $PHP_SELF, $strName, $strDefinition;\r
+               global $PHP_SELF, $strName, $strDefinition, $strViews;\r
                \r
                if (!isset($_POST['formView'])) $_POST['formView'] = '';\r
                if (!isset($_POST['formDefinition'])) $_POST['formDefinition'] = '';\r
                \r
-               echo "<h2>", htmlspecialchars($_REQUEST['database']), ": Views: Create View</h2>\n";\r
+               echo "<h2>", htmlspecialchars($_REQUEST['database']), ": {$strViews}: Create View</h2>\n";\r
                $misc->printMsg($msg);\r
                \r
                echo "<form action=\"$PHP_SELF\" method=post>\n";\r
         */\r
        function doDefault($msg = '') {\r
                global $data, $localData, $misc, $database, $view;\r
-               global $PHP_SELF, $strView, $strOwner, $strActions, $strNoViews;\r
+               global $PHP_SELF, $strView, $strOwner, $strActions, $strNoViews, $strViews;\r
                \r
-               echo "<h2>", htmlspecialchars($_REQUEST['database']), ": Views</h2>\n";\r
+               echo "<h2>", htmlspecialchars($_REQUEST['database']), ": {$strViews}</h2>\n";\r
                $misc->printMsg($msg);\r
                \r
                $views = &$localData->getViews();\r