bygfoot/src/language.h

56 lines
1.5 KiB
C
Raw Normal View History

2005-10-20 17:45:00 +02:00
/*
2005-11-26 17:52:51 +01:00
language.h
2005-10-20 17:45:00 +02:00
Bygfoot Football Manager -- a small and simple GTK2-based
football management game.
http://bygfoot.sourceforge.net
Copyright (C) 2005 Gyözö Both (gyboth@bygfoot.com)
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
2005-06-14 17:27:44 +02:00
#ifndef LANGUAGE_H
#define LANGUAGE_H
#include "bygfoot.h"
#include "option.h"
2005-07-25 06:35:53 +02:00
#include <locale.h>
2005-06-14 17:27:44 +02:00
#define language_get_current_index() (strlen(opt_str("string_opt_language_code")) > 0) ? language_get_code_index(opt_str("string_opt_language_code")) : -1
gint
language_get_code_index(const gchar *code);
void
language_set(gint index);
2005-11-01 22:20:24 +01:00
void
language_pick_country(GPtrArray *country_files);
2006-02-21 11:20:20 +01:00
void
language_get_code(gchar *buf);
2009-01-11 11:23:55 +01:00
gint
language_compare_country_files(gconstpointer a, gconstpointer b, gpointer data);
2005-11-01 22:20:24 +01:00
/* #ifndef G_OS_UNIX */
/* extern int _nl_msg_cat_cntr; */
/* #endif */
2005-07-25 06:35:53 +02:00
2005-06-14 17:27:44 +02:00
#endif