[Xfce4-commits] [apps/parole] 01/01: Use plural form in translation
noreply at xfce.org
noreply at xfce.org
Fri Jul 4 14:31:39 CEST 2014
This is an automated email from the git hooks/post-receive script.
bluesabre pushed a commit to branch master
in repository apps/parole.
commit cfa17b4ecbdada5c66357950a00b304ca352ef36
Author: Sergey Alyoshin <alyoshin.s at gmail.com>
Date: Fri Jul 4 08:31:03 2014 -0400
Use plural form in translation
---
src/parole-medialist.c | 37 ++++++++++++++-----------------------
1 file changed, 14 insertions(+), 23 deletions(-)
diff --git a/src/parole-medialist.c b/src/parole-medialist.c
index 1c00fde..5e3872a 100644
--- a/src/parole-medialist.c
+++ b/src/parole-medialist.c
@@ -212,27 +212,15 @@ parole_media_list_set_playlist_count (ParoleMediaList *list, gint n_items)
gtk_widget_set_sensitive (list->priv->remove_button, n_items != 0);
gtk_widget_set_sensitive (list->priv->clear_button, n_items != 0);
- if ( n_items == 1 )
- {
- if (gtk_notebook_get_current_page(GTK_NOTEBOOK(list->priv->playlist_notebook)) == 0)
- {
- gtk_tree_view_column_set_title (list->priv->col, g_strdup_printf(_("Playlist (%i item)"), n_items));
- }
- else
- {
- gtk_tree_view_column_set_title (list->priv->disc_col, g_strdup_printf(_("Playlist (%i chapter)"), n_items));
- }
- }
- else
- {
- if (gtk_notebook_get_current_page(GTK_NOTEBOOK(list->priv->playlist_notebook)) == 0)
- {
- gtk_tree_view_column_set_title (list->priv->col, g_strdup_printf(_("Playlist (%i items)"), n_items));
- }
- else
- {
- gtk_tree_view_column_set_title (list->priv->disc_col, g_strdup_printf(_("Playlist (%i chapters)"), n_items));
- }
+ if (gtk_notebook_get_current_page(GTK_NOTEBOOK(list->priv->playlist_notebook)) == 0)
+ {
+ gtk_tree_view_column_set_title (list->priv->col,
+ g_strdup_printf(ngettext("Playlist (%i item)", "Playlist (%i items)", n_items), n_items));
+ }
+ else
+ {
+ gtk_tree_view_column_set_title (list->priv->disc_col,
+ g_strdup_printf(ngettext("Playlist (%i chapter)", "Playlist (%i chapters)", n_items), n_items));
}
/*
@@ -1593,8 +1581,11 @@ parole_media_list_setup_view (ParoleMediaList *list)
gtk_tree_view_append_column (GTK_TREE_VIEW (list->priv->view), list->priv->col);
gtk_tree_view_append_column (GTK_TREE_VIEW (list->priv->disc_view), list->priv->disc_col);
- gtk_tree_view_column_set_title (list->priv->col, g_strdup_printf(_("Playlist (%i items)"), 0));
- gtk_tree_view_column_set_title (list->priv->disc_col, g_strdup_printf(_("Playlist (%i chapters)"), 0));
+
+ gtk_tree_view_column_set_title (list->priv->col,
+ g_strdup_printf(ngettext("Playlist (%i item)", "Playlist (%i items)", 0), 0));
+ gtk_tree_view_column_set_title (list->priv->disc_col,
+ g_strdup_printf(ngettext("Playlist (%i chapter)", "Playlist (%i chapters)", 0), 0));
gtk_drag_dest_set (list->priv->view, GTK_DEST_DEFAULT_ALL, target_entry, G_N_ELEMENTS (target_entry),
GDK_ACTION_COPY | GDK_ACTION_MOVE);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list