[gnome-builder] flatpak: fix install/update translations
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: fix install/update translations
- Date: Thu, 16 Mar 2017 20:45:27 +0000 (UTC)
commit 0f837e32e34cfd54bbc72b7421572e6075b09a20
Author: Christian Hergert <chergert redhat com>
Date: Thu Mar 16 13:45:15 2017 -0700
flatpak: fix install/update translations
Without this, translators cannot get the proper translation for some
languages such as French.
https://bugzilla.gnome.org/show_bug.cgi?id=780161
plugins/flatpak/gbp-flatpak-transfer.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-transfer.c b/plugins/flatpak/gbp-flatpak-transfer.c
index 5a88f94..8e87ea3 100644
--- a/plugins/flatpak/gbp-flatpak-transfer.c
+++ b/plugins/flatpak/gbp-flatpak-transfer.c
@@ -54,33 +54,33 @@ static GParamSpec *properties [N_PROPS];
static void
gbp_flatpak_transfer_update_title (GbpFlatpakTransfer *self)
{
- g_autoptr(GString) str = NULL;
+ g_autofree gchar *title = NULL;
g_return_if_fail (GBP_IS_FLATPAK_TRANSFER (self));
- str = g_string_new (NULL);
-
if (!self->failed)
{
if (self->has_runtime)
{
if (self->finished)
- g_string_append (str, _("Updated "));
+ /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the branch
(3.24, master, etc) */
+ title = g_strdup_printf (_("Updated %s %s"), self->id, self->branch);
else
- g_string_append (str, _("Updating "));
+ /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the branch
(3.24, master, etc) */
+ title = g_strdup_printf (_("Updating %s %s"), self->id, self->branch);
}
else
{
if (self->finished)
- g_string_append (str, _("Installed "));
+ /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the branch
(3.24, master, etc) */
+ title = g_strdup_printf (_("Installed %s %s"), self->id, self->branch);
else
- g_string_append (str, _("Installing "));
+ /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the branch
(3.24, master, etc) */
+ title = g_strdup_printf (_("Installing %s %s"), self->id, self->branch);
}
}
- g_string_append_printf (str, "%s %s", self->id, self->branch);
-
- ide_transfer_set_title (IDE_TRANSFER (self), str->str);
+ ide_transfer_set_title (IDE_TRANSFER (self), title);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]