summaryrefslogtreecommitdiff
path: root/l10ntools/layout/README
blob: 1838e2a94ba0d4b47ac2b69f5bc1494c3e4bc034 (plain)
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
Tralay - Extract and translate strings in Layout xml files.

Translatable strings in layout xml files are attributes that have name
which starts with an underscore, eg

    _title="Set Zoom"
    _label="Whole Page"

Here is how it works

 * Extract: generate out.sdf
      ../unxlngx6.pro/bin/tralay -l en-US zoom.xml > out.sdf

 * Translate: do:
      cat out.sdf > trans.sdf
      sed 's/en-US\t/de\tde:/' out.sdf >> trans.sdf 

 * Merge: translate
     ../unxlngx6.pro/bin/tralay -m trans.sdf -l de zoom.xml > zoom-DE.xml

Running

   dmake test

does something similar.