Use dngettext instead of ngettext
authorMatthias Clasen <mclasen@redhat.com>
Sun, 27 Mar 2016 23:00:31 +0000 (19:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 27 Mar 2016 23:00:31 +0000 (19:00 -0400)
Since we are a library, we have to pass the domain explicitly.

https://bugzilla.gnome.org/show_bug.cgi?id=764261

gtk/gtkplacesviewrow.c

index a742ff902dc29e692871a4e44e4296be17c858be..8f54ee6f81b34943a5b6517dc6ea1b3c8423d1ca 100644 (file)
@@ -129,7 +129,7 @@ measure_available_space_finished (GObject      *object,
    * should be based on the free space available.
    * i.e. 1 GB / 24 GB available.
    */
-  label = g_strdup_printf (ngettext ("%s / %s available", "%s / %s available", plural_form),
+  label = g_strdup_printf (dngettext (GETTEXT_PACKAGE, "%s / %s available", "%s / %s available", plural_form),
                            formatted_free_size, formatted_total_size);
 
   gtk_label_set_label (row->available_space_label, label);