Elxis CMS Forum
Support => General => Topic started by: xmanhattan on May 24, 2016, 19:09:22
-
Hello all,
I just noticed that the message area in Greek Μήνυμα* displays the alternate text "This is a required field" in English rather than Greek.
How can I correct this?
Also, I am using a custom select element and also noticed that the alternate text displays "Χώρα".
Can the alternate text be set to the label or option titles?
-
Elxis uses a combination of javascript and HTML5 form validation. The message you get about empty required fields when submitting a form is by your browser, not by Elxis. Elxis only focuses the field.
The title text in custom select element is wrong, sorry about that. I fixed it in Elxis.
Here is how to fix it:
Open this file: components/com_content/plugins/contact/contact.plugin.php
Go to line 370
Change this:
$out .= '<select name="field'.$i.'" id="'.$pfx.'field'.$i.'" title="'.$eLang->get('COUNTRY').'" class="selectbox" dir="'.$dir.'">'."\n";
to this:
$out .= '<select name="field'.$i.'" id="'.$pfx.'field'.$i.'" title="'.$cfg[$idx].'" class="selectbox" dir="'.$dir.'">'."\n";
-
Thanks datahell