Use autotools and intltools, translate user interface, add German translation
[led-pattern-ed] / src / led-pattern-dialog.vala
index e5bbdea..9276c97 100644 (file)
@@ -29,7 +29,7 @@ class LedPatternDialog : Gtk.Dialog {
        public LedPatternDialog (List<LedPattern> _list, Osso.Context osso) {
                list = _list;
                osso_context = osso;
-               set_title ("LED Patterns");
+               set_title (_("LED Patterns"));
 
                var content = (Gtk.VBox) get_content_area ();
                content.set_size_request (-1, 5*70);
@@ -52,7 +52,7 @@ class LedPatternDialog : Gtk.Dialog {
                var button_help = new Gtk.Button.with_label ("Help");
                Hildon.gtk_widget_set_theme_size (button_help, Hildon.SizeType.FINGER_HEIGHT);
 
-               var label = new Gtk.Label ("Restore original\npatterns");
+               var label = new Gtk.Label (_("Restore original\npatterns"));
                label.justify = Gtk.Justification.CENTER;
                var button_restore = new Gtk.Button ();
                button_restore.add (label);
@@ -66,7 +66,7 @@ class LedPatternDialog : Gtk.Dialog {
                action_area.set_child_secondary (button_help, true);
                action_area.show_all ();
 
-               add_button ("Save", Gtk.ResponseType.OK);
+               add_button (_("Save"), Gtk.ResponseType.OK);
 
                response.connect (on_response);
        }
@@ -99,9 +99,9 @@ class LedPatternDialog : Gtk.Dialog {
                        var url = "http://wiki.maemo.org/LED_Pattern_Editor";
                        var status = osso_context.rpc_run_with_defaults ("osso_browser", "open_new_window", null, 's', url, 'b', false);
                        if (status != Osso.Status.OK)
-                               Hildon.Banner.show_information (this, null, "Failed to open browser.");
+                               Hildon.Banner.show_information (this, null, _("Failed to open browser."));
                } else if (response_id == Response.RESTORE) {
-                       var note = new Hildon.Note.confirmation (this, "Restore original patterns? All user-created patterns will be lost.");
+                       var note = new Hildon.Note.confirmation (this, _("Restore original patterns? All user-created patterns will be lost."));
                        response_id = note.run ();
                        note.destroy ();
                        if (response_id == Gtk.ResponseType.OK)