Introduction
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.
There are many different ways to work with the gettext files. You can use
•the cli commands from the gettext installation
•a program like poedit.
Here in this chapter we will use poedit to add a new language to op5 Monitor.
The first thing we need to do is to download the tools. In this case just only the Poedit
To download and starting the tools:
2 Download and install the version needed for you OS.
3 Start poEdit and follow the instructions.
a Click
OK
b Fill in your name and email address and click
OK.

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.
To add a new language
1 Copy the language folder to your workstation.
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 Start up Poedit, click
Open and locate your new .po file.

5 Mark the line you like to add your translation to and type in the field at the bottom of the window.

6 Save the file when done.
Changing basic language file settings
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.
The things we are going to change is:
•Team
•Language
•Country
To change the basic language file settings
1 Open up the language file (sv.po, in this example) in Poedit.
2 In the main menu click Catalog -> Settings...
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.
Applying the new language to the server
Now the last thing we need to do is to send up the new language to the server.
To apply the new language to the server
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.