From c6c864cd7084931404b383dcd3f8a1e3951dede4 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 6 Dec 2017 11:45:17 +0100 Subject: Rename GNOMELOCALEDIR -> LOCALEDIR. --- CMakeLists.txt | 2 +- config.h.in | 2 +- src/main.c | 2 +- vapi/config.vapi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 472a789..949b4fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ if (EXISTS "/etc/debian_version") endif() set(GETTEXT_PACKAGE "ayatana-indicator-sound") -set(GNOMELOCALEDIR "${CMAKE_INSTALL_FULL_DATADIR}/locale") +set(LOCALEDIR "${CMAKE_INSTALL_FULL_DATADIR}/locale") add_definitions( -DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}" ) set(SOURCE_DIR "${CMAKE_SOURCE_DIR}/src") diff --git a/config.h.in b/config.h.in index c51c213..ba38187 100644 --- a/config.h.in +++ b/config.h.in @@ -20,6 +20,6 @@ #define INDICATOR_SOUND_CONFIG_H_ #define GETTEXT_PACKAGE "@GETTEXT_PACKAGE@" -#define GNOMELOCALEDIR "@GNOMELOCALEDIR@" +#define LOCALEDIR "@LOCALEDIR@" #endif // INDICATOR_SOUND_CONFIG_H_ diff --git a/src/main.c b/src/main.c index b468481..6b930a2 100644 --- a/src/main.c +++ b/src/main.c @@ -82,7 +82,7 @@ main (int argc, char ** argv) GMainLoop * loop = NULL; bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); setlocale (LC_ALL, ""); - bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); /* Build Mainloop */ loop = g_main_loop_new(NULL, FALSE); diff --git a/vapi/config.vapi b/vapi/config.vapi index 15c4c88..4be6d11 100644 --- a/vapi/config.vapi +++ b/vapi/config.vapi @@ -1,7 +1,7 @@ [CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "../config.h")] namespace Config { public const string GETTEXT_PACKAGE; - public const string GNOMELOCALEDIR; + public const string LOCALEDIR; public const string PKGDATADIR; public const string PACKAGE_NAME; public const string PACKAGE_VERSION; -- cgit v1.2.3