Commit 5716471a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Do not translate "" for good this time

parent faa09ff6
...@@ -189,6 +189,8 @@ int vlc_wclosedir( void *_p_dir ) ...@@ -189,6 +189,8 @@ int vlc_wclosedir( void *_p_dir )
char *vlc_gettext( const char *msgid ) char *vlc_gettext( const char *msgid )
{ {
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
if( unlikely(!*msgid))
return (char *)"";
return dgettext( PACKAGE_NAME, msgid ); return dgettext( PACKAGE_NAME, msgid );
#else #else
return (char *)msgid; return (char *)msgid;
......
...@@ -301,6 +301,8 @@ const char *module_gettext (const module_t *m, const char *str) ...@@ -301,6 +301,8 @@ const char *module_gettext (const module_t *m, const char *str)
{ {
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
const char *domain = m->domain ? m->domain : PACKAGE_NAME; const char *domain = m->domain ? m->domain : PACKAGE_NAME;
if (unlikely(!*str))
return "";
return dgettext (domain, str); return dgettext (domain, str);
#else #else
(void)m; (void)m;
......
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