[cheese/three-point-oh] make the no device text translatable



commit c83e47e4d0cab5eb022ab8fd7684b408174ff028
Author: daniel g. siegel <dgsiegel gnome org>
Date:   Thu Jul 15 19:53:42 2010 +0200

    make the no device text translatable

 data/cheese-viewport.json |   59 ++++++++++++++++++++++-----------------------
 src/cheese-window.vala    |    1 +
 2 files changed, 30 insertions(+), 30 deletions(-)
---
diff --git a/data/cheese-viewport.json b/data/cheese-viewport.json
index 799bee9..9171381 100644
--- a/data/cheese-viewport.json
+++ b/data/cheese-viewport.json
@@ -1,50 +1,49 @@
 [
 {
-    "id": "video_preview",
-    "type": "ClutterTexture",
-    "child::x-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
-    "child::y-align": "CLUTTER_BIN_ALIGNMENT_CENTER"
+  "id": "video_preview",
+  "type": "ClutterTexture",
+  "child::x-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
+  "child::y-align": "CLUTTER_BIN_ALIGNMENT_CENTER"
 },
 {
-    "id": "background",
-    "type": "ClutterRectangle",
-    "color": "Black",
-    "x": 0,
-    "y": 0,
-    "width":768,
-    "height":1024
+  "id": "background",
+  "type": "ClutterRectangle",
+  "color": "Black",
+  "x": 0,
+  "y": 0,
+  "width":768,
+  "height":1024
 },
 {
-    "id": "countdown_layer",
-    "type": "ClutterText",
-    "child::x-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
-    "child::y-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
-    "text": "1",
-    "font-name": "Sans 150px",
-    "opacity": 0,
-    "color": "White"
+  "id": "countdown_layer",
+  "type": "ClutterText",
+  "child::x-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
+  "child::y-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
+  "text": "1",
+  "font-name": "Sans 150px",
+  "opacity": 0,
+  "color": "White"
 },
 {
   "id": "error_layer",
   "type": "ClutterText",
   "child::x-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
   "child::y-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
-  "text": "No device found",
   "color": "White",
   "visible": "False"
 },
 {
-    "id": "viewport_layout",
-    "type": "ClutterBox",
-    "children":
-    [
-      'video_preview',
-      'countdown_layer',
-      'error_layer'
-    ]
+  "id": "viewport_layout",
+  "type": "ClutterBox",
+  "children":
+  [
+    'video_preview',
+    'countdown_layer',
+    'error_layer'
+  ]
 },
 {
-    "id": "viewport_layout_manager",
-    "type": "ClutterBinLayout"
+  "id": "viewport_layout_manager",
+  "type": "ClutterBinLayout"
 }
 ]
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index c77d10a..8a199b7 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -850,6 +850,7 @@ public class Cheese.MainWindow : Gtk.Window
     {
       Clutter.Text error_layer = (Clutter.Text)clutter_builder.get_object ("error_layer");
       video_preview.hide ();
+      error_layer.text = _("No device found");
       error_layer.show ();
       GLib.SList<weak GLib.Object> objects = gtk_builder.get_objects ();
 



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