root/trunk/qt4-gui/po/README.LOCALE

Revision 5763, 2.2 kB (checked in by eugene, 13 months ago)

Updated translators' doc.

  • Property svn:eol-style set to native
Line 
1Licq Qt4-GUI Translation Support
2
3Creating a New Translation File
4===============================
5
6If there is no .ts file for your language, you will need to create
7a template first. It could be done by running "make template" in the build
8directory. Which creates template.ts file in the po directory.
9Then rename it in accordance to the language you are going to translate into
10(e.g. ru.ts for Russian) and open it with Qt4 Linguist to start translating.
11
12Edit po/CMakeLists.txt and add ru.ts to the po_SRCS list.
13
14
15Updating a Translation File
16===========================
17
18Text strings are updated with each new Licq release, thus it is necessary
19to update the .ts files. This is done simply by running "make merge" in the
20build directory. The updated .ts file can now be edited and any necessary
21translations be added or updated.
22
23After several updates you will notice obsolete translations in the .ts file.
24In order to properly remove them you can run "make clean-merge".
25(This is advised to do after translation is done, not before.)
26
27
28Installing a Translation File
29=============================
30
31Once the .ts file has been created and translated, it must be converted into
32a .qm file. This is done simply by doing "make". Once you have the .qm file,
33it must be installed with "make install".
34
35
36Using a Translation File
37========================
38
39Set the environment variable LC_MESSAGES to the desired language code
40(as per GNU gettext standard) and it will be loaded next time the Licq
41is started.
42
43
44Notes
45=====
46
47Help on using Qt4 Linguist can be found on Trolltech documentation homepage:
48http://doc.trolltech.com/4.3/linguist-manual.html
49
50
51Executive Summary
52=================
53
54Note that we call the Linguist linguist-qt4 here. The name might also be
55just linguist on your installation. Notably Debian calls it the former
56way.
57
58First translation:
59
60licq$ mkdir build
61licq$ cd build
62build$ cmake ..
63build$ make template
64build$ cd ../po
65po$ mv template.ts ru.ts
66
67Updating the translation:
68
69licq$ cd build
70build$ make merge
71build$ cd ../po
72po$ linguist-qt4 ru.ts
73po$ cd ../build
74build$ make clean-merge
75
76Installing the translation:
77
78licq$ cd build
79build$ make install
80
81Using the translation:
82
83$ LC_MESSAGES="ru" licq
Note: See TracBrowser for help on using the browser.