Add a function to return a list of applicable locale names. (#95587,

2004-09-07  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.h:
	* glib/gutils.c (g_get_language_names): Add a function to
	return a list of applicable locale names.  (#95587,
	Hidetoshi Tajima)
	(guess_category_value, compute_locale_variants):
	(explode_locale, unalias_lang, read_aliases): Helper
	functions for g_get_language_names()

	* tests/testglib.c (main): Show the results of
	g_get_language_names()
This commit is contained in:
Matthias Clasen
2004-09-07 18:37:10 +00:00
committed by Matthias Clasen
parent 463ac34744
commit d209e108b1
10 changed files with 366 additions and 1 deletions

View File

@@ -451,6 +451,8 @@ main (int argc,
sv = (gchar **) g_get_system_config_dirs ();
g_print ("system_config: %s\n", s ? g_strjoinv (G_SEARCHPATH_SEPARATOR_S, sv) : "NULL!");
g_print ("tmp-dir: %s\n", g_get_tmp_dir ());
sv = (gchar **) g_get_language_names ();
g_print ("languages: %s\n", s ? g_strjoinv (":", sv) : "NULL!");
/* type sizes */
g_print ("checking size of gint8: %" G_GSIZE_FORMAT, sizeof (gint8));