Commit 7f9cc65e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RC: use ngettext

parent a8bf15bb
...@@ -1330,8 +1330,8 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1330,8 +1330,8 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
else if (!strcmp( psz_cmd, "goto" ) ) else if (!strcmp( psz_cmd, "goto" ) )
{ {
PL_LOCK; PL_LOCK;
int i_pos = atoi( newval.psz_string ); unsigned i_pos = atoi( newval.psz_string );
int i_size = p_playlist->items.i_size; unsigned i_size = p_playlist->items.i_size;
if( i_pos <= 0 ) if( i_pos <= 0 )
msg_rc( "%s", _("Error: `goto' needs an argument greater than zero.") ); msg_rc( "%s", _("Error: `goto' needs an argument greater than zero.") );
...@@ -1345,7 +1345,9 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1345,7 +1345,9 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
p_parent, p_item ); p_parent, p_item );
} }
else else
msg_rc( _("Playlist has only %d elements"), i_size ); msg_rc( vlc_ngettext("Playlist has only %u element",
"Playlsit has only %u elements", i_size),
i_size );
PL_UNLOCK; PL_UNLOCK;
} }
else if( !strcmp( psz_cmd, "stop" ) ) else if( !strcmp( psz_cmd, "stop" ) )
......
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