Commit b616b6b7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* fixed wrong grammar ('1 items in list')

parent c361066f
...@@ -159,7 +159,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/ ...@@ -159,7 +159,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
[[o_tc_author headerCell] setStringValue:_NS("Author")]; [[o_tc_author headerCell] setStringValue:_NS("Author")];
[[o_tc_duration headerCell] setStringValue:_NS("Duration")]; [[o_tc_duration headerCell] setStringValue:_NS("Duration")];
[o_status_field setStringValue: [NSString stringWithFormat: [o_status_field setStringValue: [NSString stringWithFormat:
_NS("0 items in playlist")]]; _NS("no items in playlist")]];
[o_random_ckb setTitle: _NS("Random")]; [o_random_ckb setTitle: _NS("Random")];
#if 0 #if 0
...@@ -923,8 +923,20 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/ ...@@ -923,8 +923,20 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
} }
} }
if( p_playlist->i_size >= 2 )
{
[o_status_field setStringValue: [NSString stringWithFormat: [o_status_field setStringValue: [NSString stringWithFormat:
_NS("%i items in playlist"), p_playlist->i_size]]; _NS("%i items in playlist"), p_playlist->i_size]];
} else {
if( p_playlist->i_size == 0 )
{
[o_status_field setStringValue: [NSString stringWithFormat:
_NS("no items in playlist"), p_playlist->i_size]];
} else {
[o_status_field setStringValue: [NSString stringWithFormat:
_NS("1 item in playlist"), p_playlist->i_size]];
}
}
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
msg_Dbg( p_playlist, "childitem with index %d", index ); msg_Dbg( p_playlist, "childitem with index %d", index );
......
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