From e50a1907e04a320bf9e054182b8dbeb4c52eb076 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 13 Feb 2021 12:32:06 +0100 Subject: build: allow users to disable gettext support (--disable-nls) --- font-viewer/font-view.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'font-viewer/font-view.c') diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c index ad9c2078..8d40cdcd 100644 --- a/font-viewer/font-view.c +++ b/font-viewer/font-view.c @@ -944,9 +944,11 @@ main (int argc, GApplication *app; gint retval; +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ app = font_view_application_new (); retval = g_application_run (app, argc, argv); -- cgit v1.2.1