]> git.joonet.de Git - adminer.git/commitdiff
Allow comments in translations
authorJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 19:12:37 +0000 (21:12 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 19:12:37 +0000 (21:12 +0200)
adminer/lang/cs.inc.php
lang.php

index 98b3e82328744a4fc8a56e086ee01a0d09bf6ab4..d1144269419a1709141e43f85d9de93fc10a4a9c 100644 (file)
@@ -25,6 +25,7 @@ $translations = array(
        'Save' => 'Uložit',
        'Drop' => 'Odstranit',
        'Database has been dropped.' => 'Databáze byla odstraněna.',
+       'Databases have been dropped.' => 'Databáze byly odstraněny.',
        'Database has been created.' => 'Databáze byla vytvořena.',
        'Database has been renamed.' => 'Databáze byla přejmenována.',
        'Database has been altered.' => 'Databáze byla změněna.',
@@ -40,7 +41,10 @@ $translations = array(
        'Create new table' => 'Vytvořit novou tabulku',
        'Item has been deleted.' => 'Položka byla smazána.',
        'Item has been updated.' => 'Položka byla aktualizována.',
+       
+       // %s can contain auto-increment value
        'Item%s has been inserted.' => 'Položka%s byla vložena.',
+       
        'Edit' => 'Upravit',
        'Insert' => 'Vložit',
        'Save and insert next' => 'Uložit a vložit další',
@@ -227,16 +231,30 @@ $translations = array(
        'File does not exist.' => 'Soubor neexistuje.',
        'Permanent login' => 'Trvalé přihlášení',
        '%d in total' => '%d celkem',
+       
+       // label for e-mail attachments in Adminer Editor
        'Attachments' => 'Přílohy',
+       
+       // label for database system selection (MySQL, SQLite, ...)
        'System' => 'Systém',
+       
+       // link to last page if exact number is unknown
        'last' => 'poslední',
+       
+       // new data type categories
        'Network' => 'Síť',
        'Geometry' => 'Geometrie',
-       'Databases have been dropped.' => 'Databáze byly odstraněny.',
+       
+       // general SQLite error in create, drop or rename database
        'File exists.' => 'Soubor existuje.',
+       'Please use one of the extensions %s.' => 'Prosím použijte jednu z koncovek %s.',
+       
+       // selects now support in-place editing
        'Double click on a value to modify it.' => 'Dvojklikněte na políčko, které chcete změnit.',
        'Increase Text length to modify this value.' => 'Ke změně této hodnoty zvyšte Délku textů.',
        'Use edit link to modify this value.' => 'Ke změně této hodnoty použijte odkaz upravit.',
+       
+       // PostgreSQL and MS SQL schema support
        'Alter schema' => 'Pozměnit schéma',
        'Create schema' => 'Vytvořit schéma',
        'Schema has been dropped.' => 'Schéma bylo odstraněno.',
@@ -244,19 +262,31 @@ $translations = array(
        'Schema has been altered.' => 'Schéma bylo změněno.',
        'schema' => 'schéma',
        'Schema' => 'Schéma',
+       
+       // PostgreSQL sequences support
        'Sequences' => 'Sekvence',
        'Create sequence' => 'Vytvořit sekvenci',
        'Sequence has been dropped.' => 'Sekvence byla odstraněna.',
        'Sequence has been created.' => 'Sekvence byla vytvořena.',
        'Sequence has been altered.' => 'Sekvence byla změněna.',
        'Alter sequence' => 'Pozměnit sekvenci',
+       
+       // PostgreSQL user types support
        'User types' => 'Uživatelské typy',
        'Create type' => 'Vytvořit typ',
        'Type has been dropped.' => 'Typ byl odstraněn.',
        'Type has been created.' => 'Typ byl vytvořen.',
        'Alter type' => 'Pozměnit typ',
+       
+       // label for search in whole database
        'Search data in tables' => 'Vyhledat data v tabulkách',
+       
+       // label for box with "Run webserver file adminer.sql"
        'From server' => 'Ze serveru',
+       
+       // label for value '' in enum data type
        'empty' => 'prázdné',
+       
+       // function translation used in Editor
        'now' => 'teď',
 );
index e2b0ff851035e6b422a9a8c759df8d2a6850871e..a2f2bb5dbaaa4803a0b10680e8d5ad6f9c49ae5f 100644 (file)
--- a/lang.php
+++ b/lang.php
@@ -28,7 +28,7 @@ foreach (glob(dirname(__FILE__) . "/adminer/lang/" . ($_SESSION["lang"] ? $_SESS
        $messages = $messages_all;
        $file = file_get_contents($filename);
        $file = str_replace("\r", "", $file);
-       preg_match_all("~^(\\s*)(?:// )?(('(?:[^\\\\']+|\\\\.)*') => .*[^,\n]),?~m", $file, $matches, PREG_SET_ORDER);
+       preg_match_all("~^(\\s*(?:// [^'].*\\s+)?)(?:// )?(('(?:[^\\\\']+|\\\\.)*') => .*[^,\n]),?~m", $file, $matches, PREG_SET_ORDER);
        $s = "";
        foreach ($matches as $match) {
                if (isset($messages[$match[3]])) {