summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-release.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-03-17 19:57:22 +0000
committerRichard Hughes <richard@hughsie.com>2014-03-17 20:01:16 +0000
commit18111df9cd7dd2ec2bfe71e657bd1c810293289d (patch)
tree2e28c18413e23374a8268847d2b1df16cf6604bb /libappstream-glib/as-release.c
parent267d9657d565f1cee7fd6e5c4c302883f7d4a356 (diff)
downloadappstream-glib-18111df9cd7dd2ec2bfe71e657bd1c810293289d.tar.gz
If locale is unspecified use the default user LANG choice
Diffstat (limited to 'libappstream-glib/as-release.c')
-rw-r--r--libappstream-glib/as-release.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libappstream-glib/as-release.c b/libappstream-glib/as-release.c
index f75fec6..b7e1e5d 100644
--- a/libappstream-glib/as-release.c
+++ b/libappstream-glib/as-release.c
@@ -123,9 +123,7 @@ const gchar *
as_release_get_description (AsRelease *release, const gchar *locale)
{
AsReleasePrivate *priv = GET_PRIVATE (release);
- if (locale == NULL)
- locale = "C";
- return g_hash_table_lookup (priv->descriptions, locale);
+ return as_hash_lookup_by_locale (priv->descriptions, locale);
}
/**