skip to main content

Localization

Localization
About Localization
This chapter covers the following topics:
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
*
*
Here in this chapter we will use poedit to add a new language to op5 Monitor.
Downloading and starting the tools
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:
1
2
3
a
b
Adding a new language
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
2
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
6
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:
*
*
*
To change the basic language file settings
1
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
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.
 

Feedback on documentation Feedback on documentation