]> git.joonet.de Git - adminer.git/commitdiff
Other foreign key requirement
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 15 Jul 2009 14:50:57 +0000 (14:50 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 15 Jul 2009 14:50:57 +0000 (14:50 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@835 7c3ca157-0c34-0410-bff1-cbf682f78f5c

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

index 6062df43b759a42459f480416c9a7e9322b97c66..0e64f481980a1cb54f6e09d141b3d6bcd6b27006 100644 (file)
@@ -15,7 +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";
+               $error = lang('Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exists.') . "<br>$error";
        }
 }
 page_header(lang('Foreign key'), $error, array("table" => $_GET["foreign"]), $_GET["foreign"]);
index b689023a208af215c35095c4fa88b35fb0723156..60a6cf810eac24c10a14c60fa702194c24386f9c 100644 (file)
@@ -215,7 +215,7 @@ $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.',
+       'Source and target columns must have the same data type, there must be an index on the target columns and referenced data must exists.' => '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.',
        'E-mail' => 'E-mail',
        'From' => 'Odesílatel',
        'Subject' => 'Předmět',