summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-dictionary/src/main.c')
-rw-r--r--mate-dictionary/src/main.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/mate-dictionary/src/main.c b/mate-dictionary/src/main.c
new file mode 100644
index 00000000..f6dcc94d
--- /dev/null
+++ b/mate-dictionary/src/main.c
@@ -0,0 +1,24 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <libintl.h>
+
+#include "gdict-app.h"
+
+int main (int argc, char *argv[])
+{
+ bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
+ gdict_init (&argc, &argv);
+
+ gdict_main ();
+
+ gdict_cleanup ();
+
+ return EXIT_SUCCESS;
+}