]> git.p6c8.net - jirafeau_project.git/commitdiff
[BUGFIX] Fix non-translated email content
authorJerome Jutteau <j.jutteau@gmail.com>
Sat, 17 Feb 2018 00:06:09 +0000 (01:06 +0100)
committerJerome Jutteau <mojo@couak.net>
Thu, 3 May 2018 17:55:37 +0000 (19:55 +0200)
closes #152

Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
lib/functions.js.php

index 983736f12a9eb14665ab7c1b92bf02161071bc7f..84475516bfe724c1100bc2dfa9262509fef1684f 100644 (file)
@@ -145,11 +145,11 @@ function show_link (reference, delete_code, crypt_key, date)
 
     // Email link
     var filename = document.getElementById('file_select').files[0].name;
-    var b = encodeURIComponent("Download file \"" + filename + "\":") + "%0D";
+    var b = encodeURIComponent("<?php echo t("DL"); ?> \"" + filename + "\":") + "%0D";
     b += encodeURIComponent(web_root + download_link_href) + "%0D";
     if (false == isEmpty(date))
     {
-        b += "%0D" + encodeURIComponent("This file will be available until " + date.format('YYYY-MM-DD hh:mm (GMT O)')) + "%0D";
+        b += "%0D" + encodeURIComponent("<?php echo t("VALID_UNTIL"); ?>: " + date.format('YYYY-MM-DD hh:mm (GMT O)')) + "%0D";
         document.getElementById('upload_link_email').href = "mailto:?body=" + b + "&subject=" + encodeURIComponent(filename);
     }
 

patrick-canterino.de