]> git.sesse.net Git - vlc/commitdiff
Do not translate ""
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 18:33:35 +0000 (20:33 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 18:33:35 +0000 (20:33 +0200)
That would return the PO file metadatas.

src/libvlc.c

index c677df92959fcf1acb8b1e6b7c35fbdd603d6158..34926aeeab231fc5149574435c8abaf97cf0c382 100644 (file)
@@ -1385,14 +1385,14 @@ static void print_help_section( module_config_t *p_item, bool b_color, bool b_de
     if( b_color )
     {
         utf8_fprintf( stdout, RED"   %s:\n"GRAY, _( p_item->psz_text ) );
-        if( b_description && p_item->psz_longtext )
+        if( b_description && p_item->psz_longtext && *p_item->psz_longtext )
             utf8_fprintf( stdout, MAGENTA"   %s\n"GRAY,
                           _( p_item->psz_longtext ) );
     }
     else
     {
         utf8_fprintf( stdout, "   %s:\n", _( p_item->psz_text ) );
-        if( b_description && p_item->psz_longtext )
+        if( b_description && p_item->psz_longtext && *p_item->psz_longtext )
             utf8_fprintf( stdout, "   %s\n", _( p_item->psz_longtext ) );
     }
 }
@@ -1583,7 +1583,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
                         utf8_fprintf( stdout, "\n %s\n",
                                       _( p_item->psz_text ) );
                 }
-                if( b_description && p_item->psz_longtext )
+                if( b_description && p_item->psz_longtext
+                 && *p_item->psz_longtext )
                 {
                     if( b_color )
                         utf8_fprintf( stdout, CYAN " %s\n" GRAY,
@@ -1825,7 +1826,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
                 }
             }
 
-            if( b_description_hack && p_item->psz_longtext )
+            if( b_description_hack && p_item->psz_longtext
+             && *p_item->psz_longtext )
             {
                 sprintf( psz_buffer, "%s%s", _( p_item->psz_longtext ),
                          psz_suf );