[vdr] VDR-core's texts in plugin's .pot files

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Fri Aug 24 15:35:58 CEST 2007

On 08/19/07 14:58, Matthias Becker wrote:
> Hi,
> plugins can re-use VDR-core translations. With the old "i18n.c" method
> plugin authors just did not provide a plugin specific translation for
> these texts.
> With the new translation method identifying these text got harder for
> plugin translators. xgettext puts all texts into the .pot file - also
> the texts for which the VDR-core translation should be used. A
> translator now cannot see which texts he has to translate and which
> not.
> Can this be improved?
> One way of doing this would be to introduce a new macro similar to
> trNOOP( ). A plugin author would then tag the vdr-core texts with this
> new macro and xgettext would ignore these texts.
> What do you think?

You're certainly right.

How about this:

--- i18n.h      2007/08/19 14:07:17     1.23
+++ i18n.h      2007/08/24 13:33:50
@@ -80,6 +80,7 @@

 #ifdef PLUGIN_NAME_I18N
 #define tr(s)  I18nTranslate(s, "vdr-" PLUGIN_NAME_I18N)
+#define trVDR(s) I18nTranslate(s)  // to use a text that's in the VDR core's translation file
 #define tr(s)  I18nTranslate(s)


More information about the vdr mailing list