From 5bf7a8093269e0621fd7c766cb24414ef92fdcca Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 15 Jan 2023 11:42:59 -0500 Subject: [PATCH] Fix quotes in api key dialog --- libretranslate/templates/app.js.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretranslate/templates/app.js.template b/libretranslate/templates/app.js.template index db436b4..ef82091 100644 --- a/libretranslate/templates/app.js.template +++ b/libretranslate/templates/app.js.template @@ -476,7 +476,7 @@ function getTextWidth(text) { function setApiKey(){ var prevKey = localStorage.getItem("api_key") || ""; var newKey = ""; - newKey = window.prompt({{ _e("Type in your API Key. If you need an API key, %(instructions)s", instructions=_e("press the \"Get API Key\" link.") if get_api_key_link else _e("contact the server operator.")) }}, prevKey); + newKey = window.prompt({{ _e("Type in your API Key. If you need an API key, %(instructions)s", instructions=_("press the \"Get API Key\" link.") if get_api_key_link else _("contact the server operator.")) }}, prevKey); if (newKey === null) newKey = ""; localStorage.setItem("api_key", newKey);