From eb9342c83d8c1a72e7c361cd4101e795f5394fa0 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 24 May 2014 20:06:27 +0000 Subject: [PATCH] Add the translation for Duplicate Detected on the destination edit. --- app/destinations/app_languages.php | 7 ++++++- app/destinations/destination_edit.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/destinations/app_languages.php b/app/destinations/app_languages.php index 748c4efa39..e7f761862a 100644 --- a/app/destinations/app_languages.php +++ b/app/destinations/app_languages.php @@ -197,4 +197,9 @@ $text['message-required']['pt-pt'] = "Por favor forneça: "; $text['message-required']['fr-fr'] = "Merci d'indiquer: "; -?> + $text['message-duplicate']['en-us'] = "Duplicate detected"; + $text['message-duplicate']['es-cl'] = "Duplicar detectado"; + $text['message-duplicate']['pt-pt'] = "Duplicar detectado"; + $text['message-duplicate']['fr-fr'] = "Dupliquer détecté"; + +?> \ No newline at end of file diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index fc6f9467a6..feba7bdb53 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -86,7 +86,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $prep_statement->execute(); $row = $prep_statement->fetch(PDO::FETCH_ASSOC); if ($row['num_rows'] > 0) { - $msg .= "Duplicate detected.
\n"; + $msg .= $text['message-duplicate']."
\n"; } }