Notice: Undefined offset: 0 in /home/templaza/public_html/plugins/system/tz_guard/tz_guard/browser_detection.php on line 361

Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /home/templaza/public_html/plugins/system/tz_guard/tz_guard/browser_detection.php on line 618
How to override language of fields in Joomla contact form - TemPlaza | Blog
TemPlaza

TemPlaza, the website built and improved by TemPlaza., JSC. We supply templates and other qualified applications on Joomla and WordPress.

Email: support@templaza.com

How to override language of fields in Joomla contact form

How-to-override-language-of-fields-in-Joomla-contact-form
When you're running a website, it's important to build a bridge which can connect you and your customers or audience. In particular, Contact form is an essential way to collect feedback, response, and even queries from visitors. By using the default component of Joomla, you now can easily make it come into picture. However, the thing that you're still confused is if there are any way to translate specific fields in Joomla contact form. Today, we'll show you how to do it by using the function "language(s) Overrides" in Joomla.

Follow these steps below: 
1. Log into your Joomla back-end, then go to Extensions > Languages > Overrides 

 2. Click on the button "New" to create a new override.

3. Using the Search tool to search for either a "Language Constant" or a "Value". A language string is composed of two parts: a specific language constant and its value. For example, in the string: COM_CONTACT_CONTACT_EMAIL_NAME_LABEL="Name" - COM_CONTACT_CONTACT_EMAIL_NAME_LABEL' is a constant and "Name" is a value.

4. To translate these labels in contact form: Name, Email, Subject, Message ..., you need to type them in Search box, in order to look for a relevant constant. After that, select a value or a constant appearing in the result list generated, and change your words in the textarea box on the left, then save.
Here below are language strings for Joomla contact form:

COM_CONTACT_CONTACT_EMAIL_NAME_LABEL > Name
COM_CONTACT_EMAIL_LABEL > Email
COM_CONTACT_CONTACT_MESSAGE_SUBJECT_LABEL > Subject
COM_CONTACT_CONTACT_ENTER_MESSAGE_LABEL > Message

​5. After having done all changes, go to your Contact page and check the results. Please note that, this is only an example for overriding fields in Joomla contact form. Beside that, you can easily do the same steps applied to other values and constants.

We hope this tutorial is helpful for you to not only override language of fields in Joomla contact form, but also language of other sections. Please leave a comment if you have any questions or feedback for us.

Web Design Trends in 2019
3 Simple Ways to Disable Gutenberg
 

Login