Issue with translation
-
Ninja forms works as expected regarding managing people’s submissions, even if this is not so clear on its interface a mention about a “database”.
The other issue I have noticed today, I managed to translate all language terms but its javascript “word-and-character-counter.js” and “word-and-character-counter-min.js” are not getting the translated sentence for “character(s) left”. In other idioms, this might have more parentesis such as “caractere(s) restante(s)”
In minified js version, I had to tweek setMsg function to:
setMsg: function() { t.msg=n.msg/*from default array*/;
and set msg attribute in default array:
var defaults = { // {char || word} type: 'char', // count {up || down} from or to the goal number count: 'down', // count {to || from} this number goal: 140, // Show description of counter text: true, // Specify target for the counter target: false, // Append target, otherwise prepend append: true, // Provide translate text for counter message translation: '', // Custom counter message msg: 'caractere(s) restante(s)'//finally!
Maybe messaged supposed to be fired through javascript could be in plugins admin page: https://your-page/wp-admin/admin.php?page=ninja-forms-settings&tab=label_settings
- The topic ‘Issue with translation’ is closed to new replies.