[vdr] Re: burn-plugin: UTF converting

Oleg oleg at roitburd.de
Mon Oct 24 15:18:34 CEST 2005


On Monday 24 October 2005 11:45, Lucian Muresan wrote:
> What VDR version are you using? It doesmn't work for several 1.3.x
>
> versions because of the following:
> > +char *Convert2UTF(const char *Text)
> > +{
> > +   const char *f = I18nCharSet(Setup.OSDLanguage);
>
>                                 ^^^^
> this has changed at some version to
>
> const char *f = I18nCharSets()[Setup.OSDLanguage];
>                            ^^^^^


Sorry. I have copy this function from UTF patch 
---------------------------------------------------------------------------------------------------------
const char * I18nCharSet(int Index)
{
   return 0 <= Index && Index < I18nNumLanguages ? Phrases[1][Index] : NULL;
}
--------------------------------------------------------------------------------------------------------

Also you can use a macro tr()

const char *f = tr ("iso8859-1"); instead of I18nCharSet()

Best Regards
Oleg



More information about the vdr mailing list