[gnome-games/gsoc-seed-games] [lightsoff] Add i18n for About dialog



commit e81d0052e6247f02bcab7bbcde3097254e393e8b
Author: Tim Horton <hortont svn gnome org>
Date:   Wed Jun 24 18:26:54 2009 -0400

    [lightsoff] Add i18n for About dialog

 lightsoff/About.js |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/lightsoff/About.js b/lightsoff/About.js
index f34ed25..34ecbe3 100644
--- a/lightsoff/About.js
+++ b/lightsoff/About.js
@@ -3,20 +3,21 @@ GnomeGamesSupport = imports.gi.GnomeGamesSupport;
 
 main = imports.main;
 
-// How do we do translation from Seed?
+// Not sure that this is acceptable; if it is, should it be in a Seed extension?
+var _ = imports.gettext.i18n;
 
 function show_about_dialog()
 {
 	var about_dialog = new Gtk.AboutDialog();
-	about_dialog.program_name = "Lights Off";
+	about_dialog.program_name = _("Lights Off");
 	about_dialog.version = "1.0";
-	about_dialog.comments = "Turn off all the lights\n\nLights Off is a part of GNOME Games.";
-	about_dialog.copyright = "Copyright \xa9 2009 Tim Horton";
-	about_dialog.license = GnomeGamesSupport.get_license("Gnometris"); // FIXME
+	about_dialog.comments = _("Turn off all the lights\n\nLights Off is a part of GNOME Games.");
+	about_dialog.copyright = _("Copyright \xa9 2009 Tim Horton");
+	about_dialog.license = GnomeGamesSupport.get_license(_("Lights Off"));
 	about_dialog.wrap_license = true;
 	about_dialog.logo_icon_name = "gnome-lightsoff";
 	about_dialog.website = "http://www.gnome.org/projects/gnome-games/";;
-	about_dialog.website_label = "GNOME Games web site"; // this doesn't work for anyone
+	about_dialog.website_label = _("GNOME Games web site"); // this doesn't work for anyone
 
 	about_dialog.set_authors(["Tim Horton"]);
 



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