diff --git a/compile.php b/compile.php index 1f1f7b32..e1aef17b 100644 --- a/compile.php +++ b/compile.php @@ -29,7 +29,7 @@ function put_file($match) { return ""; } $return = ""; - foreach (glob(dirname(__FILE__) . "/adminer/lang/*.inc.php") as $filename) { + foreach (glob(dirname(__FILE__) . "/$project/lang/*.inc.php") as $filename) { // assign translation numbers include $filename; foreach ($translations as $key => $val) { @@ -38,7 +38,7 @@ function put_file($match) { } } } - foreach (glob(dirname(__FILE__) . "/adminer/lang/*.inc.php") as $filename) { + foreach (glob(dirname(__FILE__) . "/$project/lang/*.inc.php") as $filename) { include $filename; // reassign $translations $translation_ids = array_flip($lang_ids); foreach ($translations as $key => $val) { @@ -179,7 +179,7 @@ if (isset($_SERVER["argv"][1])) { echo "Usage: php compile.php [adminer] [lang]\nPurpose: Compile adminer[-lang].php from adminer/index.php.\n"; exit(1); } - include dirname(__FILE__) . "/adminer/lang/$_COOKIE[adminer_lang].inc.php"; + include dirname(__FILE__) . "/$project/lang/$_COOKIE[adminer_lang].inc.php"; } $filename = $project . ($_COOKIE["adminer_lang"] ? "-$_COOKIE[adminer_lang]" : "") . ".php"; diff --git a/editor/index.php b/editor/index.php index 33acb869..8036598c 100644 --- a/editor/index.php +++ b/editor/index.php @@ -10,7 +10,7 @@ include "../adminer/include/bootstrap.inc.php"; include "../adminer/include/version.inc.php"; include "../adminer/include/functions.inc.php"; include "../adminer/include/lang.inc.php"; -include "../adminer/lang/$LANG.inc.php"; //! subset and superset +include "./lang/$LANG.inc.php"; include "./include/adminer.inc.php"; include "../adminer/include/design.inc.php"; if (isset($_GET["coverage"])) { diff --git a/editor/lang/cs.inc.php b/editor/lang/cs.inc.php new file mode 100644 index 00000000..00a1afb2 --- /dev/null +++ b/editor/lang/cs.inc.php @@ -0,0 +1,59 @@ + 'Přihlásit se', + 'Invalid credentials.' => 'Neplatné přihlašovací údaje.', + 'Server' => 'Server', + 'Save' => 'Uložit', + 'SQL command' => 'SQL příkaz', + 'Logout' => 'Odhlásit', + 'Use' => 'Vybrat', + 'No tables.' => 'Žádné tabulky.', + 'Item has been deleted.' => 'Položka byla smazána.', + 'Item has been updated.' => 'Položka byla aktualizována.', + 'Item has been inserted.' => 'Položka byla vložena.', + 'Edit' => 'Upravit', + 'Insert' => 'Vložit', + 'Save and insert next' => 'Uložit a vložit další', + 'Delete' => 'Smazat', + 'Database' => 'Databáze', + 'Language' => 'Jazyk', + 'Select' => 'Vypsat', + 'New item' => 'Nová položka', + 'Search' => 'Vyhledat', + 'Sort' => 'Setřídit', + 'descending' => 'sestupně', + 'Limit' => 'Limit', + 'No rows.' => 'Žádné řádky.', + 'Action' => 'Akce', + 'edit' => 'upravit', + 'Page' => 'Stránka', + 'Unable to select the table' => 'Nepodařilo se vypsat tabulku', + 'Invalid CSRF token. Send the form again.' => 'Neplatný token CSRF. Odešlete formulář znovu.', + 'Default values has been set.' => 'Výchozí hodnoty byly nastaveny.', + 'Default values' => 'Výchozí hodnoty', + 'BOOL' => 'BOOL', + '%d byte(s)' => array('%d bajt', '%d bajty', '%d bajtů'), + 'Unable to upload a file.' => 'Nepodařilo se nahrát soubor.', + 'File uploads are disabled.' => 'Nahrávání souborů není povoleno.', + 'No MySQL extension' => 'Žádná MySQL extenze', + 'None of supported PHP extensions (%s) are available.' => 'Není dostupná žádná z podporovaných PHP extenzí (%s).', + 'Text length' => 'Délka textů', + '%d row(s)' => array('%d řádek', '%d řádky', '%d řádků'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'Při změně aktuální čas', + 'Are you sure?' => 'Opravdu?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'Příliš velká POST data. Zmenšete data nebo zvyšte hodnotu konfigurační direktivy "post_max_size".', + 'Functions' => 'Funkce', + 'Aggregation' => 'Agregace', + 'Export' => 'Export', + 'Save and continue edit' => 'Uložit a pokračovat v editaci', + 'original' => 'původní', + '%d item(s) have been affected.' => array('Byl ovlivněn %d záznam.', 'Byly ovlivněny %d záznamy.', 'Bylo ovlivněno %d záznamů.'), + 'whole result' => 'celý výsledek', + 'Clone' => 'Klonovat', + '%d row(s) has been imported.' => array('Byl importován %d záznam.', 'Byly importovány %d záznamy.', 'Bylo importováno %d záznamů.'), + 'CSV Import' => 'Import CSV', + 'Import' => 'Import', + 'Table structure' => 'Struktura tabulky', + '(anywhere)' => '(kdekoliv)', + 'Editor' => null, +); diff --git a/editor/lang/de.inc.php b/editor/lang/de.inc.php new file mode 100644 index 00000000..b54d4590 --- /dev/null +++ b/editor/lang/de.inc.php @@ -0,0 +1,59 @@ + 'Login', + 'Invalid credentials.' => 'Ungültige Anmelde-Informationen.', + 'Server' => 'Server', + 'Save' => 'Speichern', + 'SQL command' => 'SQL-Query', + 'Logout' => 'Abmelden', + 'Use' => 'Benutzung', + 'No tables.' => 'Keine Tabellen.', + 'Item has been deleted.' => 'Datensatz gelöscht.', + 'Item has been updated.' => 'Datensatz geändert.', + 'Item has been inserted.' => 'Datensatz hinzugefügt.', + 'Edit' => 'Ändern', + 'Insert' => 'Hinzufügen', + 'Save and insert next' => 'Speichern und nächsten hinzufügen', + 'Delete' => 'Entfernen', + 'Database' => 'Datenbank', + 'Language' => 'Sprache', + 'Select' => 'Daten zeigen von', + 'New item' => 'Neuer Datensatz', + 'Search' => 'Suchen', + 'Sort' => 'Ordnen', + 'descending' => 'absteigend', + 'Limit' => 'Begrenzung', + 'No rows.' => 'Keine Daten.', + 'Action' => 'Aktion', + 'edit' => 'ändern', + 'Page' => 'Seite', + 'Unable to select the table' => 'Auswahl der Tabelle fehlgeschlagen', + 'Invalid CSRF token. Send the form again.' => 'CSRF Token ungültig. Bitte die Formulardaten erneut abschicken.', + 'Default values has been set.' => 'Standard Vorgabewerte sind erstellt worden.', + 'Default values' => 'Vorgabewerte festlegen', + 'BOOL' => 'BOOL', + '%d byte(s)' => array('%d Byte', '%d Bytes'), + 'Unable to upload a file.' => 'Hochladen von Datei fehlgeschlagen.', + 'File uploads are disabled.' => 'Importieren von Dateien abgeschaltet.', + 'No MySQL extension' => 'Keine MySQL-Erweiterungen installiert', + 'None of supported PHP extensions (%s) are available.' => 'Keine der unterstützten PHP-Erweiterungen (%s) ist vorhanden.', + 'Text length' => 'Textlänge', + '%d row(s)' => array('%d Datensatz', '%d Datensätze'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'ON UPDATE CURRENT_TIMESTAMP', + 'Are you sure?' => 'Sind Sie sicher ?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'POST data zu gross. Reduzieren Sie die Grösse oder vergrössern Sie den Wert "post_max_size" in der Konfiguration.', + 'Functions' => 'Funktionen', + 'Aggregation' => 'Aggregationen', + 'Export' => 'Exportieren', + 'Save and continue edit' => 'Speichern und weiter bearbeiten', + 'original' => 'Original', + '%d item(s) have been affected.' => array('%d Artikel betroffen.', '%d Artikel betroffen.'), + 'whole result' => 'gesamtes Resultat', + 'Clone' => 'Klonen', + '%d row(s) has been imported.' => array('%d Datensatz importiert.', '%d Datensätze wurden importiert.'), + 'Table structure' => 'Tabellenstruktur', + '(anywhere)' => '(beliebig)', + 'CSV Import' => 'Importiere CSV', + 'Import' => 'Importieren', + 'Editor' => null, +); diff --git a/editor/lang/en.inc.php b/editor/lang/en.inc.php new file mode 100644 index 00000000..7a02f37c --- /dev/null +++ b/editor/lang/en.inc.php @@ -0,0 +1,7 @@ + array('%d byte', '%d bytes'), + '%d row(s)' => array('%d row', '%d rows'), + '%d item(s) have been affected.' => array('%d item have been affected.', '%d items have been affected.'), + '%d row(s) has been imported.' => array('%d row has been imported.', '%d rows has been imported.'), +); diff --git a/editor/lang/es.inc.php b/editor/lang/es.inc.php new file mode 100644 index 00000000..4f76655c --- /dev/null +++ b/editor/lang/es.inc.php @@ -0,0 +1,59 @@ + 'Login', + 'Invalid credentials.' => 'Autenticación fallada.', + 'Server' => 'Servidor', + 'Save' => 'Guardar', + 'SQL command' => 'Comando SQL', + 'Logout' => 'Logout', + 'Use' => 'Uso', + 'No tables.' => 'No existen tablas.', + 'Item has been deleted.' => 'Registro eliminado.', + 'Item has been updated.' => 'Registro modificado.', + 'Item has been inserted.' => 'Registro insertado.', + 'Edit' => 'Modificar', + 'Insert' => 'Agregar', + 'Save and insert next' => 'Guardar e insertar otro', + 'Delete' => 'Eliminar', + 'Database' => 'Base de datos', + 'Language' => 'Idioma', + 'Select' => 'Mostrar Registros', + 'New item' => 'Nuevo Registro', + 'Search' => 'Buscar', + 'Sort' => 'Ordenar', + 'descending' => 'descendiente', + 'Limit' => 'Limit', + 'No rows.' => 'No hay filas.', + 'Action' => 'Acción', + 'edit' => 'modificar', + 'Page' => 'Página', + 'Unable to select the table' => 'No posible seleccionar la tabla', + 'Invalid CSRF token. Send the form again.' => 'Token CSRF inválido. Vuelva a enviar los datos del formulario.', + 'Default values has been set.' => 'Valores por omisión establecidos.', + 'Default values' => 'Establecer valores por omisión', + 'BOOL' => 'BOOL', + '%d byte(s)' => array('%d byte', '%d bytes'), + 'Unable to upload a file.' => 'No posible subir archivo.', + 'File uploads are disabled.' => 'Importación de archivos deshablilitado.', + 'No MySQL extension' => 'No hay extension MySQL', + 'None of supported PHP extensions (%s) are available.' => 'Ninguna de las extensiones PHP soportadas (%s) está disponible.', + 'Text length' => 'Longitud de texto', + '%d row(s)' => array('%d fila', '%d filas'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'ON UPDATE CURRENT_TIMESTAMP', + 'Are you sure?' => 'Está seguro?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'POST data demasiado grande. Reduzca el tamaño o aumente la directiva de configuración "post_max_size".', + 'Functions' => 'Funciones', + 'Aggregation' => 'Agregaciones', + 'Export' => 'Exportar', + 'Save and continue edit' => 'Guardar y continuar editando', + 'original' => 'original', + '%d item(s) have been affected.' => array('%d item afectado.', '%d itemes afectados.'), + 'whole result' => 'resultado completo', + 'Clone' => 'Clonar', + '%d row(s) has been imported.' => array('%d fila importada.', '%d filas importada.'), + 'Table structure' => 'Estructura de la Tabla', + '(anywhere)' => '(cualquier lugar)', + 'CSV Import' => 'Importar CSV', + 'Import' => 'Importar', + 'Editor' => null, +); diff --git a/editor/lang/et.inc.php b/editor/lang/et.inc.php new file mode 100644 index 00000000..43f3a591 --- /dev/null +++ b/editor/lang/et.inc.php @@ -0,0 +1,59 @@ + 'Logi sisse', + 'Invalid credentials.' => 'Ebakorrektsed andmed.', + 'Server' => 'Server', + 'Save' => 'Salvesta', + 'SQL command' => 'SQL-Päring', + 'Logout' => 'Logi välja', + 'Use' => 'Kasuta', + 'No tables.' => 'Tabeleid ei leitud.', + 'Item has been deleted.' => 'Kustutamine õnnestus.', + 'Item has been updated.' => 'Uuendamine õnnestus.', + 'Item has been inserted.' => 'Lisamine õnnestus.', + 'Edit' => 'Muuda', + 'Insert' => 'Sisesta', + 'Save and insert next' => 'Salvesta ja lisa järgmine', + 'Delete' => 'Kustuta', + 'Database' => 'Andmebaas', + 'Language' => 'Keel', + 'Select' => 'Kuva', + 'New item' => 'Lisa kirje', + 'Search' => 'Otsi', + 'Sort' => 'Sorteeri', + 'descending' => 'kahanevalt', + 'Limit' => 'Piira', + 'No rows.' => 'Sissekanded puuduvad.', + 'Action' => 'Tegevus', + 'edit' => 'muuda', + 'Page' => 'Lehekülg', + 'Unable to select the table' => 'Tabeli valimine ebaõnnestus', + 'Invalid CSRF token. Send the form again.' => 'Sobimatu CSRF, palun postitage vorm uuesti.', + 'Default values has been set.' => 'Vaimimisi väärtused on edukalt määratud.', + 'Default values' => 'Vaikimisi väärtused', + 'BOOL' => 'Jah/Ei (BOOL)', + '%d byte(s)' => array('%d bait', '%d baiti'), + 'Unable to upload a file.' => 'Faili üleslaadimine pole võimalik.', + 'File uploads are disabled.' => 'Failide üleslaadimine on keelatud.', + 'No MySQL extension' => 'Ei leitud MySQL laiendust', + 'None of supported PHP extensions (%s) are available.' => 'Serveris pole ühtegi toetatud PHP laiendustest (%s).', + 'Text length' => 'Teksti pikkus', + '%d row(s)' => array('%d rida', '%d rida'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'ON UPDATE CURRENT_TIMESTAMP', + 'Are you sure?' => 'Kas oled kindel?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'POST-andmete maht on liialt suur. Palun vähendage andmeid või suurendage "post_max_size" php-seadet.', + 'Export' => 'Ekspordi', + 'Functions' => 'Funktsioonid', + 'Aggregation' => 'Liitmine', + 'Save and continue edit' => 'Salvesta ja jätka muutmist', + 'original' => 'originaal', + '%d item(s) have been affected.' => array('Mõjutatud kirjeid: %d.', 'Mõjutatud kirjeid: %d.'), + 'whole result' => 'Täielikud tulemused', + 'Clone' => 'Kloon', + '%d row(s) has been imported.' => array('Imporditi %d rida', 'Imporditi %d rida'), + 'Table structure' => 'Tabeli struktuur', + '(anywhere)' => '(vahet pole)', + 'CSV Import' => 'Impordi CSV', + 'Import' => 'Impordi', + 'Editor' => null, +); diff --git a/editor/lang/fr.inc.php b/editor/lang/fr.inc.php new file mode 100644 index 00000000..8a28808a --- /dev/null +++ b/editor/lang/fr.inc.php @@ -0,0 +1,59 @@ + 'Authentification', + 'Invalid credentials.' => 'Authentification échouée', + 'Server' => 'Serveur', + 'Save' => 'Sauvegarder', + 'SQL command' => 'Requête SQL', + 'Logout' => 'Déconnexion', + 'Use' => 'Utiliser', + 'No tables.' => 'Aucunes tables.', + 'Item has been deleted.' => 'Élément supprimé.', + 'Item has been updated.' => 'Élément modifié.', + 'Item has been inserted.' => 'Élément inseré.', + 'Edit' => 'Modifier', + 'Insert' => 'Insérer', + 'Save and insert next' => 'Sauvegarder et insérer le prochain', + 'Delete' => 'Effacer', + 'Database' => 'Base de données', + 'Language' => 'Langues', + 'Select' => 'Select', + 'New item' => 'Nouvel élément', + 'Search' => 'Rechercher', + 'Sort' => 'Ordonner', + 'descending' => 'décroissant', + 'Limit' => 'Limit', + 'No rows.' => 'Aucun résultat', + 'Action' => 'Action', + 'edit' => 'modifier', + 'Page' => 'Page', + 'Unable to select the table' => 'Impossible de sélectionner la table', + 'Invalid CSRF token. Send the form again.' => 'Token CSRF invalide. Veuillez réenvoyer le formulaire.', + 'Default values has been set.' => 'Valeur par défaut établie .', + 'Default values' => 'Valeurs par défaut', + 'BOOL' => 'BOOL', + '%d byte(s)' => array('%d octet', '%d octets'), + 'Unable to upload a file.' => 'Impossible d\'importer le fichier.', + 'File uploads are disabled.' => 'Importation de fichier désactivé.', + 'No MySQL extension' => 'Extension MySQL introuvable', + 'None of supported PHP extensions (%s) are available.' => 'Aucune des extensions PHP supportées (%s) n\'est disponible.', + 'Text length' => 'Longueur du texte', + '%d row(s)' => array('%d ligne', '%d lignes'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'ON UPDATE CURRENT_TIMESTAMP', + 'Are you sure?' => 'Êtes-vous certain?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'Donnée POST trop grande . Réduire la taille des données ou modifier le "post_max_size" dans la configuration de PHP.', + 'Export' => 'Exporter', + 'Functions' => 'Fonctions', + 'Aggregation' => 'Agrégation', + 'Save and continue edit' => 'Sauvegarder et continuer l\'édition', + 'original' => 'original', + '%d item(s) have been affected.' => array('%d élément ont été modifié.', '%d éléments ont été modifié.'), + 'whole result' => 'résultat entier', + 'Clone' => 'Cloner', + '%d row(s) has been imported.' => array('%d ligne a été importé','%d lignes ont été importé'), + 'Table structure' => 'Structure de la table', + '(anywhere)' => '(n\'importe où)', + 'CSV Import' => 'Importation CVS', + 'Import' => 'Importer', + 'Editor' => null, +); diff --git a/editor/lang/it.inc.php b/editor/lang/it.inc.php new file mode 100644 index 00000000..29d6a1b7 --- /dev/null +++ b/editor/lang/it.inc.php @@ -0,0 +1,59 @@ + 'Autenticazione', + 'Invalid credentials.' => 'Credenziali non valide.', + 'Server' => 'Server', + 'Save' => 'Salva', + 'SQL command' => 'Comando SQL', + 'Logout' => 'Esci', + 'Use' => 'Usa', + 'No tables.' => 'No tabelle.', + 'Item has been deleted.' => 'Elemento eliminato.', + 'Item has been updated.' => 'Elemento aggiornato.', + 'Item has been inserted.' => 'Elemento inserito.', + 'Edit' => 'Modifica', + 'Insert' => 'Inserisci', + 'Save and insert next' => 'Salva e inserisci un altro', + 'Delete' => 'Elimina', + 'Database' => 'Database', + 'Language' => 'Lingua', + 'Select' => 'Seleziona', + 'New item' => 'Nuovo elemento', + 'Search' => 'Cerca', + 'Sort' => 'Ordina', + 'descending' => 'discendente', + 'Limit' => 'Limite', + 'No rows.' => 'Nessuna riga.', + 'Action' => 'Azione', + 'edit' => 'modifica', + 'Page' => 'Pagina', + 'Unable to select the table' => 'Selezione della tabella non riuscita', + 'Invalid CSRF token. Send the form again.' => 'Token CSRF non valido. Reinvia la richiesta.', + 'Default values has been set.' => 'Valore predefinito impostato.', + 'Default values' => 'Valori predefiniti', + 'BOOL' => 'BOOL', + '%d byte(s)' => array('%d byte', '%d bytes'), + 'Unable to upload a file.' => 'Caricamento del file non riuscito.', + 'File uploads are disabled.' => 'Caricamento file disabilitato.', + 'No MySQL extension' => 'Estensioni MySQL non presenti', + 'None of supported PHP extensions (%s) are available.' => 'Nessuna delle estensioni PHP supportate (%s) disponibile.', + 'Text length' => 'Lunghezza testo', + '%d row(s)' => array('%d riga', '%d righe'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'ON UPDATE CURRENT_TIMESTAMP', + 'Are you sure?' => 'Sicuro?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'Troppi dati via POST. Ridurre i dati o aumentare la direttiva di configurazione "post_max_size".', + 'Functions' => 'Funzioni', + 'Aggregation' => 'Aggregazione', + 'Export' => 'Esporta', + 'Save and continue edit' => 'Salva e continua', + 'original' => 'originale', + '%d item(s) have been affected.' => array('Il risultato consiste in %d elemento', 'Il risultato consiste in %d elementi'), + 'whole result' => 'intero risultato', + 'Clone' => 'Clona', + '%d row(s) has been imported.' => array('%d riga importata.','%d righe importate.'), + 'Table structure' => 'Struttura tabella', + '(anywhere)' => '(ovunque)', + 'CSV Import' => 'Importa da CSV', + 'Import' => 'Importa', + 'Editor' => null, +); diff --git a/editor/lang/nl.inc.php b/editor/lang/nl.inc.php new file mode 100644 index 00000000..22ea8f59 --- /dev/null +++ b/editor/lang/nl.inc.php @@ -0,0 +1,59 @@ + 'Inloggen', + 'Invalid credentials.' => 'Ongeldige logingegevens.', + 'Server' => 'Server', + 'Save' => 'Opslaan', + 'SQL command' => 'SQL opdracht', + 'Logout' => 'Uitloggen', + 'Use' => 'Gebruik', + 'No tables.' => 'Geen tabellen.', + 'Item has been deleted.' => 'Item verwijderd.', + 'Item has been updated.' => 'Item aangepast.', + 'Item has been inserted.' => 'Item toegevoegd.', + 'Edit' => 'Bewerk', + 'Insert' => 'Toevoegen', + 'Save and insert next' => 'Opslaan, daarna toevoegen', + 'Delete' => 'Verwijderen', + 'Database' => 'Database', + 'Language' => 'Taal', + 'Select' => 'Kies', + 'New item' => 'Nieuw item', + 'Search' => 'Zoeken', + 'Sort' => 'Sorteren', + 'descending' => 'Aflopend', + 'Limit' => 'Beperk', + 'No rows.' => 'Geen rijen.', + 'Action' => 'Acties', + 'edit' => 'bewerk', + 'Page' => 'Pagina', + 'Unable to select the table' => 'Onmogelijk tabel te selecteren', + 'Invalid CSRF token. Send the form again.' => 'Ongeldig CSRF token. Verstuur het formulier opnieuw.', + 'Default values has been set.' => 'Standaard waarde ingesteld.', + 'Default values' => 'Standaard waarden', + 'BOOL' => 'BOOL', + '%d byte(s)' => array('%d byte', '%d bytes'), + 'Unable to upload a file.' => 'Onmogelijk bestand te uploaden.', + 'File uploads are disabled.' => 'Bestanden uploaden is uitgeschakeld.', + 'No MySQL extension' => 'Geen MySQL extensie', + 'None of supported PHP extensions (%s) are available.' => 'Geen geldige PHP extensies beschikbaar (%s).', + 'Text length' => 'Tekst lengte', + '%d row(s)' => array('%d rij', '%d rijen'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'ON UPDATE CURRENT_TIMESTAMP', + 'Are you sure?' => 'Weet u het zeker?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'POST-data is te groot. Verklein de hoeveelheid data of verhoog de "post_max_size" configuratie.', + 'Export' => 'Exporteren', + 'Functions' => 'Functies', + 'Aggregation' => 'Totalen', + 'Save and continue edit' => 'Opslaan en verder bewerken', + 'original' => 'origineel', + '%d item(s) have been affected.' => array('%d item aangepast.', '%d items aangepast.'), + 'whole result' => 'volledig resultaat', + 'Clone' => 'Dupliceer', + '%d row(s) has been imported.' => array('%d rij werd geïmporteerd.', '%d rijen werden geïmporteerd.'), + 'Table structure' => 'Tabelstructuur', + '(anywhere)' => '(overal)', + 'CSV Import' => 'CSV Import', + 'Import' => 'Importeren', + 'Editor' => null, +); diff --git a/editor/lang/ru.inc.php b/editor/lang/ru.inc.php new file mode 100644 index 00000000..44e0bef5 --- /dev/null +++ b/editor/lang/ru.inc.php @@ -0,0 +1,59 @@ + 'Войти', + 'Invalid credentials.' => 'Неправильное имя пользователя или пароль.', + 'Server' => 'Сервер', + 'Save' => 'Сохранить', + 'SQL command' => 'SQL запрос', + 'Logout' => 'Выйти', + 'Use' => 'Выбрать', + 'No tables.' => 'В базе данных нет таблиц.', + 'Item has been deleted.' => 'Запись удалена.', + 'Item has been updated.' => 'Запись обновлена.', + 'Item has been inserted.' => 'Запись вставлена.', + 'Edit' => 'Редактировать', + 'Insert' => 'Вставить', + 'Save and insert next' => 'Сохранить и вставить еще', + 'Delete' => 'Стереть', + 'Database' => 'База данных', + 'Language' => 'Язык', + 'Select' => 'Выбрать', + 'New item' => 'Новая запись', + 'Search' => 'Поиск', + 'Sort' => 'Сортировать', + 'descending' => 'по убыванию', + 'Limit' => 'Лимит', + 'No rows.' => 'Нет записей.', + 'Action' => 'Действие', + 'edit' => 'редактировать', + 'Page' => 'Страница', + 'Unable to select the table' => 'Не удалось получить данные из таблицы', + 'Invalid CSRF token. Send the form again.' => 'Недействительный CSRF токен. Отправите форму ещё раз.', + 'Default values has been set.' => 'Были установлены значения по умолчанию.', + 'Default values' => 'Значения по умолчанию', + 'BOOL' => 'Булев тип', + '%d byte(s)' => array('%d байт', '%d байта', '%d байтов'), + 'Unable to upload a file.' => 'Не удалось загрузить файл на сервер.', + 'File uploads are disabled.' => 'Загрузка файлов на сервер запрещена.', + 'No MySQL extension' => 'Нет MySQL расширений', + 'None of supported PHP extensions (%s) are available.' => 'Не доступно ни одного расширения из поддерживаемых (%s).', + 'Text length' => 'Длина текста', + '%d row(s)' => array('%d строка', '%d строки', '%d строк'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'ПРИ ИЗМЕНЕНИИ ТЕКУЩЕГО TIMESTAMP', + 'Are you sure?' => 'Вы уверены?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'Слишком большой объем POST-данных. Пошлите меньший объем данных или увеличьте параметр конфигурационной директивы "post_max_size".', + 'Functions' => 'Функции', + 'Aggregation' => 'Агрегация', + 'Export' => 'Експорт', + 'Save and continue edit' => 'Сохранить и продолжить редактирование', + 'original' => 'исходный', + '%d item(s) have been affected.' => array('Была изменена %d запись.', 'Были изменены %d записи.', 'Было изменено %d записей.'), + 'whole result' => 'весь результат', + 'Clone' => 'Клонировать', + '%d row(s) has been imported.' => array('Импортирована %d строка.', 'Импортировано %d строки.', 'Импортировано %d строк.'), + 'CSV Import' => 'Импорт CSV', + 'Import' => 'Импорт', + 'Table structure' => 'Структура таблицы', + '(anywhere)' => '(в любом месте)', + 'Editor' => null, +); diff --git a/editor/lang/sk.inc.php b/editor/lang/sk.inc.php new file mode 100644 index 00000000..a956351d --- /dev/null +++ b/editor/lang/sk.inc.php @@ -0,0 +1,59 @@ + 'Prihlásiť sa', + 'Invalid credentials.' => 'Neplatné prihlasovacie údaje.', + 'Server' => 'Server', + 'Save' => 'Uložiť', + 'SQL command' => 'SQL príkaz', + 'Logout' => 'Odhlásiť', + 'Use' => 'Vybrať', + 'No tables.' => 'Žiadne tabuľky.', + 'Item has been deleted.' => 'Položka bola vymazaná.', + 'Item has been updated.' => 'Položka bola aktualizovaná.', + 'Item has been inserted.' => 'Položka bola vložená.', + 'Edit' => 'Upraviť', + 'Insert' => 'Vložiť', + 'Save and insert next' => 'Uložiť a vložiť ďalší', + 'Delete' => 'Zmazať', + 'Database' => 'Databáza', + 'Language' => 'Jazyk', + 'Select' => 'Vypísať', + 'New item' => 'Nová položka', + 'Search' => 'Vyhľadať', + 'Sort' => 'Zotriediť', + 'descending' => 'zostupne', + 'Limit' => 'Limit', + 'No rows.' => 'Žiadne riadky.', + 'Action' => 'Akcia', + 'edit' => 'upraviť', + 'Page' => 'Stránka', + 'Unable to select the table' => 'Tabuľku sa nepodarilo vypísať', + 'Invalid CSRF token. Send the form again.' => 'Neplatný token CSRF. Odošlite formulár znova.', + 'Default values has been set.' => 'Východzie hodnoty boli nastavené.', + 'Default values' => 'Východzie hodnoty', + 'BOOL' => 'BOOL', + '%d byte(s)' => array('%d bajt', '%d bajty', '%d bajtov'), + 'Unable to upload a file.' => 'Súbor sa nepodarilo nahrať.', + 'File uploads are disabled.' => 'Nahrávánie súborov nie je povolené.', + 'No MySQL extension' => 'Žiadne MySQL rozšírenie', + 'None of supported PHP extensions (%s) are available.' => 'Nie je dostupné žiadne z podporovaných rozšírení (%s).', + 'Text length' => 'Dĺžka textov', + '%d row(s)' => array('%d riadok', '%d riadky', '%d riadkov'), + 'ON UPDATE CURRENT_TIMESTAMP' => 'Pri zmene aktuálny čas', + 'Are you sure?' => 'Naozaj?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => 'Príliš veľké POST dáta. Zmenšite dáta alebo zvýšte hodnotu konfiguračej direktívy "post_max_size".', + 'Functions' => 'Funkcie', + 'Aggregation' => 'Agregácia', + 'Export' => 'Export', + 'Save and continue edit' => 'Uložiť a pokračovať v úpravách', + 'original' => 'originál', + '%d item(s) have been affected.' => '%d položiek bolo ovplyvnených.', + 'whole result' => 'celý výsledok', + 'Clone' => 'Klonovať', + '%d row(s) has been imported.' => array('Bol importovaný %d záznam.', 'Boli importované %d záznamy.', 'Bolo importovaných %d záznamov.'), + 'CSV Import' => 'Import CSV', + 'Import' => 'Import', + 'Table structure' => 'Štruktúra tabuľky', + '(anywhere)' => '(kdekoľvek)', + 'Editor' => null, +); diff --git a/editor/lang/zh.inc.php b/editor/lang/zh.inc.php new file mode 100644 index 00000000..69e019be --- /dev/null +++ b/editor/lang/zh.inc.php @@ -0,0 +1,59 @@ + '登录', + 'Invalid credentials.' => '无效凭据。', + 'Server' => '服务器', + 'Save' => '保存', + 'SQL command' => 'SQL命令', + 'Logout' => '注销', + 'Use' => '使用', + 'No tables.' => '没有表。', + 'Item has been deleted.' => '已删除项目。', + 'Item has been updated.' => '已更新项目。', + 'Item has been inserted.' => '已插入项目。', + 'Edit' => '编辑', + 'Insert' => '插入', + 'Save and insert next' => '保存并插入下一个', + 'Delete' => '删除', + 'Database' => '数据库', + 'Language' => '语言', + 'Select' => '选择', + 'New item' => '新建项', + 'Search' => '搜索', + 'Sort' => '排序', + 'descending' => '降序', + 'Limit' => '限定', + 'No rows.' => '没有行。', + 'Action' => '动作', + 'edit' => '编辑', + 'Page' => '页面', + 'Unable to select the table' => '不能选择该表', + 'Invalid CSRF token. Send the form again.' => '无效 CSRF 令牌。重新发送表单。', + 'Default values has been set.' => '默认值已设置。', + 'Default values' => '默认值', + 'BOOL' => 'BOOL', + '%d byte(s)' => '%d 字节', + 'Unable to upload a file.' => '不能上传文件。', + 'File uploads are disabled.' => '文件上传被禁用。', + 'No MySQL extension' => '没有MySQL扩展', + 'None of supported PHP extensions (%s) are available.' => '没有支持的 PHP 扩展可用(%s)。', + 'Text length' => '文本长度', + '%d row(s)' => '%d 行', + 'ON UPDATE CURRENT_TIMESTAMP' => 'ON UPDATE CURRENT_TIMESTAMP', + 'Are you sure?' => '你确定吗?', + 'Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.' => '太大的 POST 数据。减少数据或者增加 “post_max_size” 配置命令。', + 'Export' => '导出', + 'Functions' => '函数', + 'Aggregation' => '集合', + 'Save and continue edit' => '保存并继续编辑', + 'original' => '原始', + '%d item(s) have been affected.' => '%d 个项目受到影响。', + 'whole result' => '所有结果', + 'Clone' => '克隆', + '%d row(s) has been imported.' => '%d 行已导入。', + 'Table structure' => '表结构', + '(anywhere)' => '(任意位置)', + 'CSV Import' => 'CSV 导入', + 'Import' => '导入', + 'Editor' => null, +); diff --git a/lang.php b/lang.php index ee10e203..b43c277d 100644 --- a/lang.php +++ b/lang.php @@ -1,25 +1,40 @@ 1) { +$project = "adminer"; +if (file_exists($_SERVER["argv"][1] . "/index.php")) { + $project = $_SERVER["argv"][1]; + array_shift($_SERVER["argv"]); +} +if (isset($_SERVER["argv"][1])) { $_COOKIE["adminer_lang"] = $_SERVER["argv"][1]; // Adminer functions read language from cookie include dirname(__FILE__) . "/adminer/include/lang.inc.php"; - if ($_SERVER["argc"] != 2 || !isset($langs[$_COOKIE["adminer_lang"]])) { - echo "Usage: php lang.php [lang]\nPurpose: Update adminer/lang/*.inc.php from source code messages.\n"; + if (isset($_SERVER["argv"][2]) || !isset($langs[$_COOKIE["adminer_lang"]])) { + echo "Usage: php lang.php [adminer] [lang]\nPurpose: Update adminer/lang/*.inc.php from source code messages.\n"; exit(1); } } +preg_match_all('~\\b(include|require) "([^"]*)";~', file_get_contents(dirname(__FILE__) . "/$project/index.php"), $matches); +$filenames = $matches[2]; +$filenames[] = "index.php"; + $messages_all = array(); -foreach (array_merge(glob(dirname(__FILE__) . "/adminer/*.php"), glob(dirname(__FILE__) . "/adminer/include/*.php")) as $filename) { - $file = file_get_contents($filename); - if (preg_match_all("~lang\\(('(?:[^\\\\']+|\\\\.)*')([),])~", $file, $matches)) { // lang() always uses apostrophes - $messages_all += array_combine($matches[1], $matches[2]); +foreach ($filenames as $filename) { + $filename = dirname(__FILE__) . "/$project/$filename"; + if (basename($filename) != '$LANG.inc.php') { + $file = file_get_contents($filename); + if (preg_match_all("~lang\\(('(?:[^\\\\']+|\\\\.)*')([),])~", $file, $matches)) { // lang() always uses apostrophes + $messages_all += array_combine($matches[1], $matches[2]); + } } } -foreach (glob(dirname(__FILE__) . "/adminer/lang/" . ($_COOKIE["adminer_lang"] ? $_COOKIE["adminer_lang"] : "*") . ".inc.php") as $filename) { +//! get translations of new Editor messages from Adminer + +foreach (glob(dirname(__FILE__) . "/$project/lang/" . ($_COOKIE["adminer_lang"] ? $_COOKIE["adminer_lang"] : "*") . ".inc.php") as $filename) { $messages = $messages_all; - preg_match_all("~^(\\s*)(?:// )?(('(?:[^\\\\']+|\\\\.)*') => .*[^,\n]),?~m", file_get_contents($filename), $matches, PREG_SET_ORDER); + $file = file_get_contents($filename); + preg_match_all("~^(\\s*)(?:// )?(('(?:[^\\\\']+|\\\\.)*') => .*[^,\n]),?~m", $file, $matches, PREG_SET_ORDER); $s = ""; foreach ($matches as $match) { if (isset($messages[$match[3]])) { @@ -39,6 +54,9 @@ foreach (glob(dirname(__FILE__) . "/adminer/lang/" . ($_COOKIE["adminer_lang"] ? $s .= "\t$idf => null,\n"; } } - fwrite(fopen($filename, "w"), "