GNOME Bugzilla – Bug 392323
Gtranslator removes all custom headers
Last modified: 2007-11-15 20:40:28 UTC
Gtranslator is removing all custom headers (the ones starting with 'X-'). Although it would make sense to remove headers used by other editors to note the .po file was edited by that other program, it should leave untouched the others. The best example of problems caused by this behaviour is Rosetta (http://launchpad.net/rosetta). Rosetta is a web editor for .po files and also, a repository of .po files available to translate for Ubuntu distribution and other projects. It allows to do offline translations with applications like Gtranslator, but to prevent conflicts, it adds a custom header: X-Rosetta-Export-Date with the timestamp when it was exported from the system. The problem is that Gtranslator is removing that header so it makes impossible to know whether there is a conflict with other offline translations or web translations.
I definitely agree: it's somehow borring to manually edit every single po file before uploading it into Rosetta.
Sorry but I don't know how bugs are handled. How can we know if this bug is considered as important and should be fixed for next version? Do we just have to wait?
Created attachment 87068 [details] [review] parse and save any custom header
Pablo, Can you attach the completed file? header_stuff.c
Ignacio, this patch is not needed in trunk, cause the gettext functions implement all this behaviour. Pablo's patch only works for 1.1.x
Then, can i close this bug? Becouse 1.1.x is not maintaining anymore.
Our intention, after talking to Ross, was to finish with the set of patches we (Pablo Sangiao and me) are preparing, and then release 1.1.18 (or something like this) in order to increase a bit the usability of the application before putting all the effort in the new version. Getting stable the current trunk still needs some work and can take a while, and we thought it was better to do that intermediate stable release for the current users of 1.1.x.
Fixed in branch gtranslator_1_1_8 Thanks all!