[rygel] core: Don't build translatable strings by substitution



commit e19749355a0ba0eb80d54351b31a86086fb2c0ad
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Aug 28 13:57:44 2010 +0100

    core: Don't build translatable strings by substitution
    
    Based on a patch from Philip Withnall <philip tecnocode co uk>.

 src/rygel/rygel-user-config.vala |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/rygel/rygel-user-config.vala b/src/rygel/rygel-user-config.vala
index 39cbace..b4e55c0 100644
--- a/src/rygel/rygel-user-config.vala
+++ b/src/rygel/rygel-user-config.vala
@@ -344,10 +344,15 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
                 this.set_bool ("general", ENABLED_KEY, false);
             }
         } catch (GLib.Error err) {
-            // Failed to start/stop Rygel service
-            warning (_("Failed to %s Rygel service: %s"),
-                     enable? "start": "stop",
-                     err.message);
+            string message;
+
+            if (enable) {
+                message = _("Failed to start Rygel service: %s");
+            } else {
+                message = _("Failed to stop Rygel service: %s");
+            }
+
+            warning (message, err.message);
         }
     }
 



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