annotate src/audacious/i18n.h @ 2868:bb41a2e8ecbe trunk

BSD relicensing (pass 8).
author William Pitcock <nenolod@atheme.org>
date Sat, 23 Jun 2007 22:58:29 -0500
parents af600aefd2cf
children 976d8657b476
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2868
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
1 /*
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
2 * audacious: Cross-platform multimedia player.
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
3 * i18n.h: Enhanced support for internationalization.
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
4 *
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
5 * Copyright (c) 2005-2007 Audacious development team.
2387
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
6 *
2868
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
7 * Redistribution and use in source and binary forms, with or without
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
8 * modification, are permitted provided that the following conditions are
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
9 * met:
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
10 *
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
11 * 1. Redistributions of source code must retain the above copyright notice,
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
12 * this list of conditions and the following disclaimer.
2387
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
13 *
2868
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
14 * 2. Redistributions in binary form must reproduce the above copyright
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
15 * notice, this list of conditions and the following disclaimer in the
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
16 * documentation and/or other materials provided with the distribution.
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
17 *
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
18 * 3. The name of the author may not be used to endorse or promote products
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
19 * derived from this software without specific prior written permission.
2387
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
20 *
2868
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
24 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
30 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
bb41a2e8ecbe BSD relicensing (pass 8).
William Pitcock <nenolod@atheme.org>
parents: 2387
diff changeset
31 * POSSIBILITY OF SUCH DAMAGE.
2387
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
32 */
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
33
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
34 #ifndef __AUDACIOUS_I18N_H__
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
35 #define __AUDACIOUS_I18N_H__
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
36
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
37 #include <glib/gstrfuncs.h>
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
38 #include <libintl.h>
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
39
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
40 #define _(String) dgettext (PACKAGE, String)
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
41 #define Q_(String) g_strip_context ((String), dgettext (PACKAGE, String))
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
42 #ifdef gettext_noop
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
43 #define N_(String) gettext_noop (String)
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
44 #else
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
45 #define N_(String) (String)
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
46 #endif
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
47
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
diff changeset
48 #endif