xref: /aoo41x/main/l10ntools/layout/README (revision cdf0e10c)
1*cdf0e10cSrcweirTralay - Extract and translate strings in Layout xml files.
2*cdf0e10cSrcweir
3*cdf0e10cSrcweirTranslatable strings in layout xml files are attributes that have name
4*cdf0e10cSrcweirwhich starts with an underscore, eg
5*cdf0e10cSrcweir
6*cdf0e10cSrcweir    _title="Set Zoom"
7*cdf0e10cSrcweir    _label="Whole Page"
8*cdf0e10cSrcweir
9*cdf0e10cSrcweirHere is how it works
10*cdf0e10cSrcweir
11*cdf0e10cSrcweir * Extract: generate out.sdf
12*cdf0e10cSrcweir      ../unxlngx6.pro/bin/tralay -l en-US zoom.xml > out.sdf
13*cdf0e10cSrcweir
14*cdf0e10cSrcweir * Translate: do:
15*cdf0e10cSrcweir      cat out.sdf > trans.sdf
16*cdf0e10cSrcweir      sed 's/en-US\t/de\tde:/' out.sdf >> trans.sdf
17*cdf0e10cSrcweir
18*cdf0e10cSrcweir * Merge: translate
19*cdf0e10cSrcweir     ../unxlngx6.pro/bin/tralay -m trans.sdf -l de zoom.xml > zoom-DE.xml
20*cdf0e10cSrcweir
21*cdf0e10cSrcweirRunning
22*cdf0e10cSrcweir
23*cdf0e10cSrcweir   dmake test
24*cdf0e10cSrcweir
25*cdf0e10cSrcweirdoes something similar.
26*cdf0e10cSrcweir
27*cdf0e10cSrcweir