]> git.joonet.de Git - adminer.git/commitdiff
Optional year in date
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 24 Sep 2009 08:58:39 +0000 (08:58 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 24 Sep 2009 08:58:39 +0000 (08:58 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1137 7c3ca157-0c34-0410-bff1-cbf682f78f5c

13 files changed:
adminer/lang/cs.inc.php
adminer/lang/de.inc.php
adminer/lang/es.inc.php
adminer/lang/et.inc.php
adminer/lang/fr.inc.php
adminer/lang/it.inc.php
adminer/lang/nl.inc.php
adminer/lang/ru.inc.php
adminer/lang/sk.inc.php
adminer/lang/zh-tw.inc.php
adminer/lang/zh.inc.php
changes.txt
editor/include/adminer.inc.php

index fce0cb5654e908add224167772eddbb4dfd1398f..6760815b8298a907ca71999b86220b6acd1f6ce4 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        '(anywhere)' => '(kdekoliv)',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$6.$4.$1',
-       'yyyy-mm-dd' => 'd.m.yyyy',
+       '[yyyy]-mm-dd' => 'd.m.[rrrr]',
        '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.',
index 3504bdc60ecfbf69bd46fb8502a3b947a272aae9..2ea0578256591bff756f1ebeee378a081ce03526 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        'Select table' => 'Tabelle auswählen',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$6.$4.$1',
-       'yyyy-mm-dd' => 'd.m.yyyy',
+       '[yyyy]-mm-dd' => 't.m.[jjjj]',
        '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.',
index 6e83356ebddf4795ae28d9df206ca912e604cc07..ec83bcd6b722ea97058ce0a8f3c562e245c7cdb4 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        'Select table' => 'Seleccionar tabla',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$5/$3/$1',
-       'yyyy-mm-dd' => 'dd/mm/yyyy',
+       '[yyyy]-mm-dd' => 'dd/mm/[aaaa]',
        '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.',
index 81cb0f6052d923bc0316f074a56a60be123d1679..00e7e0977ccf6e68ee77986131221ceb130efc5a 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        'Select table' => 'Vali tabel',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$6.$4.$1',
-       'yyyy-mm-dd' => 'd.m.yyyy',
+       '[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.',
index 73cdcb5413ed4b33c9ea3240821e04d6da0c9d16..a5c68460090740b37ac4772c402c282f63c2e96e 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        'Select table' => 'Selectionner la table',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$5/$3/$1',
-       'yyyy-mm-dd' => 'dd/mm/yyyy',
+       '[yyyy]-mm-dd' => 'jj/mm/[aaaa]',
        '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.',
index 05b1d548d5602b7b59bdfec6cda18b1ab3772e89..2788f3cb23ada973c3523a7201a0c4a05cade054 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        'Select table' => 'Scegli tabella',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$5/$3/$1',
-       'yyyy-mm-dd' => 'dd/mm/yyyy',
+       '[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.',
index aa1d31a90c869cb251b2d047c778dcc61cedc41c..8ae51a2117d867cbacf373d07bb2d5ad6f6832d9 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        'Select table' => 'Selecteer tabel',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$5-$3-$1',
-       'yyyy-mm-dd' => 'dd-mm-yyyy',
+       '[yyyy]-mm-dd' => 'dd-mm-[jjjj]',
        '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.',
index 14f9078517a348b6967f73b225b02495037263dd..3f794bd52996f304854c9735d40b6610c2b0a3e6 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        '(anywhere)' => '(в любом месте)',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$5.$3.$1',
-       'yyyy-mm-dd' => 'dd.mm.yyyy',
+       '[yyyy]-mm-dd' => 'дд.мм.[гггг]',
        '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.' => 'Колонки должны иметь одинаковые типы данных, в результирующей колонке должен быть индекс, данные для импорта должны существовать.',
index 8533dd23dec80ad51e5e33e82f436f44bfc72272..4b7ba2d054b6ce0c38de3e5d50554070954c3c43 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        '(anywhere)' => '(kdekoľvek)',
        '%.3f s' => '%.3f s',
        '$1-$3-$5' => '$6.$4.$1',
-       'yyyy-mm-dd' => 'd.m.yyyy',
+       '[yyyy]-mm-dd' => 'd.m.[rrrr]',
        '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ť.',
index 69e8dc6d819879d162d6f47ae4c3c5e51bbd876a..c00584cb71280ce0131def39a3ca100b92c4a9ce 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        'Select table' => '選擇資料表',
        '%.3f s' => '%.3f秒',
        '$1-$3-$5' => '$1.$3.$5',
-       'yyyy-mm-dd' => 'dd.mm.yyyy',
+       '[yyyy]-mm-dd' => '[yyyy].mm.dd',
        '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.' => '源列和目標列必須具有相同的數據類型,在目標列上必須有一個索引並且引用的數據必須存在。',
index 4a35ccdb87c2badde9ff8efb5d301b9dc07b6685..b9eb03a227aa192b61310a6181221d3fa6bc3dab 100644 (file)
@@ -204,7 +204,7 @@ $translations = array(
        'Select table' => '选择表',
        '%.3f s' => '%.3f 秒',
        '$1-$3-$5' => '$1.$3.$5',
-       'yyyy-mm-dd' => 'dd.mm.yyyy',
+       '[yyyy]-mm-dd' => '[yyyy].mm.dd',
        '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.' => '源列和目标列必须具有相同的数据类型,在目标列上必须有一个索引并且引用的数据必须存在。',
index ee1dbca811a8bc2c65b0afeb8dbf949afa563a24..1bffc86d47dc0e033a22b79af99add843cad2b6e 100644 (file)
@@ -4,6 +4,7 @@ Fix removed default in ALTER
 Display whitespace in texts (bug #2858042)
 Display number of manipulated rows in JS confirm
 E-mail attachments (Editor)
+Optional year in date (Editor)
 Move <h1> to $adminer->navigation (customization)
 Rename get_dbh to connection (customization)
 
index 97fc74da16b5ba8b0916e28f1b476824234deda9..7f38923d1a64bb8561b7df9910630cf33461dce7 100644 (file)
@@ -377,7 +377,7 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5
                        return '<input type="checkbox" value="' . h($value ? $value : 1) . '"' . ($value ? ' checked' : '') . "$attrs>";
                }
                if (ereg('date|timestamp', $field["type"])) {
-                       return "<input value='" . h($value) . "'$attrs> (" . lang('yyyy-mm-dd') . ")"; //! maxlength
+                       return "<input value='" . h($value) . "'$attrs> (" . lang('[yyyy]-mm-dd') . ")"; //! maxlength
                }
                return '';
        }
@@ -387,8 +387,8 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5
                if ($function == "now") {
                        return "$function()";
                }
-               $return = $connection->quote(ereg('date|timestamp', $field["type"]) && preg_match('(^' . str_replace('\\$1', '(?P<p1>[0-9]+)', preg_replace('~(\\\\\\$([2-6]))~', '(?P<p\\2>[0-9]{1,2})', preg_quote(lang('$1-$3-$5')))) . '(.*))', $value, $match)
-                       ? ($match["p1"] ? $match["p1"] : ($match["p2"] < 70 ? 20 : 19) . $match["p2"]) . "-$match[p3]$match[p4]-$match[p5]$match[p6]" . end($match)
+               $return = $connection->quote(ereg('date|timestamp', $field["type"]) && preg_match('(^' . str_replace('\\$1', '(?P<p1>[0-9]*)', preg_replace('~(\\\\\\$([2-6]))~', '(?P<p\\2>[0-9]{1,2})', preg_quote(lang('$1-$3-$5')))) . '(.*))', $value, $match)
+                       ? (strlen($match["p1"]) ? $match["p1"] : (strlen($match["p2"]) ? ($match["p2"] < 70 ? 20 : 19) . $match["p2"] : gmdate("Y"))) . "-$match[p3]$match[p4]-$match[p5]$match[p6]" . end($match)
                        : $value
                );
                if (!ereg('varchar|text', $field["type"]) && $field["full_type"] != "tinyint(1)" && !strlen($value)) {