Add localization support
[cinaest] / src / main.vala
index 58d32e7..cd2bd03 100644 (file)
@@ -74,6 +74,10 @@ public class CinaestProgram : Hildon.Program {
                Gtk.init (ref args);
                Gdk.threads_init ();
 
+               Intl.setlocale (LocaleCategory.ALL, "");
+               Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
+               Intl.textdomain (Config.GETTEXT_PACKAGE);
+
                var osso_context = new Osso.Context ("org.maemo.cinaest", Config.VERSION, true, null);
                if (osso_context == null) {
                        return Osso.Status.ERROR;