[gnome-boxes] Don't break strings



commit f818eac57a22e3cfa77252ee35a944a13fac5e86
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Mar 5 00:03:02 2013 +0200

    Don't break strings
    
    While Vala combines these strings together in generated C code, we take
    strings directly from vala files so these substrings are taken
    independently into translation files. That is not something desirable as
    we want translators to be able to see them in context and translate them
    together.

 src/libvirt-machine-properties.vala |    5 ++---
 src/spice-display.vala              |    4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index b9fb884..275b14d 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -254,9 +254,8 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                                         empty = false;
                                     } catch (GLib.Error e) {
                                         var path_basename = get_utf8_basename (path);
-                                        machine.got_error (_("Insertion of '%s' as a CD/DVD " +
-                                                             "into '%s' failed").printf (path_basename,
-                                                                                         machine.name));
+                                        var msg = _("Insertion of '%s' as a CD/DVD into '%s' failed");
+                                        machine.got_error (msg.printf (path_basename, machine.name));
                                         debug ("Error inserting '%s' as CD into '%s': %s",
                                                path_basename,
                                                machine.name,
diff --git a/src/spice-display.vala b/src/spice-display.vala
index 972a9fe..250c3f7 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -313,8 +313,8 @@ private class Boxes.SpiceDisplay: Boxes.Display {
                                             dev_toggle.active = false;
                                             var device_desc = dev.get_description ("%1$s %2$s");
                                             var box_name = config.last_seen_name?? "Unknown";
-                                            got_error (_("Redirection of USB device '%s' " +
-                                                         "for '%s' failed").printf (device_desc, box_name));
+                                            var msg = _("Redirection of USB device '%s' for '%s' failed");
+                                            got_error (msg.printf (device_desc, box_name));
                                             debug ("Error connecting %s to %s: %s", device_desc, box_name, 
err.message);
                                         }
                                     });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]