How to translate custom fields values
If you want to translate custom fields values in DJ-Classifieds, follow this few simple steps. We will make an example of translation to show how the process looks like.
Go to DJ-Classifieds and open "Options", find "Custom fields values as language constants" option and set it as "Yes".
![](/templates/yootheme/cache/53/translatecustom1-53021852.png)
Now open the "Fields" in DJ-Classifieds control panel. Open the field where you want to translate the values. We've created the custom "Color" field.
![](/templates/yootheme/cache/27/translatecustom2-27fbb68c.png)
We've defined five colour values for this field.
![](/templates/yootheme/cache/72/translatecustom3-7236c12f.png)
They are also visible at the front page.
![](/templates/yootheme/cache/46/translatecustom4-460390e6.png)
Now you can translate them using Language Overrides. More information you can find here.
Let's make an example translation for COM_DJCLASSIFIEDS_YELLOW colour.
Go to System -> Language Overrides.
Click "New" and create a new override.
Set the language constant of the string you want to override and then enter the text you want to display instead of the original one. Click "Save & Close".
![](/templates/yootheme/cache/f6/translatecustom5-f6bcb911.png)
The result is visible at the list of overrides:
![](/templates/yootheme/cache/0c/translatecustom6-0c4d7778.png)
And on the front page:
![](/templates/yootheme/cache/ab/translatecustom7-abfc7660.png)
And at the ad details ("blue" colour was added for this ad):
![](/templates/yootheme/cache/35/translatecustom8-35b553ce.png)
We've used the English language for our translation, but there are more languages available. Each language needs to be installed first.
Installed language you can choose from Filter option.
![](/templates/yootheme/cache/d2/translatecustom9-d2f9c2af.png)
When creating a new override, you will see that the chosen language is automatically added to the "Language" option.
![](/templates/yootheme/cache/00/translatecustom10-00732608.png)
The result is visible here:
![](/templates/yootheme/cache/d6/translatecustom11-d663e85c.png)