Debian Codegraph @

translations/README

raw
1 This directory contains translation files for the MCU 8051 IDE.
2
3 == What is this directory good for ==
4
5 Each file is named after the locale. The locale is specified by a locale string.
6 The locale string consists of a language code, an optional country code, and an
7 optional system-specific code, each separated by `_'. The country and language
8 codes are specified in standards ISO-639 and ISO-3166. For example, the locale
9 `en' specifies English and `en_US' specifies U.S. English.
10
11 Please see file template.txt for more details. Also note that a complete
12 translation comprise also translation of this file: "../data/tips.xml",
13 documentation translation is also possible.
14
15
16 == Note to the Tip of the day ==
17
18 Some people wonder why the Tip of the day stops working when they start using
19 their translation, well, the cause of this is that the tips are stored file
20 named tips.xml, the file is located in the "data" directory located in that
21 directory where you have installed the IDE, on Linux it's usually
22 "/usr/share/mcu8051ide/data", on Windows it's usually
23 "C:\Program Files\MCU 8051 IDE\data". The problem is that the tips won't work
24 until they are all translated, or rewritten, however there is a simple solution,
25 just copy all the tips in English and change "<tip lang="en">" to
26 "<tip lang="my_language">". This solution apparently doesn't do anything else
27 than making the tips in English appear as they have been already translated, so
28 you get the Tip of the day working again but with English tips in it.
29
30
31 == The translation manipulation tool ==
32
33 You should see file named tool.tcl in this directory, it's a tool which might
34 help with maintenance of the translation files. Since the template.txt might get
35 updated every now and then, we need to keep the translation files updated as
36 well, the tool.tcl was written in order to make that a lot easier, here are the
37 instructions how to use it:
38 - (This applies to Windows users only.) Make sure you can run Tcl scripts, you
39 might need to install some Tcl distribution, e.g. ActiveTcl.
40 - Go to this directory.
41 - Run "./tool.tcl -m my_translation_file.msg".
42 - Wait a moment, and it's done. :)