~ubuntu-branches/ubuntu/vivid/gnome-desktop3/vivid-proposed

« back to all changes in this revision

Viewing changes to libgnome-desktop/gnome-languages.h

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2013-05-28 09:10:46 UTC
  • mfrom: (1.6.1) (21.1.10 experimental)
  • Revision ID: package-import@ubuntu.com-20130528091046-b0oc28za9l97fgq1
Tags: 3.8.2-0ubuntu1
* New upstream release
* Sync with Debian (LP: #1184812) Remaining changes:
  - debian/patches:
    + 04_compute_average_color.patch: Compute the avergage color in
      gnome-desktop itself, not in unity to fix some races (LP #963140)
    + tweak_color_computation.patch, Patch from Gord, no patch header,
      no bug link.
    + git_revert_draw_background.patch
    + ubuntu_language.patch, Ported relevant bits from g-c-c 
      52_region_language.patch, as required for gnome 3.8 region panel
    + ubuntu_language_list_from_SUPPORTED.patch,
      adds api to get list of available languages from SUPPORTED file.
      To be used by gnome 3.8 region panel language installation.
  - debian/control.in:
    + Don't break gnome-shell << 3.7.90
    + Use source:Version for gnome-desktop3-data Depend
    + Add epoch to gnome-desktop3-data's Breaks/Replaces, as our old
      gnome-desktop source package introduced an epoch. This needs to be
      kept until after 14.04 LTS.
 - Install helper tools into a versioned directory (by overriding
   libexecdir). They could alternatively be installed in a separate package
* Dropped changes:
  - 02_refuse_to_break_GL_compositors.patch:
    + Doesn't appear to be needed any more
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright 2008 Red Hat, Inc.
 
4
 * Copyright 2007 William Jon McCann <mccann@jhu.edu>
 
5
 *
 
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.
 
10
 *
 
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.
 
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 *
 
20
 * Written by: Ray Strode
 
21
 *             William Jon McCann
 
22
 */
 
23
 
 
24
#ifndef __GNOME_LANGUAGES_H
 
25
#define __GNOME_LANGUAGES_H
 
26
 
 
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
 
29
#endif
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
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,
 
41
                                                 char      **country_codep,
 
42
                                                 char      **codesetp,
 
43
                                                 char      **modifierp);
 
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,
 
51
                                                  const char **type,
 
52
                                                  const char **id);
 
53
 
 
54
G_END_DECLS
 
55
 
 
56
#endif /* __GNOME_LANGUAGES_H */