author | cniehaus <cniehaus> | 2002-12-14 21:47:29 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-14 21:47:29 (UTC) |
commit | 6574d52bb94f6479ff2a3411e0f0cea9786b554c (patch) (unidiff) | |
tree | f0b70fbb3b02524befc7c3c9132fcd3f37a0a828 | |
parent | 48475749a81e1794071ee0b0178c6d37a623da76 (diff) | |
download | opie-6574d52bb94f6479ff2a3411e0f0cea9786b554c.zip opie-6574d52bb94f6479ff2a3411e0f0cea9786b554c.tar.gz opie-6574d52bb94f6479ff2a3411e0f0cea9786b554c.tar.bz2 |
:%s/::$/:/
-rw-r--r-- | docs/usermanual/i18n.sgm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/usermanual/i18n.sgm b/docs/usermanual/i18n.sgm index d55ebd0..faa0b03 100644 --- a/docs/usermanual/i18n.sgm +++ b/docs/usermanual/i18n.sgm | |||
@@ -76,123 +76,123 @@ | |||
76 | of "this is a demonstation !". | 76 | of "this is a demonstation !". |
77 | </para> | 77 | </para> |
78 | </listitem> | 78 | </listitem> |
79 | </itemizedlist> | 79 | </itemizedlist> |
80 | </section> | 80 | </section> |
81 | 81 | ||
82 | <section> | 82 | <section> |
83 | <title>Examplecode</title> | 83 | <title>Examplecode</title> |
84 | 84 | ||
85 | <para> | 85 | <para> |
86 | In the next paragraph you see an example of what the XML looks like. | 86 | In the next paragraph you see an example of what the XML looks like. |
87 | </para> | 87 | </para> |
88 | <literallayout> | 88 | <literallayout> |
89 | <message> | 89 | <message> |
90 | <source>New</source> | 90 | <source>New</source> |
91 | <translation>Neu</translation> | 91 | <translation>Neu</translation> |
92 | </message> | 92 | </message> |
93 | <message> | 93 | <message> |
94 | <source>Today</source> | 94 | <source>Today</source> |
95 | <translation>Heute</translation> | 95 | <translation>Heute</translation> |
96 | </message> | 96 | </message> |
97 | <message> | 97 | <message> |
98 | <source>Day</source> | 98 | <source>Day</source> |
99 | <translation type="unfinished"></translation> | 99 | <translation type="unfinished"></translation> |
100 | </message> | 100 | </message> |
101 | </literallayout> | 101 | </literallayout> |
102 | 102 | ||
103 | <para> | 103 | <para> |
104 | As you can see the markup is very simple. The part between two source-tags is | 104 | As you can see the markup is very simple. The part between two source-tags is |
105 | the english text which appears if there is no translation yet. In the first | 105 | the english text which appears if there is no translation yet. In the first |
106 | case this is <quote>New</quote>. The next row is where the translated string | 106 | case this is <quote>New</quote>. The next row is where the translated string |
107 | would be. The first two messages are already translated, the third is | 107 | would be. The first two messages are already translated, the third is |
108 | not. This is marked by the | 108 | not. This is marked by the |
109 | 109 | ||
110 | <programlisting>type="unfinished"</programlisting> | 110 | <programlisting>type="unfinished"</programlisting> |
111 | 111 | ||
112 | </para> | 112 | </para> |
113 | <para> | 113 | <para> |
114 | If you choose to use an editor like VIM instead of the prefered tool | 114 | If you choose to use an editor like VIM instead of the prefered tool |
115 | -Linguist- you have to remove that mark and add the translated string | 115 | -Linguist- you have to remove that mark and add the translated string |
116 | between the two translation-tags. | 116 | between the two translation-tags. |
117 | </para> | 117 | </para> |
118 | <para> | 118 | <para> |
119 | It might happen that you see <emphasis>type="obsolete"</emphasis> in a | 119 | It might happen that you see <emphasis>type="obsolete"</emphasis> in a |
120 | .ts-file. You should not translate these stings as they do no longer appear in the | 120 | .ts-file. You should not translate these stings as they do no longer appear in the |
121 | application. The translationcoordinator removes those strings from time to time. In | 121 | application. The translationcoordinator removes those strings from time to time. In |
122 | Linguist those strings are grey and not translatable. | 122 | Linguist those strings are grey and not translatable. |
123 | </para> | 123 | </para> |
124 | </section> | 124 | </section> |
125 | 125 | ||
126 | <section> | 126 | <section> |
127 | <title>Filetypes</title> | 127 | <title>Filetypes</title> |
128 | <para> | 128 | <para> |
129 | As a translator one needs to know three different filetypes. | 129 | As a translator one needs to know three different filetypes. |
130 | 130 | ||
131 | <filename class='extension'>ts</filename> | 131 | <filename class='extension'>ts</filename> |
132 | .ts-files are the most important files for translators. In these files are all strings which | 132 | .ts-files are the most important files for translators. In these files are all strings which |
133 | need to be translated and the translations themselfs. All .ts-files are located in | 133 | need to be translated and the translations themselfs. All .ts-files are located in |
134 | <filename class='directory'>OPIEDIR/i18n/xx</filename> while xx is a languagecode (eg. de or de). | 134 | <filename class='directory'>OPIEDIR/i18n/xx</filename> while xx is a languagecode (eg. de or de). |
135 | In theory .ts-files are the only ones a translator needs to know. | 135 | In theory .ts-files are the only ones a translator needs to know. |
136 | 136 | ||
137 | <filename class='extension'>pro</filename> | 137 | <filename class='extension'>pro</filename> |
138 | Every application has a .pro-file from which the Makefiles are generated. As a translator | 138 | Every application has a .pro-file from which the Makefiles are generated. As a translator |
139 | you need to check if in every .pro-file is a line for the language you want to translate to. | 139 | you need to check if in every .pro-file is a line for the language you want to translate to. |
140 | This line should look like:: | 140 | This line should look like: |
141 | 141 | ||
142 | <programlisting> | 142 | <programlisting> |
143 | ../../../i18n/de/today.ts \ | 143 | ../../../i18n/de/today.ts \ |
144 | </programlisting> | 144 | </programlisting> |
145 | 145 | ||
146 | Usually the translationcoordinator takes care of these entries so you should not | 146 | Usually the translationcoordinator takes care of these entries so you should not |
147 | need to edit them. | 147 | need to edit them. |
148 | 148 | ||
149 | <filename class='extension'>qm</filename> | 149 | <filename class='extension'>qm</filename> |
150 | These are binary files used by &opie; to display the translated strings. They are | 150 | These are binary files used by &opie; to display the translated strings. They are |
151 | automatically generated by calling the command <command>make lrelease</command>. Of course, | 151 | automatically generated by calling the command <command>make lrelease</command>. Of course, |
152 | you need to have the binary of <application>lrelease</application> which comes with &qt;. | 152 | you need to have the binary of <application>lrelease</application> which comes with &qt;. |
153 | </para> | 153 | </para> |
154 | </section> | 154 | </section> |
155 | 155 | ||
156 | <section> | 156 | <section> |
157 | <title>Do's and don'ts</title> | 157 | <title>Do's and don'ts</title> |
158 | <para> | 158 | <para> |
159 | There are certain things that should only be done be the | 159 | There are certain things that should only be done be the |
160 | translationcoordinator or one of the core developers. | 160 | translationcoordinator or one of the core developers. |
161 | <itemizedlist mark='opencircle'> | 161 | <itemizedlist mark='opencircle'> |
162 | <listitem> | 162 | <listitem> |
163 | <para> | 163 | <para> |
164 | The translationfiles should never be updated by the translators. Only the | 164 | The translationfiles should never be updated by the translators. Only the |
165 | translationcoordinator updates the repository. This is to avoid merging conflicts. | 165 | translationcoordinator updates the repository. This is to avoid merging conflicts. |
166 | </para> | 166 | </para> |
167 | </listitem> | 167 | </listitem> |
168 | <listitem> | 168 | <listitem> |
169 | <para> | 169 | <para> |
170 | The binary .qm-files are created by either the translationcoordinator or by the feed-manager. | 170 | The binary .qm-files are created by either the translationcoordinator or by the feed-manager. |
171 | Of course, the translators can create them as described above for testing purposes but | 171 | Of course, the translators can create them as described above for testing purposes but |
172 | the official files will be provided. | 172 | the official files will be provided. |
173 | </para> | 173 | </para> |
174 | </listitem> | 174 | </listitem> |
175 | <listitem> | 175 | <listitem> |
176 | <para> | 176 | <para> |
177 | Whenever you find a typo or an incorrect message, contact the author of the application | 177 | Whenever you find a typo or an incorrect message, contact the author of the application |
178 | and/or use our bug tracking system (Mantis) to make sure this string will be fixed. | 178 | and/or use our bug tracking system (Mantis) to make sure this string will be fixed. |
179 | </para> | 179 | </para> |
180 | </listitem> | 180 | </listitem> |
181 | <listitem> | 181 | <listitem> |
182 | <para> | 182 | <para> |
183 | If you find a string like "Form1" contact the translation coordinator. These strings | 183 | If you find a string like "Form1" contact the translation coordinator. These strings |
184 | should not be in the translationfiles. You don't need to translate them. | 184 | should not be in the translationfiles. You don't need to translate them. |
185 | </para> | 185 | </para> |
186 | </listitem> | 186 | </listitem> |
187 | <listitem> | 187 | <listitem> |
188 | <para> | 188 | <para> |
189 | If you check you translation and see an un-translated string even though your translationfile | 189 | If you check you translation and see an un-translated string even though your translationfile |
190 | is 100% translated use the bug tracking system and/or contact the author of that application | 190 | is 100% translated use the bug tracking system and/or contact the author of that application |
191 | directly so that this bug is fixed. | 191 | directly so that this bug is fixed. |
192 | </para> | 192 | </para> |
193 | </listitem> | 193 | </listitem> |
194 | </itemizedlist> | 194 | </itemizedlist> |
195 | </para> | 195 | </para> |
196 | </section> | 196 | </section> |
197 | 197 | ||
198 | </chapter> | 198 | </chapter> |