]> git.sesse.net Git - vlc/commitdiff
Load out-of-tree plugin's text domain
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 28 Jan 2010 17:48:25 +0000 (19:48 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 28 Jan 2010 17:50:12 +0000 (19:50 +0200)
They cannot do it themselves. Their strings may be in the plugins
cache, in which case the plugins may not be loaded at all.

src/modules/cache.c

index 5517d3a91abe3f827d1638fd475521941d3c67d1..643381b6bb6e54f425e050207fb9b3cd49a2d35a 100644 (file)
@@ -257,6 +257,8 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
 
         LOAD_STRING( pp_cache[i]->p_module->psz_filename );
         LOAD_STRING( pp_cache[i]->p_module->domain );
+        if( pp_cache[i]->p_module->domain != NULL )
+            vlc_bindtextdomain( pp_cache[i]->p_module->domain );
 
         LOAD_IMMEDIATE( i_submodules );