GNOME Bugzilla – Bug 774464
Use ISO_CODES_PREFIX when calling bindtextdomain for ISO_*_DOMAIN
Last modified: 2016-11-15 13:58:35 UTC
In lib/ephy-langs.c, function ephy_langs_bind_iso_domains: bindtextdomain (ISO_639_DOMAIN, LOCALEDIR); bind_textdomain_codeset (ISO_639_DOMAIN, "UTF-8"); bindtextdomain (ISO_3166_DOMAIN, LOCALEDIR); bind_textdomain_codeset (ISO_3166_DOMAIN, "UTF-8"); This will not work if iso-codes and epiphany are installed in different prefixes.
Created attachment 339910 [details] [review] Use ISO_CODES_PREFIX to find localedir of iso-codes This commit makes it possible to find translation data of iso-codes when epiphany and iso-codes are installed in different prefixes, which is common in JHBuild environments. We hardcode share/locale here because iso-codes.pc doesn't have the path of localedir written in it and most users and distributions don't modify the path of localedir.
Review of attachment 339910 [details] [review]: Shame
Attachment 339910 [details] pushed as c1db7fb - Use ISO_CODES_PREFIX to find localedir of iso-codes