This topic contains 1 reply and 2 voices, and was last updated by Nayem 5 years, 7 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
December 4, 2014 at 4:25 pm 31823
Nayem Hi, there are some strings nested in js files, which are not translatable. For example in upload.js there are included error alerts for wrong file type, file size, etc. beginning in line 108:
msg = 'The file you have uploaded exceeds the file size limit. Please try again.';
msg = 'You have uploaded an incorrect file type. Please try again.';
...
Could you please create a dynamic js file for these strings, i.e. 'lang.php':
var errors = {
  file_size: "<?php _e('The file you have uploaded exceeds the file size limit. Please try again.', 'wpuf'); ?>",
  file_type: "<?php _e('You have uploaded an incorrect file type. Please try again.', 'wpuf'); ?>"
};
Then you could alert the variables: msg = errors.file_size; msg = errors.file_type;
December 4, 2014 at 5:56 pm 31842
Nayem Nayem

Hello Torben,

Thank you for your suggestion. I have reported this to our developer team. Hope they will fix this in our next update.

Thank you 🙂

Viewing 1 Posts - 1 through 1 (of 1 total)