[vlc-devel] [PATCH] hotkeys: Delay subtitle track only if it exists and is enabled.

Rémi Denis-Courmont remi at remlab.net
Wed Apr 10 17:04:37 CEST 2013


> +                    if( i_count == 0 )
> +                        DisplayMessage( p_vout,
> +                                        _("No delay set; subtitle
track:
> %s"),
> +                                        _("N/A") );
> +                    else
> +                        DisplayMessage( p_vout,
> +                                        _("No delay set; subtitle
track:
> %s"),
> +                                        _("Disabled") );

Factor code, seriously:

DisplayMessage( p_vout, _("No delay set; subtitle track: %s"),
                vlc_gettext( i_count ? N_("Disabled") : N_("N/A") ) );

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list