From 8073cfa641e0a2f645e81b62de98bf26bc8948d7 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 18 Aug 2009 09:36:32 +0000 Subject: [PATCH] Date format hint git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@977 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/lang/cs.inc.php | 1 + adminer/lang/de.inc.php | 1 + adminer/lang/es.inc.php | 1 + adminer/lang/et.inc.php | 1 + adminer/lang/fr.inc.php | 1 + adminer/lang/it.inc.php | 1 + adminer/lang/nl.inc.php | 1 + adminer/lang/ru.inc.php | 1 + adminer/lang/sk.inc.php | 1 + adminer/lang/zh.inc.php | 1 + changes.txt | 3 +++ editor/include/adminer.inc.php | 3 +++ 12 files changed, 16 insertions(+) diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php index 8859c474..15fc7bee 100644 --- a/adminer/lang/cs.inc.php +++ b/adminer/lang/cs.inc.php @@ -212,6 +212,7 @@ $translations = array( '(anywhere)' => '(kdekoliv)', '%.3f s' => '%.3f s', '$1-$3-$5' => '$6.$4.$1', + 'yyyy-mm-dd' => 'd.m.yyyy', 'History' => 'Historie', 'Variables' => 'Proměnné', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Zdrojové a cílové sloupce musí mít stejný datový typ, nad cílovými sloupci musí být definován index a odkazovaná data musí existovat.', diff --git a/adminer/lang/de.inc.php b/adminer/lang/de.inc.php index 534469fe..83bc2a06 100644 --- a/adminer/lang/de.inc.php +++ b/adminer/lang/de.inc.php @@ -212,6 +212,7 @@ $translations = array( 'Select table' => 'Tabelle auswählen', '%.3f s' => '%.3f s', '$1-$3-$5' => '$6.$4.$1', + 'yyyy-mm-dd' => 'd.m.yyyy', 'History' => 'History', 'Variables' => 'Variablen', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Spalten des Ursprungs und des Zieles müssen vom gleichen Datentyp sein, es muss unter den Zielspalten ein Index existieren und die referenzierten Daten müssen existieren.', diff --git a/adminer/lang/es.inc.php b/adminer/lang/es.inc.php index da5e59c4..ea5aa861 100644 --- a/adminer/lang/es.inc.php +++ b/adminer/lang/es.inc.php @@ -212,6 +212,7 @@ $translations = array( 'Select table' => 'Seleccionar tabla', '%.3f s' => '%.3f s', '$1-$3-$5' => '$5/$3/$1', + 'yyyy-mm-dd' => 'dd/mm/yyyy', 'History' => 'History', 'Variables' => 'Variables', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Las columnas de origen y destino deben ser del mismo tipo, debe existir un índice entre las columnas del destino y el registro referenciado debe existir.', diff --git a/adminer/lang/et.inc.php b/adminer/lang/et.inc.php index d47f0f97..c66429e6 100644 --- a/adminer/lang/et.inc.php +++ b/adminer/lang/et.inc.php @@ -212,6 +212,7 @@ $translations = array( 'Select table' => 'Vali tabel', '%.3f s' => '%.3f s', '$1-$3-$5' => '$6.$4.$1', + 'yyyy-mm-dd' => 'd.m.yyyy', 'History' => 'Ajalugu', 'Variables' => 'Muutujad', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Lähte- ja sihtveerud peavad eksisteerima ja omama sama andmetüüpi, sihtveergudel peab olema määratud indeks ning viidatud andmed peavad eksisteerima.', diff --git a/adminer/lang/fr.inc.php b/adminer/lang/fr.inc.php index eb143ec7..269d0719 100644 --- a/adminer/lang/fr.inc.php +++ b/adminer/lang/fr.inc.php @@ -212,6 +212,7 @@ $translations = array( 'Select table' => 'Selectionner la table', '%.3f s' => '%.3f s', '$1-$3-$5' => '$5/$3/$1', + 'yyyy-mm-dd' => 'dd/mm/yyyy', 'History' => 'Historique', 'Variables' => 'Variables', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Les colonnes selectionnées et les colonnes de destination doivent être du même type, il doit y avoir un index sur les colonnes de destination et les données de référence doivent exister.', diff --git a/adminer/lang/it.inc.php b/adminer/lang/it.inc.php index 3cede656..ca124a3c 100644 --- a/adminer/lang/it.inc.php +++ b/adminer/lang/it.inc.php @@ -212,6 +212,7 @@ $translations = array( 'Select table' => 'Scegli tabella', '%.3f s' => '%.3f s', '$1-$3-$5' => '$5/$3/$1', + 'yyyy-mm-dd' => 'dd/mm/yyyy', 'History' => 'Storico', 'Variables' => 'Variabili', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Le colonne sorgente e destinazione devono essere dello stesso tipo e ci deve essere un indice sulla colonna di destinazione e sui dati referenziati.', diff --git a/adminer/lang/nl.inc.php b/adminer/lang/nl.inc.php index 4ffb8751..24a7e172 100644 --- a/adminer/lang/nl.inc.php +++ b/adminer/lang/nl.inc.php @@ -212,6 +212,7 @@ $translations = array( 'Select table' => 'Selecteer tabel', '%.3f s' => '%.3f s', '$1-$3-$5' => '$5-$3-$1', + 'yyyy-mm-dd' => 'dd-mm-yyyy', 'History' => 'Geschiedenis', 'Variables' => 'Variabelen', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Bron- en doelkolommen moeten van hetzelfde data type zijn, er moet een index bestaan op de gekozen kolommen en er moet gerelateerde data bestaan.', diff --git a/adminer/lang/ru.inc.php b/adminer/lang/ru.inc.php index 631ff7a2..b2ee8329 100644 --- a/adminer/lang/ru.inc.php +++ b/adminer/lang/ru.inc.php @@ -212,6 +212,7 @@ $translations = array( '(anywhere)' => '(в любом месте)', '%.3f s' => '%.3f s', '$1-$3-$5' => '$5.$3.$1', + 'yyyy-mm-dd' => 'dd.mm.yyyy', 'History' => 'История', 'Variables' => 'Переменные', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Колонки должны иметь одинаковые типы данных, в результирующей колонке должен быть индекс, данные для импорта должны существовать.', diff --git a/adminer/lang/sk.inc.php b/adminer/lang/sk.inc.php index 7429b667..953e298f 100644 --- a/adminer/lang/sk.inc.php +++ b/adminer/lang/sk.inc.php @@ -212,6 +212,7 @@ $translations = array( '(anywhere)' => '(kdekoľvek)', '%.3f s' => '%.3f s', '$1-$3-$5' => '$6.$4.$1', + 'yyyy-mm-dd' => 'd.m.yyyy', 'History' => 'História', 'Variables' => 'Premenné', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => 'Zdrojové a cieľové stĺpce musia mať rovnaký datový typ, nad cieľovými stĺpcami musí byť definovaný index a odkazované dáta musia existovať.', diff --git a/adminer/lang/zh.inc.php b/adminer/lang/zh.inc.php index e16b9639..63c24f25 100644 --- a/adminer/lang/zh.inc.php +++ b/adminer/lang/zh.inc.php @@ -212,6 +212,7 @@ $translations = array( 'Select table' => '选择表', '%.3f s' => '%.3f 秒', '$1-$3-$5' => '$1.$3.$5', + 'yyyy-mm-dd' => 'dd.mm.yyyy', 'History' => '历史', 'Variables' => '变量', 'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exist.' => '源列和目标列必须具有相同的数据类型,在目标列上必须有一个索引并且引用的数据必须存在。', diff --git a/changes.txt b/changes.txt index 44b022b8..dd0a8eef 100644 --- a/changes.txt +++ b/changes.txt @@ -1,3 +1,6 @@ +Adminer 2.0.1: +Fix Editor date format + Adminer 2.0.0 (released 2009-08-06): Editor: User friendly data editor Customization: Adminer class diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index a8493c22..a960a928 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -315,6 +315,9 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5 if ($field["full_type"] == "tinyint(1)") { // bool return '"; } + if (ereg('date|timestamp', $field["type"])) { + return " (" . lang('yyyy-mm-dd') . ")"; //! maxlength + } return ''; }