[geany/geany-plugins] 0e4704: workbench: Use plural and singular forms

Colomban Wendling git-noreply at xxxxx
Wed Nov 22 02:21:28 UTC 2017


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Wed, 22 Nov 2017 02:21:28 UTC
Commit:      0e4704ce505026f6dafb0259484b7125fdcb3723
             https://github.com/geany/geany-plugins/commit/0e4704ce505026f6dafb0259484b7125fdcb3723

Log Message:
-----------
workbench: Use plural and singular forms


Modified Paths:
--------------
    workbench/src/sidebar.c

Modified: workbench/src/sidebar.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -595,7 +595,8 @@ static void sidebar_update_workbench(GtkTreeIter *iter, gint *position)
 		gchar text[200];
 
 		count = workbench_get_project_count(wb_globals.opened_wb);
-		length = g_snprintf(text, sizeof(text), _("%s: %u Projects"),
+		length = g_snprintf(text, sizeof(text),
+							g_dngettext(GETTEXT_PACKAGE, "%s: %u Project", "%s: %u Projects", count),
 							workbench_get_name(wb_globals.opened_wb), count);
 		if (length < (gint)(sizeof(text)-1) && workbench_is_modified(wb_globals.opened_wb))
 		{



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list