SDB:Configuring poedit

Jump to: navigation, search
Poedit is a simple and powerful multiplatform tool that can help you in translating applications. It is plain simple to use and works on any operating system such as Linux, "Mac OS X" and Windows. In this guide, you will learn how to install, configure and set it up for the translation of the openSUSE distribution.

Tested on openSUSE

Recommended articles

Icon-manual.png

Related articles

Icon-help.png


Poedit
Download for openSUSE

Vendor: Vaclav Slavik
Developer: Vaclav Slavik
License: MIT
Web: poedit.net


Install poedit on openSUSE

Poedit is part of openSUSE and its package is contained in the OSS repository. But you need at least version 1.3.9 which can handle the msgctxt tags in update-desktop-files.*.po. Otherwise it would break this po file. The latest poedit version for all older maintained SUSE distributions is available in Build Service devel:translation repository. Using the search engine would be the easiest way to find poedit for your release of openSUSE

To install it you can follow this procedure:

  • Check if you have the devel:translation repository in your package manager by typing the command in a terminal:
$ zypper sl

If the devel:translation is not listed, you can add it as follows:

  • Install poedit by typing:
# zypper in poedit

and accept the proposal made by the installer. Or you can simply use the 1-click install.


Obtain your openSUSE .po files

OpenSUSE .po files are stored in a SVN repository. You can simply obtain a copy of them using svn.

Considering the number of files you will download, it is better to create a directory structure similar to the one on the SVN repository. You can simply do this as follows:

  • Create a directory where you want to store you translation files, and open a terminal in it.
  • Create a directory called lcn in it:
$ md lcn
  • Create a directory called yast in it:
$ md yast
  • Enter the lcn directory:
$ cd lcn
From now on, the instructions to download translations refer to the Italian language. Just change the /it part of the URL with the one corresponding to the language you want to translate.
  • Download your lcn .po files using svn:
  • Enter the yast directory:
$ cd ../yast
  • Download your yast .po files:

Now you have a complete local copy of the .po files you want to translate on your hard disk.

Icon-warning.png
Warning: Keep in mind to synchronize your files often using svn update and to send the translated files to the coordinator of your translation team as soon as possible so that he can commit them to SVN.

Setting poedit up

The first time you start poedit, it will show the following message to inform you that you have to configure it because it is the first time you start it up:

Poedit1.jpg

Clicking on OK, the following dialog box is shown:

Poedit2.jpg

First of all, insert your full name and your e-mail address. These data will be added to each .po file you edit, so it is important they are correct.

Click then on the Editor tab, and activate the option underlined in the following picture:

Poedit3.jpg

Then click on the Translation memory tab, and click on the Add button:

Poedit4.jpg

A dialog box will appear, where you have to select your language and click OK:

Poedit5.jpg

No settings need to be changed in the Parsers tab, so accept with OK. The main window of poedit will appear: click on the New icon circled in red in the following picture:

Poedit6.jpg

This will open the Edit project dialog box, where you can specify the project name. Insert 'lcn' in that field.

Poedit7.jpg

You also have to insert the absolute path to the lcn .po files. Use the Browse button to find the directory containing them. Repeat the same procedure for the yast directory.

At the end of the procedure, you will see the main window of poedit, with the .po files listed in the right part of it.

Poedit8.jpg

You can open each .po file by simply clicking on its name in the window, and then proceed to translate it.


External links