automation
6 months ago
deactivationPoll
2 years ago
emails
3 months ago
form
5 days ago
newsletter
2 months ago
segments
5 days ago
subscribers
1 month ago
subscription
3 months ago
upgrade
1 year ago
woocommerce
1 year ago
analytics.html
2 years ago
automation.html
2 years ago
blank.html
2 years ago
experimental-features.html
4 years ago
forms.html
2 months ago
help.html
3 months ago
homepage.html
2 months ago
index.php
3 years ago
landingpage.html
2 years ago
layout.html
3 months ago
logs.html
1 month ago
mss_pitch_translations.html
3 years ago
newsletters.html
2 months ago
parsley-translations.html
1 week ago
premium_key_validation_strings.html
3 years ago
settings.html
2 years ago
settings_translations.html
1 week ago
upgrade_tiers.html
1 year ago
welcome_wizard.html
1 year ago
woo_system_info.html
3 years ago
woocommerce_setup.html
1 year ago
parsley-translations.html
35 lines
| 1 | |
| 2 | <# |
| 3 | Each message is emitted with json_encode(), which supplies its own quotes and escapes |
| 4 | anything that would otherwise end the JavaScript string. Interpolating a translation |
| 5 | straight into '...' breaks on the first apostrophe: the script then fails to parse and |
| 6 | every message here is silently lost, so Parsley falls back to its built-in English. |
| 7 | Most languages need an apostrophe somewhere, so this has to stay json_encode(). |
| 8 | #> |
| 9 | Parsley.addMessages('mailpoet', { |
| 10 | defaultMessage: <%= json_encode(__("This value seems to be invalid.")) %>, |
| 11 | type: { |
| 12 | email: <%= json_encode(__("This value should be a valid email.")) %>, |
| 13 | url: <%= json_encode(__("This value should be a valid url.")) %>, |
| 14 | number: <%= json_encode(__("This value should be a valid number.")) %>, |
| 15 | integer: <%= json_encode(__("This value should be a valid integer.")) %>, |
| 16 | digits: <%= json_encode(__("This value should be digits.")) %>, |
| 17 | alphanum: <%= json_encode(__("This value should be alphanumeric.")) %> |
| 18 | }, |
| 19 | notblank: <%= json_encode(__("This value should not be blank.")) %>, |
| 20 | required: <%= json_encode(__("This value is required.")) %>, |
| 21 | pattern: <%= json_encode(__("This value seems to be invalid.")) %>, |
| 22 | min: <%= json_encode(__("This value should be greater than or equal to %s.")) %>, |
| 23 | max: <%= json_encode(__("This value should be lower than or equal to %s.")) %>, |
| 24 | range: <%= json_encode(__("This value should be between %s and %s.")) %>, |
| 25 | minlength: <%= json_encode(__("This value is too short. It should have %s characters or more.")) %>, |
| 26 | maxlength: <%= json_encode(__("This value is too long. It should have %s characters or fewer.")) %>, |
| 27 | length: <%= json_encode(__("This value length is invalid. It should be between %s and %s characters long.")) %>, |
| 28 | mincheck: <%= json_encode(__("You must select at least %s choices.")) %>, |
| 29 | maxcheck: <%= json_encode(__("You must select %s choices or fewer.")) %>, |
| 30 | check: <%= json_encode(__("You must select between %s and %s choices.")) %>, |
| 31 | equalto: <%= json_encode(__("This value should be the same.")) %> |
| 32 | }); |
| 33 | |
| 34 | Parsley.setLocale('mailpoet'); |
| 35 |