[Geany-devel] geany-plugins: Bug in translation
devel at xxxxx
Thu Oct 6 20:44:58 UTC 2011
06.10.2011 20:19, Frank Lanitz пишет:
> On Wed, 05 Oct 2011 17:30:23 +0400
> Alexander Petukhov<devel at apetukhov.ru> wrote:
>> just wanted to add more info:
>> to easily see the effect try addons plugin and it's context menu "Open
>> URI" and "Copy URI" menu items.
>> Until some svn update, IIRC translations of my debugger and possibly
>> other plugins were more
>> complete, from some point I noticed that some strings become
>> untranslated but then I decided
>> that it was a bug in my plugin, and didn't pay much attention to it.
> It looks a bit like its related to position of including of
> geanyplugin.h. I guess I've fixed it for geany VC but needs some
> further investigation.
> Geany-devel mailing list
> Geany-devel at uvena.de
as I discovered the point is that you have to include config.h in every
file that contains translatable strings, actually #define
GETTEXT_PACKAGE "geany-plugins" is the only line that is needed from it.
Previosuly it worked without it somehow.
if GETTEXT_PACKAGE is not defined, textdomain(NULL) returns NULL, i.e.
there is no textdomain set, with GETTEXT_PACKAGE it returns "messages"
while I expected to see "geany-plugins" here.
I tried to understand how i18n is realized in Geany but I couldn't find
any textdomain call in Geany sources.
2Enrico: every plugin that do not include config.h in a file with
strings seems to be untranslated now. As I mentioned above it worked
without it earlier so I suppose other plugins can also miss this include
and therefore be untranslated but I didn't check.
So two ways so far:
1. include config.h everywhere it is nessesary
2. look up what has been broken till 0.20
which one to use?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel