Renaming or localizing boolean values

Boolean values are essential in software development, representing binary states like true/false and on/off. However, these raw values might not always be user-friendly or contextually appropriate. Localizing boolean values into more meaningful terms can enhance clarity and improve user experience.

Screenshot 2024-07-24 at 14.53.30.png

This guide will show you how to transform boolean variables into descriptive states tailored to various contexts and environments. We'll also cover translating these localized values into different languages, ensuring a seamless interface for users worldwide.

Note: this change is only for the GUI, it won't make changes on the original data.

Localize variable results

1. Enable the localization editor in your application.

2. Go to Admin > Localization

3. Select the language you want to apply the modification.

You can also create a new language for your local dialect. 

Screenshot 2024-07-24 at 11.10.17.png

4. If the phrase is not in the list, you can click the + Key button in the top right corner of the localization editor.

5. Enter the following details:

  • Under Key, enter the variable value as displayed on the Status panel, or on the Track Points panel.
  • Under Translation, enter the desired word you want to use for your variable (e.g. ON if you want to display that on the screen).
  • Under Module, use always VehicleTracker

Screenshot 2024-07-24 at 14.31.33.png

6. Click on the Save button.

7. Click on the Save & Reload button.

After reloading the browser, you should be able to see now the value translated from True to simply ON.

Screenshot 2024-07-24 at 14.43.16.png