GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-gettext-util.c
1 /********************************************************************\
2  * File: core-utils.c
3  *
4  * Copyright (C) 2001 Linux Developers Group
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  *
20 \********************************************************************/
21 
22 #include "config.h"
23 
24 #include <glib.h>
25 #include <glib/gi18n.h>
26 #include <string.h>
27 
28 #include "gnc-gettext-util.h"
29 
30 /* ============================================================== */
31 
32 char *
33 gnc_gettext_helper(const char *string)
34 {
35  return strdup(string && *string ? _(string) : "");
36 }
37