root/i18n.h

Revision 56547456e406341caca65cfab1abe64869a0ffa0, 1.1 kB (checked in by Leo Antunes <leo@…>, 19 months ago)

fix gettext detection

i18n/CMakeLists.txt, CMakeLists.txt: move -DENABLE_NLS from i18n to root
i18n.h: remove cast to const to avoid warnings

  • Property mode set to 100644
Line 
1/*
2 awayonlock - plugin to set away status on screensaver activation
3 Copyright (C) 2009  Leo Antunes <leo@costela.net>
4 
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc.
18
19*/
20
21#ifndef _AWAYONLOCK_I18N_H
22#define _AWAYONLOCK_I18N_H
23
24#ifdef ENABLE_NLS
25#       include <libintl.h>
26#       include <locale.h>
27#       define _(String) dgettext(PACKAGE, String)
28#       define gettext_noop(String) String
29#       define N_(String) gettext_noop (String)
30#else
31#       define _(String) (String)
32#       define N_(String) String
33#       define textdomain(Domain)
34#       define bindtextdomain(Package, Directory)
35#endif
36
37#endif
Note: See TracBrowser for help on using the browser.