Use the proper translation for fetching country names and improve mcc detection.
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 11 May 2009 09:51:10 +0000 (11:51 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 11 May 2009 09:54:11 +0000 (11:54 +0200)
commit22f687bc1a5543f49b3ff3acdb53e00fe6c165a0
tree8bafdb71b82a337c634401ce220376fd9b9d7fef
parent2cdfabbab55f149d58e6990fccae90456b6d059d
Use the proper translation for fetching country names and improve mcc detection.

* src/modest-utils.c
  (modest_utils_open_mcc_mapping): allow fetching
  using LC_MESSAGES or LANG. It uses g_strsplit with ":" to try with
  the mcc files for each of the languages or regions you may have
  selected.
  (modest_utils_fill_country_model): first fetch the mcc for LANG to
  detect the current region. Then fetch the mcc for LC_MESSAGES for
  filling the countries list in the proper language (fixes NB#110057).
src/hildon2/modest-platform.c
src/modest-utils.c
src/modest-utils.h