diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-09-02 12:16:13 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-09-02 12:16:13 +0200 |
| commit | 5b79533ec48b0ec9eb2cdd5cafc705160a486888 (patch) | |
| tree | 9800012383e1cb4e27d8fb42d91cb3591f93e15a /src/Daemon/Daemon.cpp | |
| parent | d28efd514ea109db680dd143fe9bcad147d0730f (diff) | |
| parent | 84ae8a43927b479a8b3565e43d0b3a109b164c21 (diff) | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Daemon/Daemon.cpp')
| -rw-r--r-- | src/Daemon/Daemon.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index ddde1151..be9c9c28 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -34,6 +34,22 @@ #define VAR_RUN_PIDFILE VAR_RUN"/abrt.pid" +#if HAVE_CONFIG_H + #include <config.h> +#endif + +#if HAVE_LOCALE_H + #include <locale.h> +#endif + +#if ENABLE_NLS + #include <libintl.h> + #define _(S) gettext(S) +#else + #define _(S) (S) +#endif + + //FIXME: add some struct to be able to join all threads! typedef struct cron_callback_data_t { @@ -528,6 +544,13 @@ int main(int argc, char** argv) bool daemonize = true; int opt; + setlocale(LC_ALL,""); + +#if ENABLE_NLS + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); +#endif + while ((opt = getopt(argc, argv, "dv")) != -1) { switch (opt) |
