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.
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 Main Menu > Application Settings > Localization.
3. Open the language you want to modify.
You can also create a new language for your local dialect.
4. If the phrase is not in the list, click the + Key button in the top right corner of the Localization Editor.
5. In Add key, enter the following details:
- Under Key, enter the variable value as displayed in the Asset 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, always select VehicleTracker.
6. Click Save.
7. Click Reload UI at the bottom of the Localization Editor.
After the reload, you should be able to see now the value translated from True to simply ON.