blob: 34b87279519729ca3eaa0d09d6dbef520dcd889e (
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
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
|
kturtle/scripts/
this directory of the source version KTurtle contains two scripts that will make translating of KTurtle to other langauges much easier.
When translating KTurtle more than just the usual 'documantation and strings' have to be translated, namely:
- the examples (which are *.logo files),
- the logokeyword.*.xml files, and
- the logohighlightstyle.*.xml files.
These files are called data files, and their English originals can be found in tdeedu/kturtle/data.
For more information on these files and their translation read:
tdeedu/kturtle/data/README.data
In this directory you find Rafael Beccar's nifty tranlaton perl scripts that can make translating KTurtle human resourcefriendly.
This is how these scripts work:
But only logokeywords.YOURLANGCODE.xml needs to be under current directory..
If everything is working fine the general process is something like:
1. MANUALLY TRANSLATE THE KEYWORD
Copy the logokeywords.en_US.xml file (from tdeedu/kturtle/data) to the kturtle directory in your branch of the tde-i18n module (for Dutch this would be: tde-i18n/nl/data/tdeedu/kturtle). Translate the file, and change the name to:
logokeywords.YOURLANGCODE.xml
2. AUTOMAGICALLY GENERATE THE HIGHLIGHTSTYLE FOR YOUR LANGUAGE
- Copy logokeywords.YOURLANGCODE.xml to tdeedu/kturtle/scripts
- change directory to tdeedu/kturtle/sripts, and run:
./i18n_highlighting.pl logokeywords.YOURLANGCODE.xml
- Now you have a translated logohighlightstyle.YOURLANGCODE.xml under current directory (tdeedu/kturtle/scripts)
3. AUTOMAGICALLY GENERATE NEARLY FINISHED TRANSLATIONS OF THE EXAMPLES
- change directory to tdeedu/kturtle/scripts, and run:
./i18n_examples.pl logokeywords.YOURLANGCODE.xml
- the translated examples can then be found in current directory. Some manual adjusments are
needed, namely: the sings in the code and the comments
4. LAST BUT NOT LEAST!!! CHECK IF EVERYTHING WORKS
- move all the generated files to the kturtle directory in your branch of the tde-i18n module
- check if it installs correctly
- check if the fresh logo examples in your language run when KTurtle is set to your language (see the Settings)
Please report BUGs when it doesnt work (bugs.trinitydesktop.org)!
Thanks for the efford, we love you!
|