![]() | How To Translate the syntax highlighting files |
Prev | Translator's Guide to KTurtle | Next |
The syntax highlighting files are located in kdeedu/kturtle/src/data/highlightstyles/. Each file is named logohighlightstyle.code.xml where code is the ISO code for your country (note that this must be a valid ISO code). Please note that the country code must be the same here than in the logokeywords file and for the example folder.
Copy the logohighlightstyle.en_US.xml file by renaming it to logohighlightstyle.code.xml where code is your country code ( the 2- or 4-letter ISO code)
In line 4 of the file, there is <language name="en_US">...: here you change “en_US” to your language's ISO code (2 or 4 letters).
Translate into your own language the content of the <item> tag (i.e. the information between <item> and </item>). This content must match the logokeyword file. For example translate “while” in: <item> while </item> and leave the spaces as they are (one at the beginning and one at the end). Please don't translate anything else.
Save your file as UTF-8 (in Kate, use Save As... and change to utf8 in the box on the right of the file name).
Commit your file (add your filename in the Makefile.am) or send it to Anne-Marie.
In case of any doubt, please contact Anne-Marie Mahfouf <annemarie.mahfouf@free.fr> for more information.
Prev | Home | Next |
Translator's Guide to KTurtle | Up | How To Translate the examples |