[gnome-boxes] Mark strings as translatable



commit ef6e1333191a628a59d79c6ff90a7bf7a34ca40e
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Wed May 23 17:55:46 2012 +0200

    Mark strings as translatable
    
    A few (not very visible) strings had not been marked as translatable
    since they were added during string freeze, now we can add them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676648

 src/main.vala |    6 +++---
 src/util.vala |    3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/main.vala b/src/main.vala
index 517f6d9..67b2df4 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -57,9 +57,9 @@ private async void run_checks () {
     var cpu = yield Boxes.check_cpu_vt_capability ();
     var kvm = yield Boxes.check_module_kvm_loaded ();
 
-    // FIXME: make it translatable after string freeze, and add proper UI & docs
-    GLib.stdout.printf ("The CPU is capable of virtualization: %s\n".printf (Boxes.yes_no (cpu)));
-    GLib.stdout.printf ("The KVM module is loaded: %s\n".printf (Boxes.yes_no (kvm)));
+    // FIXME: add proper UI & docs
+    GLib.stdout.printf (N_("The CPU is capable of virtualization: %s\n").printf (Boxes.yes_no (cpu)));
+    GLib.stdout.printf (N_("The KVM module is loaded: %s\n").printf (Boxes.yes_no (kvm)));
 }
 
 public int main (string[] args) {
diff --git a/src/util.vala b/src/util.vala
index 6b53f32..3d787dd 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -393,8 +393,7 @@ namespace Boxes {
     }
 
     public string yes_no (bool value) {
-        // FIXME: make it translatable after string freeze
-        return value ? "yes" : "no";
+        return value ? N_("yes") : N_("no");
     }
 
     public async bool check_cpu_vt_capability () {



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