[gnome-games] swell-foop: mark strings in src/Settings.js as translatable



commit 41a4eeb788c953742ea9d83e35c91a92560ccd8f
Author: Piotr DrÄg <piotrdrag gmail com>
Date:   Mon Oct 24 00:54:40 2011 +0200

    swell-foop: mark strings in src/Settings.js as translatable
    
    It also adds it to POTFILES.in

 po/POTFILES.in             |    1 +
 swell-foop/src/Settings.js |   10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index f39954e..b802405 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -135,3 +135,4 @@ swell-foop/swell-foop.schemas.in
 swell-foop/src/About.js
 swell-foop/src/Board.js
 swell-foop/src/Score.js
+swell-foop/src/Settings.js
diff --git a/swell-foop/src/Settings.js b/swell-foop/src/Settings.js
index cbf6d1c..b60e13b 100644
--- a/swell-foop/src/Settings.js
+++ b/swell-foop/src/Settings.js
@@ -6,18 +6,20 @@ ThemeLoader = imports.ThemeLoader;
 GnomeGamesSupport = imports.gi.GnomeGamesSupport;
 ggsconf = GnomeGamesSupport.Conf;
 
+_ = imports.gettext.gettext;
+
 // Defaults
 var theme, colors, zealous, size;
-var default_theme = "Shapes and Colors";
+var default_theme = _("Shapes and Colors");
 var default_size = 1;
 var default_colors = 3;
 var default_zealous = true;
 
 // Map theme names to themes
 var themes = ThemeLoader.load_themes();
-var sizes = [{name: "Small", columns: 6, rows: 5},
-             {name: "Normal", columns: 15, rows: 10},
-             {name: "Large", columns: 20, rows: 15}];
+var sizes = [{name: _("Small"), columns: 6, rows: 5},
+             {name: _("Normal"), columns: 15, rows: 10},
+             {name: _("Large"), columns: 20, rows: 15}];
 
 try
 {



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