Skip to main content
Translating Category Labels
Bryan Nye avatar
Written by Bryan Nye
Updated over a year ago

If you have a multilingual setup, and want to provide language translations for your Category names, you do not have to create new categories for each language.

Follow the steps in this tutorial to properly format and translate your Category labels.

When rendering your category labels, MetaLocator will look for a "language constant" following this format:

LOCATOR_CATEGORY_SAFENAME

Where "SAFENAME" is the category name with special characters and spaces removed.  So, if your category is "Dealers & Retailers", the language constant should be

LOCATOR_CATEGORY_DEALERSRETAILERS

A list of categories and their constants can be found under the Language > Categories button. These can be copied and paste into the Bulk Editor in the language files.

Provide a translation in the language file for that language constant under Languages in the MetaLocator dashboard.  Additional language constants can be added at the bottom of the list of existing language constants as shown below.

To translate Category Group names, enter constants as follows:

LOCATOR_TAG_GROUP_SAFENAME

If you are using tag option groups {tagoptgroup} in your searchform, groups can be translated with

LOCATOR_CATEGORY_OPTGROUP_COMPUTERS

Be sure to read our Language Tutorial which covers the basics of managing multiple languages within MetaLocator.

 

 

Did this answer your question?