~ubuntu-branches/ubuntu/raring/gnutls26/raring

« back to all changes in this revision

Viewing changes to gl/gettext.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Convenience header for conditional use of GNU <libintl.h>.
2
 
   Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009 Free Software Foundation, Inc.
 
2
   Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2010 Free Software
 
3
   Foundation, Inc.
3
4
 
4
5
   This program is free software; you can redistribute it and/or modify
5
6
   it under the terms of the GNU General Public License as published by
80
81
    ((void) (Domainname), ngettext (Msgid1, Msgid2, N))
81
82
# undef dcngettext
82
83
# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
83
 
    ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N))
 
84
    ((void) (Category), dngettext (Domainname, Msgid1, Msgid2, N))
84
85
# undef textdomain
85
86
# define textdomain(Domainname) ((const char *) (Domainname))
86
87
# undef bindtextdomain
140
141
#endif
141
142
static const char *
142
143
pgettext_aux (const char *domain,
143
 
              const char *msg_ctxt_id, const char *msgid,
144
 
              int category)
 
144
              const char *msg_ctxt_id, const char *msgid,
 
145
              int category)
145
146
{
146
147
  const char *translation = dcgettext (domain, msg_ctxt_id, category);
147
148
  if (translation == msg_ctxt_id)
159
160
#endif
160
161
static const char *
161
162
npgettext_aux (const char *domain,
162
 
               const char *msg_ctxt_id, const char *msgid,
163
 
               const char *msgid_plural, unsigned long int n,
164
 
               int category)
 
163
               const char *msg_ctxt_id, const char *msgid,
 
164
               const char *msgid_plural, unsigned long int n,
 
165
               int category)
165
166
{
166
167
  const char *translation =
167
168
    dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);