gettext.c revision 2e14588420ccfbaa5be20605ed2be8b9802d1d49
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * CDDL HEADER START
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * The contents of this file are subject to the terms of the
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * Common Development and Distribution License (the "License").
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * You may not use this file except in compliance with the License.
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * See the License for the specific language governing permissions
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * and limitations under the License.
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * When distributing Covered Code, include this CDDL HEADER in each
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * If applicable, add the following below this CDDL HEADER, with the
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * fields enclosed by brackets "[]" replaced with your own identifying
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * information: Portions Copyright [yyyy] [name of copyright owner]
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * CDDL HEADER END
a574db851cdc636fc3939b68e80d79fe7fbd57f2raf * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * Use is subject to license terms.
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie#pragma ident "%Z%%M% %I% %E% SMI"
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie#pragma weak bind_textdomain_codeset = _bind_textdomain_codeset
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie global_gt = (Gettext_t *)calloc(1, sizeof (Gettext_t)); \
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie return ((def)); \
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie res = _real_bindtextdomain_u(domain, binding, TP_BINDING);
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie_bind_textdomain_codeset(const char *domain, const char *codeset)
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie res = _real_bindtextdomain_u(domain, codeset, TP_CODESET);
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * textdomain() sets or queries the name of the current domain of
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * the active LC_MESSAGES locale category.
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * gettext() is a pass-thru to _real_gettext_u() with a NULL pointer passed
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * for domain and LC_MESSAGES passed for category.
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie res = _real_gettext_u(NULL, msg_id, NULL, 0, LC_MESSAGES, 0);
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie * In dcgettext() call, domain is valid only for this call.
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie res = _real_gettext_u(domain, msg_id, NULL, 0, LC_MESSAGES, 0);
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie_dcgettext(const char *domain, const char *msg_id, const int category)
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie res = _real_gettext_u(domain, msg_id, NULL, 0, category, 0);
a574db851cdc636fc3939b68e80d79fe7fbd57f2raf_ngettext(const char *msgid1, const char *msgid2, unsigned long int n)
a574db851cdc636fc3939b68e80d79fe7fbd57f2raf res = _real_gettext_u(NULL, msgid1, msgid2, n, LC_MESSAGES, 1);
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie_dngettext(const char *domain, const char *msgid1, const char *msgid2,
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie unsigned long int n)
8cd45542f2a452ca0dab13d8b2d5cfa876ccbebcraf res = _real_gettext_u(domain, msgid1, msgid2, n, LC_MESSAGES, 1);
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie_dcngettext(const char *domain, const char *msgid1, const char *msgid2,
10a4fa49f51ed9ae1c857a626de6ce9ebf41661arie unsigned long int n, int category)