From d35becb7fe2e852c5600fe943f89d692b5de7d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Mon, 22 Jul 2013 21:35:21 +0200 Subject: [PATCH] Use localized string. re #53 --- getJSON.php | 3 ++- util.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/getJSON.php b/getJSON.php index 0bea849..32ab360 100644 --- a/getJSON.php +++ b/getJSON.php @@ -73,7 +73,8 @@ "languagesTitle" => localize("language.title"), "contentTitle" => localize("content.summary"), "sortorderAsc" => localize("search.sortorder.asc"), - "sortorderDesc" => localize("search.sortorder.desc")), + "sortorderDesc" => localize("search.sortorder.desc"), + "customizeEmail" => localize("customize.email")), "url" => array ( "detailUrl" => "index.php?page=13&id={0}&db={1}", "coverUrl" => "fetch.php?id={0}&db={1}", diff --git a/util.js b/util.js index f737751..4127e61 100644 --- a/util.js +++ b/util.js @@ -58,7 +58,7 @@ function retourMail(data, textStatus, jqXHR ) { function sendToMailAddress (component, dataid) { var email = $.cookie ('email'); if (!$.cookie ('email')) { - email = window.prompt ("Please enter your email : ", ""); + email = window.prompt (currentData.const.i18n.customizeEmail, ""); $.cookie ('email', email, { expires: 365 }); } var url = 'sendtomail.php';