Skip to main content
Translating Labels
Bryan Nye avatar
Written by Bryan Nye
Updated over 6 months ago

The MetaLocator search form allows complete control over the text displayed to the end user.  This control is facilitated by the Language feature found in the Control Panel.  To change the name of a standard control, take the following steps:

What are Language Constants?

Language constants are short all upper case variables without spaces or numbers and prefixed with "LOCATOR_". These are set by the system automatically for many fields, categories, and error messages. These can be found under the languages menu in the left side menu of MetaLocator.

They can also be added to field labels and languages to translate the entire interface.

Translating Constants:

  1. Click Language from the left Menu Bar

  2. Identify the language for which the field label will be changed.  This is often the default language, shown as English (en-GB)

  3. Click the desired language to load the Language Editor.  The Language Editor consists of a series of "Constants", paired with a corresponding "Value". The "Value" is the text seen by the end user, and the Constant is the internal symbol used to represent that language string.

  4. Find the Constant associated with the field label that needs to be updated.  To quickly find a field, use the browsers text-search function (CTRL+f) and search for the text needing the change.

  5. To create a new constant for a category or custom field, enter the name of the field in all upper case, without spaces or numbers and prefixed with "LOCATOR_".  For example, a custom field called "Lobby 1 Hours" would have a constant as follows: LOCATOR_LOBBYHOURS

  6. Provide a value for the desired constant and save the changes.

Important: If you edited the default language en-GB file, the system created a new override file for you.  You have to update your Interface settings to use this new language file.  Under Interfaces, choose your Interface, then under Language and Internationalization Settings, choose the new Language file.

 

 

Did this answer your question?