git.p6c8.net
/
jirafeau.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[BUGFIX] Fix non-translated email content
[jirafeau.git]
/
lib
/
functions.js.php
diff --git
a/lib/functions.js.php
b/lib/functions.js.php
index 5455d78c975451960cd5483776756f75537093d9..84475516bfe724c1100bc2dfa9262509fef1684f 100644
(file)
--- a/
lib/functions.js.php
+++ b/
lib/functions.js.php
@@
-145,11
+145,11
@@
function show_link (reference, delete_code, crypt_key, date)
// Email link
var filename = document.getElementById('file_select').files[0].name;
// 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 += 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);
}
document.getElementById('upload_link_email').href = "mailto:?body=" + b + "&subject=" + encodeURIComponent(filename);
}
@@
-641,14
+641,7
@@
function upload_time_estimation_speed_string()
function milliseconds_to_time_string (milliseconds)
{
function numberEnding (number) {
function milliseconds_to_time_string (milliseconds)
{
function numberEnding (number) {
- var currentLanguage = '<?php echo $cfg['lang']; ?>';
-
- if(currentLanguage == 'de') {
- return (number > 1) ? 'n' : '';
- }
- else {
- return (number > 1) ? 's' : '';
- }
+ return (number > 1) ? translate ('PLURAL_ENDING') : '';
}
var temp = Math.floor(milliseconds / 1000);
}
var temp = Math.floor(milliseconds / 1000);
patrick-canterino.de