1 | Version 0.33 |
---|
2 | |
---|
3 | * Fix support for srcdir != builddir during make dist/distcheck |
---|
4 | -- bug #159846 (Rodney Dawes) |
---|
5 | * Ignore empty strings in XML files that are marked for translation |
---|
6 | -- bug #163689 (Miloslav Trmac) |
---|
7 | * Add support for AC_CONFIG_MACRO_DIR to intltoolize |
---|
8 | -- bug #160943 (James Henstridge) |
---|
9 | * Re-implement "echo -n" in perl for portability |
---|
10 | -- bug #162027 (Rodney Dawes) |
---|
11 | * Fix local mode |
---|
12 | -- bug #163981 (Jeremy Katz) |
---|
13 | * Fix nested XML tags translation when only attributes are marked for |
---|
14 | translation in a tag |
---|
15 | -- bug #159511 (Danilo Segan) |
---|
16 | * Use # as sed separator and prefix gettext variable names with INTLTOOL |
---|
17 | -- bug #156454 (Rodney Dawes) |
---|
18 | * Update serial and serial comparison check for IT_PROG_INTLTOOL to 2 |
---|
19 | (Rodney Dawes) |
---|
20 | * Support CDATA sections in XML files |
---|
21 | -- bug #157718 (Danilo Segan, Rodney Dawes) |
---|
22 | |
---|
23 | Version 0.32.1 |
---|
24 | |
---|
25 | * Deprecate --pass-through option, default to UTF-8 for anything |
---|
26 | except RFC822 files |
---|
27 | -- bug #145017 (Danilo Segan) |
---|
28 | * Add support for .icon files |
---|
29 | -- bug #157412 (Takao Fujiwara, Rodney Dawes) |
---|
30 | |
---|
31 | Version 0.32 |
---|
32 | |
---|
33 | * Check to avoid whining about {arch} and $PACKAGE-$VERSION dist directories |
---|
34 | when looking for files missing from POTFILES.in |
---|
35 | -- bug #157278 (Rodney Dawes) |
---|
36 | * Deprecate AC_PROG_INTLTOOL for IT_PROG_INTLTOOL |
---|
37 | -- bug #151508 (Rodney Dawes) |
---|
38 | * Add new INTLTOOL_XML_NOMERGE_RULE for translating XML files without |
---|
39 | merging the translations back into the output XML file |
---|
40 | -- bug #155842 (Rodney Dawes) |
---|
41 | * Fix new Makefile.in.in stuff to work with automake 1.4 |
---|
42 | -- bug #157298 (Rodney Dawes) |
---|
43 | * Update I18N-HOWTO for the changes to use our own Makefile.in.in |
---|
44 | -- bug #79598 (Rodney Dawes) |
---|
45 | * Allow use of either AM_GNU_GETTEXT or AM_GLIB_GNU_GETTEXT and use our |
---|
46 | own Makefile.in.in instead of trying to patch one |
---|
47 | -- bug #144715 (Rodney Dawes) |
---|
48 | * Handle all supported gettext escape sequences in PO files |
---|
49 | -- bug #48489 (Danilo Segan) |
---|
50 | * Fix Scheme string extraction, add support for translators' comments |
---|
51 | -- bug #137029 (Danilo Segan) |
---|
52 | * Fix translations of attributes of XML elements |
---|
53 | -- bug #155843 (Danilo Segan) |
---|
54 | * Support for translators' comments in Glade files |
---|
55 | -- bug #155294 (Danilo Segan) |
---|
56 | * Fix paths and quoting for intltool script variables in intltool.m4 |
---|
57 | -- bug #154717 (James Henstridge, Rodney Dawes) |
---|
58 | * Fix merging of xml:space="preserve" tags |
---|
59 | -- bug #151017 (Danilo Segan). |
---|
60 | * Look for Q_() keyword as well |
---|
61 | -- bug #154063 (Danilo Segan). |
---|
62 | |
---|
63 | Version 0.31.3 |
---|
64 | |
---|
65 | * Use absolute paths and allow env var overrides for gettext scripts |
---|
66 | -- bug #152020 (Rodney Dawes) |
---|
67 | * Allow shell-backticks (and other shell features) in variable names |
---|
68 | -- bug #152448 (Danilo Segan) |
---|
69 | * Fix typographical error in intltool.m4 |
---|
70 | -- bug #153630 (Rodney Dawes) |
---|
71 | |
---|
72 | Version 0.31.2 |
---|
73 | |
---|
74 | * Handle package name extraction better |
---|
75 | -- bug #144725 (Daniel Elstner) |
---|
76 | * Support for comments before translatable attributes in XML files, |
---|
77 | support for translating both tag content and attributes |
---|
78 | -- bug #143581. (Danilo Segan) |
---|
79 | |
---|
80 | Version 0.31.1 |
---|
81 | |
---|
82 | * Switch to gnome-common for autogen.sh so we can detect automake |
---|
83 | versions better -- bug #145027 (Jordi Mallach) |
---|
84 | |
---|
85 | Version 0.31 |
---|
86 | |
---|
87 | * Usage of [no-xml] option in AC_PROG_INTLTOOL to avoid requiring |
---|
88 | XML::Parser Perl module. (Rodney Dawes) |
---|
89 | * Support for C#. (Rodney) |
---|
90 | * Support for running intltool-update without autoconf, or with |
---|
91 | po/Makevars file (as used in gettext). (Danilo Segan) |
---|
92 | * New XML merging (compatible with pre-0.27.2 intltool) -- bug |
---|
93 | #130802 -- entity decoding and encoding is not done anymore for |
---|
94 | XML. (Danilo) |
---|
95 | * Multiple-output XML merging now produces simpler files, and sets |
---|
96 | "xml:lang" only when translation is used -- bug #46650. (Danilo) |
---|
97 | * Support for passing comments to translators from XML and GConf |
---|
98 | schema files. (Danilo) |
---|
99 | * Many bug fixes (Rodney, Danilo, Callum McKenzie) |
---|
100 | |
---|
101 | Version 0.30 |
---|
102 | |
---|
103 | * added missing [] quotation macro name defined in AC_DEFUN() |
---|
104 | (Tomasz Kloczko) |
---|
105 | * Handle embedded newlines thereby avoiding the silent corruption of |
---|
106 | files. (Morten Welinder) |
---|
107 | * Now intltool-merge does not compress whitespace in attributes |
---|
108 | and CDATA. (Brian Cameron) |
---|
109 | * Now intltool-merge supports dashes in attribute names, and supports |
---|
110 | attributes delimited by single quotes. (Brian Cameron) |
---|
111 | * Misc small fixes (Kenneth Chr., Danilo Segan) |
---|
112 | |
---|
113 | Version 0.29 |
---|
114 | |
---|
115 | * Removed OrigTree in favor of more simply setting handlers directly |
---|
116 | in intltool-merge (Brian Cameron) |
---|
117 | * Work correctly with AC_CONFIG_AUX_DIR (Thomas Vander Stichele, |
---|
118 | Chee Bin HOH and Kees Cook) |
---|
119 | * Make intltoolize return a correct exit status (Thomas Vander Stichele) |
---|
120 | * Fix usage of a bash-ism (Morten Welinder, Jonathan Blandford) |
---|
121 | * Translate GenericName in .desktop files (Kenneth Rohde Christiansen) |
---|
122 | * Framework to allow each format have inline comments (Denis Barbier) |
---|
123 | * Add $XGETTEXT_ARGS to allow passing extra args to xgettext (Danilo Segan) |
---|
124 | * Added support for .kbd files (Kenneth Rohde Christiansen) |
---|
125 | * Add $XGETTEXT_KEYWORDS to allow the use of other keywords (Danilo Segan) |
---|
126 | * Misc bug fixes (Noah Levitt, Tommi Komulainen) |
---|
127 | |
---|
128 | --- |
---|
129 | |
---|
130 | Version 0.28 |
---|
131 | "...Jeg har aldrig rigtig brudt mig om glögg, det smager lidt ligesom |
---|
132 | Sverige lugter (From Jul på Vesterbro)" |
---|
133 | |
---|
134 | |
---|
135 | Brian Cameron fixed a long standing issue in intltool - the migration to a |
---|
136 | real XML parser - which means that it now depends on XML::Parser. Malcolm |
---|
137 | Tredinnick made sure to fix some of the new bugs introduced by this as well |
---|
138 | as some other long standing bugs! |
---|
139 | |
---|
140 | Thanks goes to Brian Cameron! and to Sun Microsystem for sponsoring him ;-) |
---|
141 | and thanks goes to Malcolm for picking up Scrollkeeper hacking and keeping |
---|
142 | an eye on intltool at the same time. |
---|
143 | |
---|
144 | Thanks guys! |
---|
145 | |
---|
146 | * made intltool-merge use XML::Parser (#116526 and others) [Brian Cameron] |
---|
147 | |
---|
148 | - added and updated tests |
---|
149 | - updated so that intltool-merge doesn't add a trailing '\n' |
---|
150 | character to CDATA values. |
---|
151 | - Corrected the logic of encoding/decoding the string |
---|
152 | before/after translation. |
---|
153 | - Added it to build, made it install (Kenneth Christiansen) |
---|
154 | - Added missing DESTDIR (Abel Cheung) |
---|
155 | - Also install OrigTree.pm in the distribution tree (Malcolm Tredinnick) |
---|
156 | - Check for the XML::Parser module at build time (Malcolm Tredinnick) |
---|
157 | |
---|
158 | * Added INTLTOOL_KBD_RULE for GOK\s *.kdb files (Bill Haneman) |
---|
159 | * Added --multiple-output option (Kenneth Christiansen) |
---|
160 | * Avoid bashism in xgettext version check. (#120267) (Abel Cheung) |
---|
161 | * Handle standard GNU gettext 0.12 and 0.13 installations (Malcolm Tredinnick) |
---|
162 | * Fix the running of test 18 (multiple output test) (Malcolm Tredinnick) |
---|
163 | |
---|
164 | --- |
---|
165 | |
---|
166 | Version 0.27.2 |
---|
167 | |
---|
168 | * Fixed the source code encoding mark at POTFILES.in support (Abel Cheung). |
---|
169 | * Fixed the intltool.spec file so it can build RPMs with this release (it was |
---|
170 | only a package issue (Carlos Perelló Marín) |
---|
171 | |
---|
172 | --- |
---|
173 | |
---|
174 | Version 0.27.1 |
---|
175 | |
---|
176 | * Fixed .xam support (Abel Cheung) |
---|
177 | * Fixed intltool-update, it's not usable with 0.27 :-( (Carlos Perelló Marín) |
---|
178 | * intltool-update -m tells you about files that are at POTFILES.in but does not |
---|
179 | exists anymore (Abel Cheung) |
---|
180 | |
---|
181 | --- |
---|
182 | |
---|
183 | Version 0.27 |
---|
184 | |
---|
185 | * Small scheme support fixes (Callum McKenzie) |
---|
186 | * Added support for .lang files (Gustavo Giraldez) |
---|
187 | * Added support for .xam files (Abel Cheung) |
---|
188 | * Updated I18N-HOWTO (Kenneth, Bruno Haible) |
---|
189 | * Updated all manual pages and command help (Abel Cheung) |
---|
190 | * Improved the package name detection code (Abel Cheung) |
---|
191 | * better .server files handling (Abel Cheung) |
---|
192 | * source code with non-ASCII chars support with |
---|
193 | GNU gettext 0.12 (bug #99005, Abel Cheung, Carlos Perelló Marín) |
---|
194 | * intltool-unicodify is deprecated, please use msgconv (Abel Cheung) |
---|
195 | |
---|
196 | --- |
---|
197 | |
---|
198 | Version 0.26 |
---|
199 | |
---|
200 | * Handle no translations in get_newest_po_age (Rodney Dawes) |
---|
201 | * Cleaned up tests and fixed few bugs (Kenneth) |
---|
202 | * Send error messages to stderr, and fix other similar bugs |
---|
203 | (bug #105013, Denis Barbier) |
---|
204 | * handle using a different output file. (James Henstridge) |
---|
205 | * Correct the invocation of INTLTOOL_MERGE. (bug #106898, Malcolm Tredinnick) |
---|
206 | * Extract attributes in XML when there are spaces arount the equal sign |
---|
207 | (Alberto Manuel Brand?o Sim?es) |
---|
208 | * use iconv -f, instead of iconv --f (bug #105181, Hidetoshi Tajima) |
---|
209 | * Added variable substitution. (Kenneth) |
---|
210 | * Added small section for packages not using the aufo* tools (Kenneth) |
---|
211 | * Call msgmerge with options before non-options to fix potential |
---|
212 | non-GNU getopt issues. (Gregory Stark, Jordi Mallach) |
---|
213 | * Make it work when running an UTF-8 locale (Kenneth) |
---|
214 | * Fix some iconv/charset issues (bug #113121, Morten Welinder) |
---|
215 | |
---|
216 | --- |
---|
217 | |
---|
218 | Version 0.25 |
---|
219 | |
---|
220 | * support latest version of Makefile.in.in from glib-gettextize |
---|
221 | from glib >= 2.1.5 (Frederic Crozat) |
---|
222 | |
---|
223 | --- |
---|
224 | |
---|
225 | Version 0.24 |
---|
226 | |
---|
227 | * strip the hints from POTFILES.in in -M mode. (Yanko Kaneti) |
---|
228 | * Don't generate .h.h lines in the POTFILES.in |
---|
229 | for xgettext when the input file line is from a known type and also has |
---|
230 | the [type: gettext/..] hint. (Yanko Kaneti) |
---|
231 | * Fix xml-i18n-tools part to work with new gettext 4 (Yanko Kaneti) |
---|
232 | * Fixed #96169 (Kenneth, Laurent Vivier and Morten Welinder) |
---|
233 | * Added a new .theme.in -> .theme rule (Jonathan Blandford, Glynn Foster) |
---|
234 | |
---|
235 | --- |
---|
236 | |
---|
237 | Version 0.23 |
---|
238 | |
---|
239 | * gettextize 4.x work (Kenneth). |
---|
240 | * Build system fixes (Kenneth). |
---|
241 | * Recognise the "xml:space" attribute and preserve whitespace |
---|
242 | if set to "preserve" (Mark McLoughlin). |
---|
243 | * GConf schemas handling changes as described in bug #94611. (Yanko). |
---|
244 | * Added support for rfc822deb format (Denis Barbier). |
---|
245 | * Use charset.alias if available (Denis Barbier, Jacob Berkman). |
---|
246 | * Add support for 'default' tags #89747 (Kenneth). |
---|
247 | * Spec file cleanup #48446. (Gregory Leblanc). |
---|
248 | * Hardcode aclocal-1.4/automake-1.4 so that users with both automake 1.6 |
---|
249 | and 1.4 installed get the right automake. (Havoc). |
---|
250 | * Other bugfixes (Kjartan Maraas). |
---|
251 | |
---|
252 | --- |
---|
253 | |
---|
254 | Version 0.22 |
---|
255 | |
---|
256 | * Added support for translation of descriptions used by ATK in glade files |
---|
257 | (Kenneth). |
---|
258 | * Made schemas extraction code more bulletproof (Kenneth). |
---|
259 | * Force intltool-update to exit if POTFILES.in is not found (Abel Cheung). |
---|
260 | * Add detection of glade2 files in -m mode (Abel Cheung). |
---|
261 | |
---|
262 | --- |
---|
263 | |
---|
264 | Version 0.21 |
---|
265 | |
---|
266 | * Use $srcdir in the version check (Mark McLoughlin) |
---|
267 | |
---|
268 | --- |
---|
269 | |
---|
270 | Version 0.20 |
---|
271 | |
---|
272 | * Added support for .schemas files (Kenneth) |
---|
273 | |
---|
274 | --- |
---|
275 | |
---|
276 | Version 0.19 |
---|
277 | |
---|
278 | * A few .m4 fixes (Jacob Berkman) |
---|
279 | * Now works with configure.ac (Kenneth, Abel Cheung) |
---|
280 | * Perform variable substitutions when determining package name (Abel Cheung) |
---|
281 | * We look also at AC_INIT to get the package name. (Carlos Perelló Marín) |
---|
282 | * Added HOWTO on adding i18n support to an application. (Kenneth, Thomas Vander Stichele) |
---|
283 | * Made the selftest more portable (Kenneth). |
---|
284 | * Fixed Glade XML decoding. (Kenneth) |
---|
285 | * Better error reporting (Kenneth) |
---|
286 | |
---|
287 | --- |
---|
288 | |
---|
289 | Version 0.18 |
---|
290 | |
---|
291 | * Updated tests to use embedded markup in translatable messages. (Sven Neumann) |
---|
292 | * Made the version check more portable. (ERDI Gergo, Jacob Bergman) |
---|
293 | * Don not confuse a nonexistent file with age of 0. (nix@esperi.demon.co.uk) |
---|
294 | |
---|
295 | --- |
---|
296 | |
---|
297 | Version 0.17 |
---|
298 | |
---|
299 | * Improved the option checking code and fixed some bugs at the same time (Darin) |
---|
300 | * Treat directories starting with po- as being translation directories (Kenneth) |
---|
301 | * Improved the Perl version check (Stefan Kost) |
---|
302 | * Made it possible to depend on specific intltool releases (Kenneth, ERDI Gergo, Frank Belew) |
---|
303 | * Updated manual pages, plus added a new one for intltool-update (Stefan Kost, Kenneth) |
---|
304 | * Fixed the rule for ".ui" files, that was only half done (Darin, Kenneth) |
---|
305 | * Better error messages when we encounter an old cache file (Darin) |
---|
306 | * Handle C comments in intltool-update --maintain (Darin) |
---|
307 | * Don't merge fuzzy translations (Darin) |
---|
308 | * Handle XML tags inside translatable messages extracted from XML files |
---|
309 | (Sven Neumann) |
---|
310 | |
---|
311 | --- |
---|
312 | |
---|
313 | Version 0.16 |
---|
314 | |
---|
315 | * Add INTLTOOL_ICONV environment variable to specify which iconv executable (Darin) |
---|
316 | * Put translations in the database even when msgstr is identical to msgid (Darin) |
---|
317 | * Add glade2 support (James Henstridge) |
---|
318 | * Update intltool-merge man page (Stefan Kost) |
---|
319 | * Fixed intltool-update bugs introduced in 0.15 (Darin) |
---|
320 | * Handle strange package names without screwing up (Ole Laursen) |
---|
321 | |
---|
322 | --- |
---|
323 | |
---|
324 | Version 0.15 |
---|
325 | |
---|
326 | * Made production version of cache, makes merges much faster (Darin, Kenneth) |
---|
327 | * Reworked intltool-unicodify (Kenneth) |
---|
328 | * Some man page updating (Kenneth) |
---|
329 | * Added a rule for ".ui" files (Darin) |
---|
330 | * Fix AC_AUX_DIR incompatibility (ERDI Gergo) |
---|
331 | * Fix to work well with the newest glib-gettextize (ERDI Gergo) |
---|
332 | * Remove unneeded C code parts of configure.in (Darin) |
---|
333 | |
---|
334 | --- |
---|
335 | |
---|
336 | Version 0.14 |
---|
337 | |
---|
338 | * Fix to work well with both new and old autoconf (ERDI Gergo) |
---|
339 | |
---|
340 | --- |
---|
341 | |
---|
342 | Version 0.13 |
---|
343 | |
---|
344 | * Handle desktop file entries with regexp metacharacters (Darin) |
---|
345 | * Add support for .caves files (Juan Pablo Mendoza) |
---|
346 | * Fix intl-prepare bug [missing chomp] (Edgar Luna) |
---|
347 | * Escape backslashes in output of intl-prepare (Frederic Crozat) |
---|
348 | * Look for both POTFILES.skip and POTFILES.ignore (Darin) |
---|
349 | * Fix bug in intltool -M where it doesn't find glade files (Kenneth) |
---|
350 | * Implement trial version of a cache (Kenneth) |
---|
351 | * Remove file type tags from POTFILES (ERDI Gergo) |
---|
352 | |
---|
353 | --- |
---|
354 | |
---|
355 | Version 0.12 |
---|
356 | |
---|
357 | * Handle whitespace properly in XML (Darin) |
---|
358 | * Add support for multiline msgids and msgstrs, including test cases (Darin) |
---|
359 | * Add support for glib-getttextize (Jacob, Darin) |
---|
360 | * Add doc-i18n-tool [disabled in Makefile for the moment] (Jonathan) |
---|
361 | * Fixes to spec file (Toralf Lund, Darin) |
---|
362 | * Fix bug in intltool-prepare if string has regex metacharacters in it (Darin) |
---|
363 | |
---|
364 | --- |
---|
365 | |
---|
366 | Version 0.11 |
---|
367 | |
---|
368 | * Rename to intltool (Darin) |
---|
369 | * Fix split line bug (Darin) |
---|
370 | * Fix "no .po files" bug (Darin) |
---|
371 | * Add .scm support (Kenneth, Carlos) |
---|
372 | * Get rid of "\n" -> "n" escaping logic (Darin) |
---|
373 | * Make update ignore comment lines in POTFILES.in (Darin) |
---|
374 | * Remove "-?" option for compatibility with old Perl (Darin) |
---|
375 | * Fix longstanding undefined variable problem in *ize scripts (Peter Williams) |
---|
376 | |
---|
377 | --- |
---|
378 | |
---|
379 | Version 0.9.5 |
---|
380 | |
---|
381 | * Fix .server support (Carlos) |
---|
382 | * Makefile fixes (Robin * Slomkowski) |
---|
383 | * Man-pages (not installed yet) (Carlos, Dan Muet, Kenneth) |
---|
384 | * Simplifications in prepare tool (Darin) |
---|
385 | * M4 files (Darin) |
---|
386 | * Fixes for evolution (Zbigniew) |
---|
387 | * Fix documentain errors (Zbigniew) |
---|
388 | * Removed buggy checks (Maciej) |
---|
389 | * UTF-8 support (Cyrille) |
---|
390 | * New XML_I18N_XML_KIND variable (Cyrille Chepelov) |
---|
391 | * Support for Dia's .sheet files (Cyrille Chepelov) |
---|
392 | * New testcases (Darin, Cyrille) |
---|
393 | * Made regexps more bulletproof (Darin) |
---|
394 | * Bugfixes for glade (Darin) |
---|
395 | * Generates UTF-8 or (as previously) broken XML files. (Cyrille Chepelov) |
---|
396 | * Generates UTF-8 or (as previously) mixed-encoding .keys files. (CC) |
---|
397 | * Support for Dia .sheet files (CC) |
---|
398 | * two optional arguments to the AC_PROG_XML_I18N_TOOLS: first is the |
---|
399 | minimum required version, second is either blank or the [G2] string |
---|
400 | (no brackets). (CC) |
---|
401 | * XML_I18N_TOOLS_NEWER_THAN_0_9 equals to "true" (CC) |
---|
402 | |
---|
403 | Please see the README for more information on these new features. |
---|
404 | |
---|
405 | --- |
---|
406 | |
---|
407 | Version 0.9 |
---|
408 | |
---|
409 | * Self test fixes (Darin) |
---|
410 | * Merge translations in sorted order (Darin) |
---|
411 | * Autoconf 2.50 support (Maciej) |
---|
412 | * Bug fixes (Karl Eichwalder) |
---|
413 | * Support for .xml files (Laszlo Kovacs) |
---|
414 | * Build fixes (Darin) |
---|
415 | |
---|
416 | --- |
---|
417 | |
---|
418 | Version 0.8.4 |
---|
419 | |
---|
420 | * Support for the new gettext 0.10.36 (Darin, Stanislav Brabec) |
---|
421 | * Backport of changes in branches to HEAD (Darin) |
---|
422 | * Better XML support (George) |
---|
423 | * More tests (Darin) |
---|
424 | * Handling of more extensions (Clahey, Laszlo, Kenneth) |
---|
425 | * Spec file cleanup (Arik) |
---|
426 | * Updated documentation (Laszlo) |
---|
427 | * Misc bugfixes (Darin, Maciej, Laszlo, Kenneth) |
---|
428 | * New translations: hrm, this is a translation tool, why should it |
---|
429 | support translation - what a concept :) |
---|
430 | |
---|
431 | |
---|
432 | INITIAL ANNOUNCEMENT |
---|
433 | ____________________ |
---|
434 | |
---|
435 | Hi, |
---|
436 | |
---|
437 | I created the xml-i18n-tools module on CVS based on code by me, Darin |
---|
438 | and Kenneth Christiansen. This module contains some utility scripts |
---|
439 | and assorted auto* magic for internationalizing various kinds of XML |
---|
440 | files. This supersedes the earlier scripts that Kenny distributed to |
---|
441 | be checked into each module. In addition, it has an additional merging |
---|
442 | feature, currently only for oaf files. |
---|
443 | |
---|
444 | * Here's what this package does: |
---|
445 | |
---|
446 | ** Automatically extracts translatable strings from oaf, glade, bonobo |
---|
447 | ui, nautilus theme and other XML files into the po files. |
---|
448 | |
---|
449 | ** Automatically merges translations from po files back into .oaf files |
---|
450 | (encoding to be 7-bit clean). I can also extend this merging |
---|
451 | mechanism to support other types of XML files. |
---|
452 | |
---|
453 | Having the translations directly in the XML file is critical for some |
---|
454 | file formats, and very helpful for others. When one package installs a |
---|
455 | file and a program from another package might at some time read it, |
---|
456 | you need to have the translations directly in the file, since the app |
---|
457 | reading the data file will not know which message catalog to use. |
---|
458 | |
---|
459 | The beauty of this extract and merge system is that it works through |
---|
460 | the existing po mechanism, so translators will be able to work in |
---|
461 | their normal way, and be notified of strings that change, or new |
---|
462 | strings that are added, with existing tools. |
---|
463 | |
---|
464 | I plan to enhance the system to support .desktop files, mime database |
---|
465 | files, and other files that normally embed translations. I would also |
---|
466 | be glad to add translation merging support for more XML file types if |
---|
467 | |
---|
468 | xml-i18n-tools has a script xml-i18n-toolize which copies the various |
---|
469 | scripts and does the other magic to your module, so users building |
---|
470 | from tarballs don't need xml-i18n-tools, only folks building from cvs. |
---|
471 | |
---|
472 | |
---|
473 | * xml-i18n-tools simple to use. To use it for your module you just do |
---|
474 | the following: |
---|
475 | |
---|
476 | ** Add these lines to autogen.sh, after the call to gettextize: |
---|
477 | |
---|
478 | echo "Running xml-i18n-toolize... Ignore non-fatal messages." |
---|
479 | xml-i18n-toolize --copy --force --automake |
---|
480 | |
---|
481 | ** Add this line to configure.in near the top |
---|
482 | |
---|
483 | AM_PROG_XML_I18N_TOOLS |
---|
484 | |
---|
485 | ** Add the .xml and .glade files you want translated to POTFILES.in |
---|
486 | |
---|
487 | At this point, strings marked translatable will be automatically |
---|
488 | extracted to the .po files. |
---|
489 | |
---|
490 | * To get oaf translation extraction and merging requires a few more |
---|
491 | steps: |
---|
492 | |
---|
493 | ** Rename your .oafinfo file to .oaf.in and put an underscore before |
---|
494 | every value property for string attributes |
---|
495 | |
---|
496 | ** Add the .oaf.in files to POTFILES.in |
---|
497 | |
---|
498 | ** Put lines like these in every Makefile.am that installs oafinfo |
---|
499 | files: |
---|
500 | |
---|
501 | --- start ---- |
---|
502 | |
---|
503 | oafdir = $(datadir)/oaf |
---|
504 | |
---|
505 | oaf_in_files = My_OAF_info_file.oaf.in |
---|
506 | oaf_DATA = $(oaf_in_files:.oaf.in=.oaf) |
---|
507 | |
---|
508 | @XML_I18N_MERGE_OAF_RULE@ |
---|
509 | |
---|
510 | EXTRA_DIST=$(oaf_in_files) $(oafinfo_DATA) |
---|
511 | |
---|
512 | --- end ---- |
---|
513 | |
---|
514 | At this point, your oaf translations will be extracted and |
---|
515 | merged. Also, so long as you are renaming the .oafinfo files to |
---|
516 | .oaf.in, you should take the opportunity to rename them to the new base |
---|
517 | naming convention, with namespacing, for example: |
---|
518 | |
---|
519 | nautilus.oafinfo --> Nautilus_shell.oaf.in |
---|
520 | |
---|
521 | nautilus-rpm-view.oafinfo --> Nautilus_View_rpm.oaf.in |
---|
522 | |
---|
523 | |
---|
524 | I'm going to do all these steps for OAF, Ammonite and Nautilus |
---|
525 | shortly. I'd also plan to submit patches to do it for bonobo, |
---|
526 | gnumeric, evolution, at least, and I can help out with any other |
---|
527 | modules people want help with. |
---|
528 | |
---|
529 | Also, if the Glade, Bonobo, etc maintainers are interested in doing |
---|
530 | translation merging like OAF, I'd love to discuss a design for it. |
---|
531 | |
---|
532 | Regards, |
---|
533 | |
---|
534 | Maciej |
---|