File: TRANSLATIONS

package info (click to toggle)
reportbug-ng 1.27
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 976 kB
  • sloc: python: 907; makefile: 124
file content (60 lines) | stat: -rw-r--r-- 1,648 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
General Info:
=============

Reportbug-NG uses QT's translation mechanism. The basic workflow is:
1. Generate/Update .ts files from the sources
2. Modify the .ts files (=> translate)
3. Generate .qm files from the .ts files

Step 1. is done by the programmer who modifies the code, not by the 
        translator
Step 2. is done by the translator
Step 3. is done automatically during the build process


Gettext to QT transition:
=========================

I moved the existing gettext tranlations (.po files) to QT's system. 
Unfortunately all translations where marked as "obsolete", so they are not
used. They live still in the .ts files though, so one can reuse them when 
working on the translation.


1. Generating a new .ts file:
=============================

Goto src/translations and do 

  make template

this will generate a template named xx_XX.ts. Rename this file according to
the translation you wish to create and edit this file with linguist or an
editor.


2. Updating existing Translations:
==================================

Just use linguist or an editor and modify the existing translation.


3. Refreshing the .ts files after changes in the source:
========================================================

This step is usually done by me (the guy who modifies the sources) and not
needed by translators:

Call

  make upgrade

this will look in the source files for modifikations and modifies the existing
.ts files. If strings where added in the source, the entries are added in the
.ts file, if strings where removed, they are marked as obsolete in the .ts.



-- Bastian Venthur <venthur at debian org>
    2009-10-25