2006-12-06 Behdad Esfahbod <behdad@gnome.org>
+ * examples/renderdemo.c (do_output): Set context language to
+ pango_language_get_default() instead of hardcoding "en-US".
+
+ * pango/pango-utils.c (pango_language_get_default): Improve docs.
+
+2006-12-06 Behdad Esfahbod <behdad@gnome.org>
+
Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used
Patch from LingNing Zhang
set_transform (context, transform_cb, cb_context, cb_data, NULL);
- pango_context_set_language (context, pango_language_from_string ("en_US"));
+ pango_context_set_language (context, pango_language_get_default ());
pango_context_set_base_dir (context,
opt_rtl ? PANGO_DIRECTION_RTL : PANGO_DIRECTION_LTR);
/**
* pango_language_get_default:
*
- * Returns the #PangoLanguage for the current locale of the running
- * process. Note that this can change over the life of an
- * application.
+ * Returns the #PangoLanguage for the current locale of the process.
+ * Note that this can change over the life of an application.
+ *
+ * Your application should call <literal>setlocale (LC_ALL, "");</literal>
+ * for the user settings to take effect. Gtk+ does this in its initialization
+ * functions. See <literal>man setlocale</literal> for details.
*
* Return value: the default language as a #PangoLanguage, must not be
* freed.