gpe-expenses 0.1.9
translate.c
Go to the documentation of this file.
00001 /***************************************************************************
00002  *            translate.c
00003  *
00004  *  Wed 11 Jul 2007 13:11:53 BST
00005  *  Copyright  2007 Neil Williams  <linux@codehelp.co.uk>
00006  ****************************************************************************/
00007 /*
00008  *  This program is free software; you can redistribute it and/or modify
00009  *  it under the terms of the GNU General Public License as published by
00010  *  the Free Software Foundation; either version 3 of the License, or
00011  *  (at your option) any later version.
00012  *
00013  *  This program is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  *  GNU General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU General Public License
00019  *  along with this program; if not, write to the Free Software
00020  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00021  */
00022 
00056 #define _GNU_SOURCE
00057 #include "config.h"
00058 #include <libintl.h>
00059 #include <locale.h>
00060 #include "qof-expenses.h"
00061 #define _(String) dgettext (LIBRARY_GETTEXT_PACKAGE, String)
00062 
00063 #define STRING(name, value) \
00064         gchar * G_GNUC_UNUSED name##noop = _(#name);
00065 
00066 #define MARKUP(name, list) \
00067 static void G_GNUC_UNUSED name##translate (void) \
00068 { \
00069         list(STRING) \
00070 }
00071 
00072 MARKUP(ExpenseType, EXPENSE_TYPE_LIST)
00073 
00074 MARKUP(ExpensePayment, PAYMENT_TYPE_LIST)
00075 
00076