OSDN Git Service

Pick Ref: Change [...] button in log dialog in a clickable ref name
[tortoisegit/TortoiseGitJp.git] / Languages / translations.txt
1 Translations\r
2 ------------\r
3 \r
4 TortoiseSVN is still in development so translations of all resources is\r
5 also a work 'in progress'.\r
6 \r
7 General\r
8 -------\r
9 The TortoiseSVN project uses gettext PO (portable object) files for its\r
10 translation. PO files are plain text, so you can even translate using a\r
11 normal text editor. The only thing you have to take care of is that the\r
12 editor can handle the UTF-8 charset. There is a wide range of tools out\r
13 there that can handle and manipulate PO files.\r
14 We recommend that you use poEdit (http://poedit.sourceforge.net) on Windows\r
15 or kbabel (http://i18n.kde.org/tools/kbabel/) on Linux.\r
16 \r
17 This description assumes that you use poEdit.\r
18 \r
19 Getting started\r
20 ---------------\r
21 If you want to implement a new language for TortoiseSVN do the following.\r
22 \r
23 1) Use TortoiseSVN (or any other SubVersion client) to check out:\r
24    http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/Languages/\r
25    (You will get more than one file)\r
26    or point your browser to:\r
27    http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/Languages/\r
28    right-click on Tortoise.pot and save this file to your local harddisk.\r
29    Tortoise.pot is the portable object template (hence .pot) for the\r
30    translation.\r
31 \r
32 2) Rename Tortoise.pot to Tortoise_xx.po, where xx is your two letter\r
33    ISO-639-1 language code. Look up your language code here:\r
34    http://www.loc.gov/standards/iso639-2/langcodes.html\r
35    If you want to translate into a language that has two different locales\r
36    and you *really* need the second locale, add the two letter ISO-3166\r
37    locale code. If you're not sure about your country code, look here:\r
38    http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html.\r
39    Please keep in mind that we would like to have as few translations as\r
40    possible that cover as many languages as possible. We would not be\r
41    very happy at having to maintain a (de_CH) Swiss German, (de_AT)\r
42    Austrian German and (de_DE) German German translation. :-)\r
43    But if it's necessary like in Chinese, sure go ahead. We are happy with\r
44    simplified (zh_CN) and traditional (zh_TW) Chinese.\r
45 \r
46 3) Now translate what you can using poEdit. If you are not sure with one\r
47    or the other translation, mark it as "fuzzy". You can enter a comment\r
48    in poEdit to give some information about your thoughts to other trans-\r
49    lators.\r
50    If you are not sure about the meaning of the original sentence ask on\r
51    the list.\r
52 \r
53 4) Add a header with '#' comments to the PO file using a normal text edi-\r
54    tor that explains which language you translated and the terminology\r
55    you used, like:\r
56    #\r
57    # German translations for TortoiseSVN\r
58    # This file is distributed under the same license as the subversion package.\r
59    #\r
60    # Translation dictionary:\r
61    #\r
62    # argument     parameter\r
63    # bogus        ungültig\r
64    # checkout     auschecken (denglisch, ich weiß, aber akzeptabel)\r
65    # client       Client, des Client\r
66    # commit       übertragen\r
67    # item         Objekt\r
68    # label        Marke / Markierung\r
69 \r
70 5) Make sure your file is saved in UTF-8 encoding and that it does *not*\r
71    begin with UTF-8 BOMs (Byte Order Marks)\r
72 \r
73 6) Send your Tortoise_xx.po to the mailing list (tortoisegit-dev@googlegroups.com\r
74 ).\r
75 \r
76 Adding to an existing translation\r
77 ---------------------------------\r
78 1) Get hold of Tortoise.pot and the Tortoise_xx.po you want to improve\r
79 \r
80 2) Start poEdit with Tortoise_xx.po and select "Update from .pot file"\r
81    from the "Catalog" Menu\r
82 \r
83 3) Select Tortoise.pot and wait until poEdit has finished merging the\r
84    template and the current translation.\r
85 \r
86 4) The untranslated strings (and fuzzy translations) are always at the\r
87    top of the list.\r
88 \r
89 5) Translate what you can and send the resulting PO file back to the\r
90    mailing list (patches@tortoisesvn.tigris.org).\r
91 \r
92 Format your translation\r
93 --------------------------\r
94 Please format your translation before send Tortoise_xx.po to the\r
95 mailing list, or commit to the TortoiseSVN repository. You can do it\r
96 like this:\r
97     $ msgmerge --no-wrap -o Tortoise_xx.po.new Tortoise_xx.po Tortoise.pot\r
98     $ mv -f Tortoise_xx.po.new Tortoise_xx.po\r
99 \r
100 This can minimize the svn diff output, review your translation is easy.\r
101 \r
102 What now?\r
103 ---------\r
104 That's all you have to do. We'll take care of creating the resource dlls\r
105 and installers for the different language packs.\r
106 \r
107 Building your own dlls\r
108 ----------------------\r
109 If you want to test the translations you made yourself, before you release\r
110 them, you need four things:\r
111 \r
112 #The Below is tortoiseSVN document. \r
113 \r
114 - The "raw" resource dlls for your version of TortoiseSVN. Other dlls\r
115   won't work. Take a look at:\r
116   http://tortoisesvn.tigris.org/servlets/ProjectDocumentList?folderID=1847\r
117   and pick your language dlls e.g. Languages_1.0.8.zip for TortoiseSVN 1.0.8.\r
118 - The pot file for your version of TortoiseSVN e.g:\r
119   http://tortoisesvn.tigris.org/svn/tortoisesvn/tags/version_1.0.8/...\r
120 - Any po file for your language. Either pick one from tags or the latest\r
121   po file from trunk\r
122 - The ResText utility that is used to insert the data from the po file\r
123   into your resource dlls:\r
124   http://tortoisesvn.tigris.org/files/documents/406/14560/ResText.zip\r
125 \r
126 Once you finished your installation, you run:\r
127 \r
128 restext apply TortoiseProcLang.dll ..\bin\TortoiseProcNNNN.dll Tortoise_CC.po\r
129 restext apply TortoiseMergeLang.dll ..\bin\TortoiseMergeNNNN.dll Tortoise_CC.po\r
130 \r
131 where NNNN is your four digit country code (1031 for germany)\r
132 and CC is your 2 letter country code (de for germany)\r
133 \r
134 You can find the four digit country code at\r
135 http://www.microsoft.com/globaldev/reference/lcid-all.mspx\r
136 under the column LCID dec.\r
137 \r
138 After successfully creating your dlls, copy them into:\r
139 C:\Program Files\TortoiseSVN\Languages\r
140 Now you should be able to select your language from the combobox on the\r
141 TortoiseSVN main setting page.\r