1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright 2008 Red Hat, Inc.
4
* Copyright 2007 William Jon McCann <mccann@jhu.edu>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
* Written by: Ray Strode
24
#ifndef __GNOME_LANGUAGES_H
25
#define __GNOME_LANGUAGES_H
27
#ifndef GNOME_DESKTOP_USE_UNSTABLE_API
28
#error This is unstable API. You must define GNOME_DESKTOP_USE_UNSTABLE_API before including gnome-languages.h
33
char * gnome_get_language_from_locale (const char *locale,
34
const char *translation);
35
char * gnome_get_country_from_locale (const char *locale,
36
const char *translation);
37
char ** gnome_get_all_locales (void);
38
char ** gnome_get_all_languages (void);
39
gboolean gnome_parse_locale (const char *locale,
40
char **language_codep,
44
char * gnome_normalize_locale (const char *locale);
45
gboolean gnome_language_has_translations (const char *code);
46
char * gnome_get_language_from_code (const char *code,
47
const char *translation);
48
char * gnome_get_country_from_code (const char *code,
49
const char *translation);
50
gboolean gnome_get_input_source_from_locale (const char *locale,
56
#endif /* __GNOME_LANGUAGES_H */