~ubuntu-branches/ubuntu/hoary/exif/hoary

« back to all changes in this revision

Viewing changes to exif/exif-i18n.h

  • Committer: Bazaar Package Importer
  • Author(s): christophe barbe
  • Date: 2004-06-18 14:44:26 UTC
  • Revision ID: james.westby@ubuntu.com-20040618144426-36li8gkxq3f3kau3
Tags: upstream-0.6.9
Import upstream version 0.6.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* i18n.h
 
2
 *
 
3
 * Copyright � 2001 Lutz M�ller <lutz@users.sourceforge.net>
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Lesser General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library 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 GNU
 
13
 * Lesser General Public License for more details. 
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public
 
16
 * License along with this library; if not, write to the
 
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef __I18N_H__
 
22
#define __I18N_H__
 
23
 
 
24
#ifdef ENABLE_NLS
 
25
#  include <libintl.h>
 
26
#  undef _
 
27
#  define _(String) dgettext (GETTEXT_PACKAGE, String)
 
28
#  ifdef gettext_noop
 
29
#    define N_(String) gettext_noop (String)
 
30
#  else
 
31
#    define N_(String) (String)
 
32
#  endif
 
33
#else
 
34
#  define textdomain(String) (String)
 
35
#  define gettext(String) (String)
 
36
#  define dgettext(Domain,Message) (Message)
 
37
#  define dcgettext(Domain,Message,Type) (Message)
 
38
#  define bind_textdomain_codeset(Domain,Codeset) (Codeset)
 
39
#  define bindtextdomain(Domain,Directory) (Domain)
 
40
#  define _(String) (String)
 
41
#  define N_(String) (String)
 
42
#endif
 
43
 
 
44
 
 
45
const char *exif_i18n_convert_utf8_to_lat1 (const char *);
 
46
#define C(s) (exif_i18n_convert_utf8_to_lat1(s))
 
47
 
 
48
 
 
49
#endif /* __I18N_H__ */