[gnome-boxes] Mark some UI strings for translation



commit 4eebfa22bde0a921901ec04b6450461efbaf6c5b
Author: Jiro Matsuzawa <jmatsuzawa gnome org>
Date:   Wed Dec 3 06:45:57 2014 +0900

    Mark some UI strings for translation
    
    Also add comments for traslators.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740921

 src/i-properties-provider.vala |    3 ++-
 src/wizard.vala                |    4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/i-properties-provider.vala b/src/i-properties-provider.vala
index 986be28..231e4b5 100644
--- a/src/i-properties-provider.vala
+++ b/src/i-properties-provider.vala
@@ -116,7 +116,8 @@ private class Boxes.SizeProperty : Boxes.Property {
 
         scale.add_mark (min, Gtk.PositionType.BOTTOM, format_size (min, format_flags));
         scale.add_mark (max, Gtk.PositionType.BOTTOM,
-                        "%s (maximum)".printf (format_size (max, format_flags)));
+                        // Translators: This is memory or disk size. E.g "1 GB (maximum)".
+                        _("%s (maximum)").printf (format_size (max, format_flags)));
 
         scale.set_show_fill_level (true);
         scale.set_restrict_to_fill_level (false);
diff --git a/src/wizard.vala b/src/wizard.vala
index 27141d4..0dcadc0 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -526,7 +526,9 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
                 try {
                     var volume_info = libvirt_machine.storage_volume.get_info ();
                     var capacity = format_size (volume_info.capacity);
-                    summary.add_property (_("Disk"),  _("%s maximum".printf (capacity)));
+                    summary.add_property (_("Disk"),
+                                          // Translators: This is disk size. E.g "1 GB maximum".
+                                          _("%s maximum").printf (capacity));
                 } catch (GLib.Error error) {
                     warning ("Failed to get information on volume '%s': %s",
                              libvirt_machine.storage_volume.get_name (),


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