[gq-commit] gq/src i18n.c,NONE,1.1
Status: Beta
Brought to you by:
sur5r
|
From: <sta...@us...> - 2002-10-11 14:12:20
|
Update of /cvsroot/gqclient/gq/src
In directory usw-pr-cvs1:/tmp/cvs-serv2165
Added Files:
i18n.c
Log Message:
* Immplements the S_ function
--- NEW FILE: i18n.c ---
/*
GQ -- a GTK-based LDAP client
Copyright (C) 1998-2001 Bert Vermeulen
Copyright (C) 2002 Peter Stamfest and Bert Vermeulen
This file is
Copyright (C) 2002 by Peter Stamfest
This program is released under the Gnu General Public License with
the additional exemption that compiling, linking, and/or using
OpenSSL is allowed.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* $Id: i18n.c,v 1.1 2002/10/11 14:12:16 stamfest Exp $ */
#include <string.h>
#include "i18n.h"
/* Idea taken from the gettext documentation. */
char *S_(const char *msgid)
{
char *m = gettext(msgid);
if (m == msgid) {
char *m2 = strrchr(msgid, '|');
if (m2) return m2 + 1;
}
return m;
}
|