diff options
author | rbuj <[email protected]> | 2021-02-13 12:32:06 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-16 14:07:47 +0100 |
commit | e50a1907e04a320bf9e054182b8dbeb4c52eb076 (patch) | |
tree | f0c11e26e732a7693149229c6d5fd7449149b35b /font-viewer/font-thumbnailer.c | |
parent | 68306612ea6c7dc8635290950ce435a459dd4568 (diff) | |
download | mate-control-center-e50a1907e04a320bf9e054182b8dbeb4c52eb076.tar.bz2 mate-control-center-e50a1907e04a320bf9e054182b8dbeb4c52eb076.tar.xz |
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'font-viewer/font-thumbnailer.c')
-rw-r--r-- | font-viewer/font-thumbnailer.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/font-viewer/font-thumbnailer.c b/font-viewer/font-thumbnailer.c index 9e9d344c..6014f30d 100644 --- a/font-viewer/font-thumbnailer.c +++ b/font-viewer/font-thumbnailer.c @@ -21,11 +21,13 @@ */ #ifdef HAVE_CONFIG_H -# include <config.h> +#include <config.h> #endif #include <stdio.h> +#ifdef ENABLE_NLS #include <locale.h> +#endif /* ENABLE_NLS */ #include <ft2build.h> #include <math.h> #include FT_FREETYPE_H @@ -196,11 +198,12 @@ main (int argc, { NULL } }; +#ifdef ENABLE_NLS + setlocale (LC_ALL, ""); bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); - - setlocale (LC_ALL, ""); +#endif /* ENABLE_NLS */ context = g_option_context_new (NULL); g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); |