Allow comments in translations
This commit is contained in:
parent
44ae8c8766
commit
6ab272b72c
|
@ -25,6 +25,7 @@ $translations = array(
|
||||||
'Save' => 'Uložit',
|
'Save' => 'Uložit',
|
||||||
'Drop' => 'Odstranit',
|
'Drop' => 'Odstranit',
|
||||||
'Database has been dropped.' => 'Databáze byla odstraněna.',
|
'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 created.' => 'Databáze byla vytvořena.',
|
||||||
'Database has been renamed.' => 'Databáze byla přejmenována.',
|
'Database has been renamed.' => 'Databáze byla přejmenována.',
|
||||||
'Database has been altered.' => 'Databáze byla změněna.',
|
'Database has been altered.' => 'Databáze byla změněna.',
|
||||||
|
@ -40,7 +41,10 @@ $translations = array(
|
||||||
'Create new table' => 'Vytvořit novou tabulku',
|
'Create new table' => 'Vytvořit novou tabulku',
|
||||||
'Item has been deleted.' => 'Položka byla smazána.',
|
'Item has been deleted.' => 'Položka byla smazána.',
|
||||||
'Item has been updated.' => 'Položka byla aktualizová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.',
|
'Item%s has been inserted.' => 'Položka%s byla vložena.',
|
||||||
|
|
||||||
'Edit' => 'Upravit',
|
'Edit' => 'Upravit',
|
||||||
'Insert' => 'Vložit',
|
'Insert' => 'Vložit',
|
||||||
'Save and insert next' => 'Uložit a vložit další',
|
'Save and insert next' => 'Uložit a vložit další',
|
||||||
|
@ -227,16 +231,30 @@ $translations = array(
|
||||||
'File does not exist.' => 'Soubor neexistuje.',
|
'File does not exist.' => 'Soubor neexistuje.',
|
||||||
'Permanent login' => 'Trvalé přihlášení',
|
'Permanent login' => 'Trvalé přihlášení',
|
||||||
'%d in total' => '%d celkem',
|
'%d in total' => '%d celkem',
|
||||||
|
|
||||||
|
// label for e-mail attachments in Adminer Editor
|
||||||
'Attachments' => 'Přílohy',
|
'Attachments' => 'Přílohy',
|
||||||
|
|
||||||
|
// label for database system selection (MySQL, SQLite, ...)
|
||||||
'System' => 'Systém',
|
'System' => 'Systém',
|
||||||
|
|
||||||
|
// link to last page if exact number is unknown
|
||||||
'last' => 'poslední',
|
'last' => 'poslední',
|
||||||
|
|
||||||
|
// new data type categories
|
||||||
'Network' => 'Síť',
|
'Network' => 'Síť',
|
||||||
'Geometry' => 'Geometrie',
|
'Geometry' => 'Geometrie',
|
||||||
'Databases have been dropped.' => 'Databáze byly odstraněny.',
|
|
||||||
|
// general SQLite error in create, drop or rename database
|
||||||
'File exists.' => 'Soubor existuje.',
|
'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.',
|
'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ů.',
|
'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.',
|
'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',
|
'Alter schema' => 'Pozměnit schéma',
|
||||||
'Create schema' => 'Vytvořit schéma',
|
'Create schema' => 'Vytvořit schéma',
|
||||||
'Schema has been dropped.' => 'Schéma bylo odstraněno.',
|
'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 has been altered.' => 'Schéma bylo změněno.',
|
||||||
'schema' => 'schéma',
|
'schema' => 'schéma',
|
||||||
'Schema' => 'Schéma',
|
'Schema' => 'Schéma',
|
||||||
|
|
||||||
|
// PostgreSQL sequences support
|
||||||
'Sequences' => 'Sekvence',
|
'Sequences' => 'Sekvence',
|
||||||
'Create sequence' => 'Vytvořit sekvenci',
|
'Create sequence' => 'Vytvořit sekvenci',
|
||||||
'Sequence has been dropped.' => 'Sekvence byla odstraněna.',
|
'Sequence has been dropped.' => 'Sekvence byla odstraněna.',
|
||||||
'Sequence has been created.' => 'Sekvence byla vytvořena.',
|
'Sequence has been created.' => 'Sekvence byla vytvořena.',
|
||||||
'Sequence has been altered.' => 'Sekvence byla změněna.',
|
'Sequence has been altered.' => 'Sekvence byla změněna.',
|
||||||
'Alter sequence' => 'Pozměnit sekvenci',
|
'Alter sequence' => 'Pozměnit sekvenci',
|
||||||
|
|
||||||
|
// PostgreSQL user types support
|
||||||
'User types' => 'Uživatelské typy',
|
'User types' => 'Uživatelské typy',
|
||||||
'Create type' => 'Vytvořit typ',
|
'Create type' => 'Vytvořit typ',
|
||||||
'Type has been dropped.' => 'Typ byl odstraněn.',
|
'Type has been dropped.' => 'Typ byl odstraněn.',
|
||||||
'Type has been created.' => 'Typ byl vytvořen.',
|
'Type has been created.' => 'Typ byl vytvořen.',
|
||||||
'Alter type' => 'Pozměnit typ',
|
'Alter type' => 'Pozměnit typ',
|
||||||
|
|
||||||
|
// label for search in whole database
|
||||||
'Search data in tables' => 'Vyhledat data v tabulkách',
|
'Search data in tables' => 'Vyhledat data v tabulkách',
|
||||||
|
|
||||||
|
// label for box with "Run webserver file adminer.sql"
|
||||||
'From server' => 'Ze serveru',
|
'From server' => 'Ze serveru',
|
||||||
|
|
||||||
|
// label for value '' in enum data type
|
||||||
'empty' => 'prázdné',
|
'empty' => 'prázdné',
|
||||||
|
|
||||||
|
// function translation used in Editor
|
||||||
'now' => 'teď',
|
'now' => 'teď',
|
||||||
);
|
);
|
||||||
|
|
2
lang.php
2
lang.php
|
@ -28,7 +28,7 @@ foreach (glob(dirname(__FILE__) . "/adminer/lang/" . ($_SESSION["lang"] ? $_SESS
|
||||||
$messages = $messages_all;
|
$messages = $messages_all;
|
||||||
$file = file_get_contents($filename);
|
$file = file_get_contents($filename);
|
||||||
$file = str_replace("\r", "", $file);
|
$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 = "";
|
$s = "";
|
||||||
foreach ($matches as $match) {
|
foreach ($matches as $match) {
|
||||||
if (isset($messages[$match[3]])) {
|
if (isset($messages[$match[3]])) {
|
||||||
|
|
Loading…
Reference in a new issue