diff options
author | rbuj <[email protected]> | 2021-02-18 10:59:50 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-24 16:05:39 +0100 |
commit | d105267f775b4371a670f016c9fbce7e81b2632a (patch) | |
tree | d3085f4d43d7fdcb41d80636404ac15720388ce3 /capplet | |
parent | 036594c5542272f719994a62a4663fce998e26f2 (diff) | |
download | mate-session-manager-d105267f775b4371a670f016c9fbce7e81b2632a.tar.bz2 mate-session-manager-d105267f775b4371a670f016c9fbce7e81b2632a.tar.xz |
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'capplet')
-rw-r--r-- | capplet/gsm-app-dialog.c | 2 | ||||
-rw-r--r-- | capplet/main.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/capplet/gsm-app-dialog.c b/capplet/gsm-app-dialog.c index 9759bac..831e800 100644 --- a/capplet/gsm-app-dialog.c +++ b/capplet/gsm-app-dialog.c @@ -185,7 +185,9 @@ setup_dialog (GsmAppDialog *dialog) GError *error; xml = gtk_builder_new (); +#ifdef ENABLE_NLS gtk_builder_set_translation_domain (xml, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ error = NULL; if (!gtk_builder_add_from_file (xml, diff --git a/capplet/main.c b/capplet/main.c index 30c2ac6..10f82e7 100644 --- a/capplet/main.c +++ b/capplet/main.c @@ -68,9 +68,11 @@ int main(int argc, char* argv[]) GError* error; GtkWidget* dialog; +#ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ error = NULL; |