]> git.sesse.net Git - vlc/commitdiff
Move vlc_gettext() with vlc_bindtextdomain()
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 7 Jul 2011 14:04:51 +0000 (17:04 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 7 Jul 2011 16:00:51 +0000 (19:00 +0300)
src/extras/libc.c
src/modules/textdomain.c

index 1c1e77fd6906c2c97c0fb20186803cd551ba6fdb..37d4e33fa3a08cfe6db7d4c2c9a6408a4b681866 100644 (file)
 
 
 
-#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.
index 4b5ac5bbe7933dd1deed92ebe51d2910ab974d90..60a1682e5da1046d4f027c08bdafef755502622e 100644 (file)
@@ -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
+}