TIPS - Languages translation strings usable in custom fields

Languages translation strings usable in custom fields

How to use custom fields in a multilingual context

Or how to translate some parts of your custom fields.

You can use translation strings in custom fields in some cases (incomplete list):

-The custom field label
-The description
-The text of the values in a list, checkboxes or radio buttons.
 
For example:
Radio button: I agree
Label: LIB_EXAMPLE_CUSTOM_FIELD_I_AGREE_LBL
Description: LIB_EXAMPLE_CUSTOM_FIELD_I_AGREE_DESC
Text of value Yes: JYES
Text of value No: JNO
 
The translation strings JYES and JNO already exists in Joomla! core.
The two translation strings above must be replaced with your own translation. You can use the language override feautre of Joomla! to create such translation strings. They are stored in the database in the table #__overrider and also written in the overrides folder corresponding in frontend and backend of your site to JPATH_BASE/language/overrides
 
Here is a new tasty trick just for you Super Joomlers!

Alexandre ELISÉ

Développeur #PHP spécialiste #Joomla! Si mon travail vous a plu n'hésitez pas à laisser votre avis sur Google Reviews. Si mes articles vous ont été utiles vous pouvez me le dire avec Paypal.me ça m'encourage à continuer et me permet de savoir que vous apprecier le contenu. Sinon vous pouvez toujours m'envoyer un email pour me faire part de vos suggestions.

Get the newsletter

Super Joomlers! Get the most out of Joomla!
We hate spam as much as you do and we will not send you email without your prior consent. You can unsubscribe / resubscribe any time you want.