Locate the Localization File:
The file is located at: oxide/data/ServerPanelPopUps/Localization.json
File Structure:
The file is structured as an object named Localization Settings containing a section called UI Elements. Each key in this section corresponds to the Name field from the "Content Elements" config section. For example, PopUp.ServerCommands.Description is the identifier for that element.
Setting Up Localization:
Inside each UI element, there is a Messages object where translations for each language are defined. For each language (e.g., "fr" for French or "en" for English), an array of strings is provided under the key Text. These strings will be displayed in the popup.
Example:
{
"Localization Settings": {
"UI Elements": {
"PopUp.ServerCommands.Description": {
"Messages": {
"fr": {
"Text": [
"<color=#CF432D>/info</color> - ouvrir ce menu",
"<color=#CF432D>/trade player_name</color> - échange sécurisé avec d'autres joueurs",
"<color=#CF432D>/online</color> - afficher le nombre de joueurs en ligne"
]
},
"en": {
"Text": [
"<color=#CF432D>/info</color> - open this menu",
"<color=#CF432D>/trade player_name</color> - safe trading",
"<color=#CF432D>/online</color> - show online players count"
]
}
}
}
}
}
}