How to translate warning messages in JS files.
-
Hi. This plugin is awesome.
How to translate warning messages in JS files.(/js/input.js)if($options.data('width') && data['width'] < $options.data('width')){ warnings.push('Width should be at least: ' + $options.data('width') + 'px (Selected image width: ' + data['width'] + 'px)'); valid = false; } if($options.data('height') && data['height'] < $options.data('height')){ warnings.push('Height should be at least: ' + $options.data('height') + 'px (Selected image height: ' + data['height'] + 'px)'); valid = false; } if(!valid){ $field.addClass('invalid'); $field.find('.init-crop-button').attr('disabled', 'disabled'); alert('Warning: The selected image is smaller than the required size:\n' + warnings.join('\n')); }
Plese help. Thnak you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to translate warning messages in JS files.’ is closed to new replies.