Commit 7b3f9bc3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Move vlc_gettext() with vlc_bindtextdomain()

parent 88bc7492
......@@ -61,24 +61,6 @@
#ifdef ENABLE_NLS
# include <libintl.h>
#endif
/**
* In-tree plugins share their gettext domain with LibVLC.
*/
char *vlc_gettext( const char *msgid )
{
#ifdef ENABLE_NLS
if( unlikely(!*msgid))
return (char *)"";
return dgettext( PACKAGE_NAME, msgid );
#else
return (char *)msgid;
#endif
}
/*****************************************************************************
* Local conversion routine from ISO_6937 to UTF-8 charset. Support for this
* is still missing in libiconv, hence multiple operating systems lack it.
......
......@@ -91,3 +91,17 @@ int vlc_bindtextdomain (const char *domain)
return 0;
}
/**
* In-tree plugins share their gettext domain with LibVLC.
*/
char *vlc_gettext (const char *msgid)
{
#ifdef ENABLE_NLS
if (unlikely(!*msgid))
return (char *)"";
return dgettext (PACKAGE_NAME, msgid);
#else
return (char *)msgid;
#endif
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment