Commit 8a0d5b9a authored by Jürg Billeter's avatar Jürg Billeter Committed by Martyn Russell

tracker-miner-applications: Add miner_applications_locale_get_current

No functional change.
parent 41a81a1e
......@@ -57,6 +57,23 @@ miner_applications_locale_get_previous (const gchar *locale_file)
return locale;
}
static gchar *
miner_applications_locale_get_current (void)
{
gchar *current_locale;
#ifdef HAVE_MEEGOTOUCH
/* If we have meegotouch enabled, take the correct locale as the one from
* meegotouch. */
current_locale = tracker_miner_applications_meego_get_locale ();
#else
/* Get current tracker LANG locale */
current_locale = tracker_locale_get (TRACKER_LOCALE_LANGUAGE);
#endif
return current_locale;
}
static void
miner_applications_locale_set_current (const gchar *locale_file,
const gchar *locale)
......@@ -92,14 +109,7 @@ tracker_miner_applications_locale_changed (void)
NULL);
filename = g_build_filename (data_dir, TRACKER_MINER_APPLICATIONS_LOCALE_FILE, NULL);
#ifdef HAVE_MEEGOTOUCH
/* If we have meegotouch enabled, take the correct locale as the one from
* meegotouch. */
current_locale = tracker_miner_applications_meego_get_locale ();
#else
/* Get current tracker LANG locale */
current_locale = tracker_locale_get (TRACKER_LOCALE_LANGUAGE);
#endif
current_locale = miner_applications_locale_get_current ();
/* Get previous locale */
previous_locale = miner_applications_locale_get_previous (filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment