diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 6 | ||||
-rw-r--r-- | test/mdock-standalone.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 65d5220..e28094c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,5 +1,9 @@ +datadir = @datadir@ +datarootdir = @datarootdir@ +localedir = @localedir@ + noinst_PROGRAMS = mdock-standalone mdock_standalone_SOURCES = mdock-standalone.c -mdock_standalone_CPPFLAGS = $(GTK_CFLAGS) +mdock_standalone_CPPFLAGS = $(GTK_CFLAGS) -DG_LOG_DOMAIN=\"mdock-standalone\" -DLOCALEDIR=\"$(localedir)\" mdock_standalone_LDADD = $(GTK_LIBS) ../libmdock/libmdock.la diff --git a/test/mdock-standalone.c b/test/mdock-standalone.c index 21ac609..38a1ebd 100644 --- a/test/mdock-standalone.c +++ b/test/mdock-standalone.c @@ -17,7 +17,9 @@ * along with MDock. If not, see <http://www.gnu.org/licenses/>. */ +#include "../config.h" #include <stdlib.h> +#include <glib/gi18n.h> #include <gtk/gtk.h> #include "../libmdock/mdock-widget.h" @@ -35,6 +37,10 @@ static void construct_main_window() int main(int argc, char **argv) { + setlocale(LC_ALL, ""); + bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); + textdomain(GETTEXT_PACKAGE); + gtk_init(&argc, &argv); construct_main_window(); |