1. istvan
  2. CMC - Mailchimp for Joomla!
  3. Tuesday, 13 May 2014
  4.  Subscribe via email
Hello,
how can to translate the error messages?
this,
Error: This field is required.
Error: Please enter a valid email address. For example "fred@domain.com".

I checked the language files and I did not find?
Can you help me?



Regards,
Attachments (1)
Responses (4)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
We currently use the mootools library there. So the translation of this should be already on the page?

What language are you using?
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. CMC - Mailchimp for Joomla!
  3. # 1
Accepted Answer Pending Moderation
I use the Romanian language .

Romanian language is installed for joomla, but the form cmc does not display properly.
What to do?
Thank you,
  1. more than a month ago
  2. CMC - Mailchimp for Joomla!
  3. # 2
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Okay, yep it seemst that there is no romanian translation.

if you loook into mootools-more-uncompressed.js in media/system/js on line 4286 you have this:
http://mootools.net/docs/more/Locale/Form.Validator


Locale.define('en-US', 'FormValidator', {

required: 'This field is required.',
length: 'Please enter {length} characters (you entered {elLength} characters)',
minLength: 'Please enter at least {minLength} characters (you entered {length} characters).',
maxLength: 'Please enter no more than {maxLength} characters (you entered {length} characters).',
integer: 'Please enter an integer in this field. Numbers with decimals (e.g. 1.25) are not permitted.',
numeric: 'Please enter only numeric values in this field (i.e. "1" or "1.1" or "-1" or "-1.1").',
digits: 'Please use numbers and punctuation only in this field (for example, a phone number with dashes or dots is permitted).',
alpha: 'Please use only letters (a-z) within this field. No spaces or other characters are allowed.',
alphanum: 'Please use only letters (a-z) or numbers (0-9) in this field. No spaces or other characters are allowed.',
dateSuchAs: 'Please enter a valid date such as {date}',
dateInFormatMDY: 'Please enter a valid date such as MM/DD/YYYY (i.e. "12/31/1999")',
email: 'Please enter a valid email address. For example "fred@domain.com".',
url: 'Please enter a valid URL such as http://www.example.com.',
currencyDollar: 'Please enter a valid $ amount. For example $100.00 .',
oneRequired: 'Please enter something for at least one of these inputs.',
errorPrefix: 'Error: ',
warningPrefix: 'Warning: ',

// Form.Validator.Extras
noSpace: 'There can be no spaces in this input.',
reqChkByNode: 'No items are selected.',
requiredChk: 'This field is required.',
reqChkByName: 'Please select a {label}.',
match: 'This field needs to match the {matchName} field',
startDate: 'the start date',
endDate: 'the end date',
currendDate: 'the current date',
afterDate: 'The date should be the same or after {label}.',
beforeDate: 'The date should be the same or before {label}.',
startMonth: 'Please select a start month',
sameMonth: 'These two dates must be in the same month - you must change one or the other.',
creditcard: 'The credit card number entered is invalid. Please check the number and try again. {length} digits entered.'

});


You'll need to translate this into romanian. Basically copy the text and change it to:

Locale.define('ro-Ro', 'FormValidator', {

required: 'Your translation goes here.',
length: 'Please enter {length} characters (you entered {elLength} characters)',
minLength: 'Please enter at least {minLength} characters (you entered {length} characters).',
maxLength: 'Please enter no more than {maxLength} characters (you entered {length} characters).',
integer: 'Please enter an integer in this field. Numbers with decimals (e.g. 1.25) are not permitted.',
numeric: 'Please enter only numeric values in this field (i.e. "1" or "1.1" or "-1" or "-1.1").',
digits: 'Please use numbers and punctuation only in this field (for example, a phone number with dashes or dots is permitted).',
alpha: 'Please use only letters (a-z) within this field. No spaces or other characters are allowed.',
alphanum: 'Please use only letters (a-z) or numbers (0-9) in this field. No spaces or other characters are allowed.',
dateSuchAs: 'Please enter a valid date such as {date}',
dateInFormatMDY: 'Please enter a valid date such as MM/DD/YYYY (i.e. "12/31/1999")',
email: 'Please enter a valid email address. For example "fred@domain.com".',
url: 'Please enter a valid URL such as http://www.example.com.',
currencyDollar: 'Please enter a valid $ amount. For example $100.00 .',
oneRequired: 'Please enter something for at least one of these inputs.',
errorPrefix: 'Error: ',
warningPrefix: 'Warning: ',

// Form.Validator.Extras
noSpace: 'There can be no spaces in this input.',
reqChkByNode: 'No items are selected.',
requiredChk: 'This field is required.',
reqChkByName: 'Please select a {label}.',
match: 'This field needs to match the {matchName} field',
startDate: 'the start date',
endDate: 'the end date',
currendDate: 'the current date',
afterDate: 'The date should be the same or after {label}.',
beforeDate: 'The date should be the same or before {label}.',
startMonth: 'Please select a start month',
sameMonth: 'These two dates must be in the same month - you must change one or the other.',
creditcard: 'The credit card number entered is invalid. Please check the number and try again. {length} digits entered.'

});


You should not that this file is only read when debug mode is on. When debug mode is off then mootools-more.js is loaded.
So my advise would be to create a new file. locale.ro-ro.js and load it on the page with the cmc form. This way you will be independent of the moootools-more files and a joomla update won't override your changes.

Regards,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. CMC - Mailchimp for Joomla!
  3. # 3
Accepted Answer Pending Moderation
Hello,
I have joomla in romanian language. I made in that file modifications but nothing happens. It still in english on error in cmc mailchimp module. Can you help me?

Thanks
  1. more than a month ago
  2. CMC - Mailchimp for Joomla!
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Complete Uninstall to Work in J4??
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
7 Replies
Posted on Tuesday, 30 April 2024
Info about CMigrator for Joomla
Hi i need to import a few thousand articles from a site made in wordprres to a ...
0 Replies
Posted on Tuesday, 07 May 2024
  • New
    • #CMigator
    Error on android phone
    Why its working good on Computer and if i try it with smartphones the map dosent...
    0 Replies
    Posted on Tuesday, 07 May 2024
  • New
  • Bug with front-end submission and table not having
    Hi, i think i found a problem. When trying to edit a hotspot from front-end ...
    3 Replies
    Posted on Wednesday, 15 March 2023
    Question regarding custom fields
    How do I access custom fields after I have created them?...
    1 Replies
    Posted on Wednesday, 24 April 2024
    • #custom fields