[Thunar-dev] xfdesktop and thunar
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Sat Apr 29 14:31:04 CEST 2006
Brian J. Tarricone wrote:
>>>Well, weird thing is, GETTEXT_PACKAGE is Thunar for the plugins, and
>>>bindtextdomain() is not called by the plugins (have to fix that). So,
>>>where does the translation come from?
>
> I bet some of them - like "Use startup notification" and "Run in
> terminal" come from menueditor. Well, actually, the latter does, but
> the former has its mnemonic in a different place (which may indicate why
> it's blank in the screenshot; though I thought gettext would just return
> the English string if it didn't find one). Menueditor does have
> "Command". I'm sure there's an "Options" somewhere. Not sure about the
> others, but you get the idea...
>
> If the plugins call bindtextdomain(), won't this mess up xfdesktop's
> translations? Or does gettext just accumulate text domains, and not
> replace them when you call bindtextdomain() again?
Well, we use dgettext() everywhere, that's why gettext should never
return strings from another project. I cannot reproduce Rodrigo's
problem here (gettext 0.14).
bindtextdomain() just tells gettext where to find .mo files for a
certain domain.
> -brian
Benedikt
More information about the Thunar-dev
mailing list