In op5 Monitor we have the possibility to show all texts in your own language. This so called localization is done with help from gettext, which is a part of the Linux translation project.
a In this example we will create add a new language (swedish). We will also use the Poedit tool and work with the files locally on our workstation and then copy the new language files to the op5 Monitor server.
2 Create a new folder inside the language folder with the short name of the language you like to create.
mkdir sv/
3 Copy the files from the en/ folder (english) to the new one and rename them to the same name as the folder like this:
cp en/en.mo sv/sv.mo
cp en/en.po sv/sv.po
4
5 Mark the line you like to add your translation to and type in the field at the bottom of the window.Now the last thing we shall do, before we upload the files to the server, is to change some of the basic settings in the language file.
2
3 Change the Team to what ever you want and the Language and Country to reflect the language you are creating. In this example:
Language: Swedish
Country: SWEDEN
4 Click OK.
1 Copy the new language folder (in this example sv/) and its content to the following folder on the op5 Monitor server:
/opt/monitor/op5/ninja/application/languages/
2 Open up your browser and change the settings so the new language will be the first one to use.
In FireFox this is done in:
Preferences -> Content -> Languages
3 Go to the op5 Monitor user interface login page. If you have translated all lines you will now see the login page in your new language.