[five-or-more/arnaudb/fix-translations] Fix translations.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/fix-translations] Fix translations.
- Date: Thu, 12 Mar 2020 16:11:43 +0000 (UTC)
commit 936899371078b658c4c6cb63f0e637686f9ee142
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Mar 12 17:08:31 2020 +0100
Fix translations.
Fixes #15.
src/main.vala | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/src/main.vala b/src/main.vala
index 5467e01..a878da8 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -43,6 +43,20 @@ public class FiveOrMoreApp: Gtk.Application
{"quit", quit }
};
+ public static int main (string[] args)
+ {
+ Intl.setlocale (LocaleCategory.ALL, "");
+ Intl.bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIRECTORY);
+ Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ Intl.textdomain (GETTEXT_PACKAGE);
+
+ Environment.set_application_name (_("Five or More"));
+ Gtk.Window.set_default_icon_name ("org.gnome.five-or-more");
+
+ FiveOrMoreApp app = new FiveOrMoreApp ();
+ return app.run (args);
+ }
+
public FiveOrMoreApp ()
{
Object (application_id: "org.gnome.five-or-more", flags: ApplicationFlags.FLAGS_NONE);
@@ -69,15 +83,6 @@ public class FiveOrMoreApp: Gtk.Application
(board_size_action as SimpleAction).set_state (new Variant.string(size.to_string()));
}
- public static int main (string[] args)
- {
- Environment.set_application_name (_("Five or More"));
- Gtk.Window.set_default_icon_name ("org.gnome.five-or-more");
-
- var app = new FiveOrMoreApp ();
- return app.run (args);
- }
-
private void new_game_cb ()
{
if (window == null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]