]> git.sesse.net Git - vlc/commitdiff
config: use ngettext()
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Apr 2012 15:22:01 +0000 (18:22 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Apr 2012 15:24:14 +0000 (18:24 +0300)
src/config/help.c

index 9b73029ab5dd577beb72e7c607d4ca9f88cd1039..84f3e58aff14226ff1b448a2262c4d7f3a5037de 100644 (file)
@@ -267,7 +267,7 @@ static void Usage (vlc_object_t *p_this, char const *psz_search)
     bool b_color       = var_InheritBool( p_this, "color" );
     bool b_has_advanced = false;
     bool b_found       = false;
-    int  i_only_advanced = 0; /* Number of modules ignored because they
+    unsigned i_only_advanced = 0; /* Number of modules ignored because they
                                * only have advanced options */
     bool b_strict = psz_search && *psz_search == '=';
     if( b_strict ) psz_search++;
@@ -688,15 +688,15 @@ static void Usage (vlc_object_t *p_this, char const *psz_search)
     if( i_only_advanced > 0 )
     {
         if( b_color )
-        {
             utf8_fprintf( stdout, "\n" WHITE "%s" GRAY " ", _( "Note:" ) );
-            utf8_fprintf( stdout, _( "%d module(s) were not displayed because they only have advanced options.\n" ), i_only_advanced );
-        }
         else
-        {
             utf8_fprintf( stdout, "\n%s ", _( "Note:" ) );
-            utf8_fprintf( stdout, _( "%d module(s) were not displayed because they only have advanced options.\n" ), i_only_advanced );
-        }
+
+        utf8_fprintf( stdout, vlc_ngettext("%u module was not displayed "
+                                     "because it only has advanced options.\n",
+                                           "%u modules were not displayed "
+                                  "because they only have advanced options.\n",
+                      i_only_advanced ), i_only_advanced );
     }
     else if( !b_found )
     {