[Xfce4-commits] <xfce4-cpugraph-plugin:master> Use the ngettext on "Show bar(s)"

Florian noreply at xfce.org
Sat Apr 17 16:16:47 CEST 2010


Updating branch refs/heads/master
         to e580a99d44dc98422aa026769c32aff5eef9c1f0 (commit)
       from 4f993015f474b4501c95c772baa1a2f8c2bb9be4 (commit)

commit e580a99d44dc98422aa026769c32aff5eef9c1f0
Author: Florian <frivoal at gmail.com>
Date:   Sun Mar 21 20:13:58 2010 +0900

    Use the ngettext on "Show bar(s)"
    
    Use ngettext to display the correct form of the string "Show bar(s)" in
    English, and to allow for proper translations of it.

 panel-plugin/properties.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/properties.c b/panel-plugin/properties.c
index 2fc15aa..294519a 100644
--- a/panel-plugin/properties.c
+++ b/panel-plugin/properties.c
@@ -68,7 +68,7 @@ void create_options( XfcePanelPlugin *plugin, CPUGraph *base )
 	create_check_box( vbox, sg, _("Non-linear time-scale"), base->non_linear, change_time_scale, base );
 	create_check_box( vbox, sg, _("Show frame"), base->has_frame, change_frame, base );
 	create_check_box( vbox, sg, _("Border"), base->has_border, change_border, base );
-	create_check_box( vbox, sg, _("Show Bar(s)"), base->has_bars, change_bars, base );
+	create_check_box( vbox, sg, ngettext( "Show bar", "Show bars", base->nr_cores ), base->has_bars, change_bars, base );
 	setup_command_option( vbox, sg, base );
 	create_check_box( vbox, sg, _("Run in terminal"), base->in_terminal, change_in_terminal, base );
 	create_check_box( vbox, sg, _("Use startup notification"), base->startup_notification, change_startup_notification, base );



More information about the Xfce4-commits mailing list