laminas / laminas-i18n-resources

Provides validator and captcha translations for laminas-i18n's Translator
https://docs.laminas.dev/laminas-i18n-resources/
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

Wrong keys for validator messages in multiple languages #4

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

Some files in resources still has value variable in keys and values. But there's no value variable in validator. I just updated for Turkish but AR, FI, HR, NO, PL, SE, SR. ZH, ZH_TW affacted. I could updated them too but there's still %value% variable in values.

keys in Zend_Validate file are;

File '%value%' has a false mimetype of '%type%' The mimetype of file '%value%' could not be detected File '%value%' is not readable or does not exist

MimeType validator's keys are;

File has an incorrect mimetype of '%type%' The mimetype could not be detected from the file File is not readable or does not exist


Originally posted by @Zebercet at https://github.com/zendframework/zend-i18n-resources/issues/36

froschdesign commented 4 years ago

We must check the message identifiers for conflicts / BC breaks with older versions of laminas-validator.

CreativeNative commented 2 years ago

Here is also a mistake in the german version.

// Laminas\Validator\EmailAddress German "'%hostname%' does not appear to have a valid MX record for the email address '%value%'" => "'%hostname%' scheint keinen gültigen MX Eintrag für die E-Mail-Adresse '%value%' zu haben",

English "'%hostname%' does not appear to have any valid MX or A records for the email address" => "'%hostname%' does not appear to have any valid MX or A records for the email address",