Ok, one shouldn't just bitch about other people's code, so here is my patch
that adds an optional locale_domain and locale_path to the plugin structure
and extends the pluginrc code to read and write that information from/into 
the pluginrc. This code is obviously a few lines longer than what Daniel 
proposes, but it seems to work very well here.

The locale information is optional and if the locale_domain is given, there
_can_ be an additional locale_path entry. The code handles the case that
pluginrc registers the locale_domain twice (by using the last given entry),
but that should never happen unless the user edits the pluginrc by hand.

You will find the patch at http://sven.gimp.org/files/locale_parse.patch.

It only contains the code to read, store and write the locale info for the
plug-ins. This will have to be extended to do build a list out of this entries
(eventually checking for the existence of the given paths). Other necessary 
parts can be taken from Daniels patch. What is missing right now is a 
to add the locale_domain and locale_path information from a plugin using a 
PDB call. This will follow later.

Salut, Sven

Reply via email to