]> git.joonet.de Git - adminer.git/commitdiff
Explain the error
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 19 Jun 2009 19:00:32 +0000 (19:00 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 19 Jun 2009 19:00:32 +0000 (19:00 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@727 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/foreign.inc.php
adminer/lang/cs.inc.php

index 7d15c64eb63051a68aaf306a94855c15af14646b..28cfc26b6444d7630df82e60a872d2ca17e7668d 100644 (file)
@@ -15,6 +15,7 @@ if ($_POST && !$error && !$_POST["add"] && !$_POST["change"] && !$_POST["change-
                        . (in_array($_POST["on_delete"], $on_actions) ? " ON DELETE $_POST[on_delete]" : "")
                        . (in_array($_POST["on_update"], $on_actions) ? " ON UPDATE $_POST[on_update]" : "")
                , $SELF . "table=" . urlencode($_GET["foreign"]), (strlen($_GET["name"]) ? lang('Foreign key has been altered.') : lang('Foreign key has been created.')));
+               $error = lang('Source and target columns must have the same data type and there must be an index on the target columns.') . "<br />$error";
        }
 }
 page_header(lang('Foreign key'), $error, array("table" => $_GET["foreign"]), $_GET["foreign"]);
index 88607e28b3d213bf5a4f4b5dcda31e2374c872f8..deab40416b813bf2c1af836018d9e2fa1932f9f4 100644 (file)
@@ -215,4 +215,5 @@ $translations = array(
        '%.3f s' => '%.3f s',
        'History' => 'Historie',
        'Variables' => 'Proměnné',
+       'Source and target columns must have the same data type and there must be an index on the target columns.' => 'Zdrojové a cílové sloupce musí mít stejný datový typ a nad cílovými sloupci musí být definován index.',
 );