app/assets/javascripts/pageflow/ui/views/inputs/url_input_view.js in pageflow-0.6.0 vs app/assets/javascripts/pageflow/ui/views/inputs/url_input_view.js in pageflow-0.7.0
- old
+ new
@@ -82,22 +82,22 @@
var view = this;
var options = this.options;
var value = this.ui.input.val();
if (options.required && !value) {
- displayValidationError('Muss ausgefüllt werden.');
+ displayValidationError(I18n.t('pageflow.ui.views.inputs.url_input_view.required_field'));
}
else if (value && !isValidUrl(value)) {
- var errorMessage = 'URL muss mit http:// beginnen.';
+ var errorMessage = I18n.t('pageflow.ui.views.inputs.url_input_view.url_hint');
if (options.permitHttps) {
- errorMessage = 'URL muss mit http:// oder https:// beginnen.';
+ errorMessage = I18n.t('pageflow.ui.views.inputs.url_input_view.url_hint_https');
}
displayValidationError(errorMessage);
}
else if (value && !hasSupportedHost(value)) {
- displayValidationError('Es werden nur die folgenden Anbieter unterstützt:' +
+ displayValidationError(I18n.t('pageflow.ui.views.inputs.url_input_view.supported_vendors') +
_.map(view.supportedHosts(), function(url) {
return '<li>' + url +'</li>';
}).join(''));
}
else {
\ No newline at end of file