summaryrefslogtreecommitdiffstats
path: root/subsurface-core/pref.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2016-01-22 16:55:03 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-24 21:26:45 -0800
commitc3137cf07c6947b162d3fae9cb580fe1efc78ec7 (patch)
tree28b907481dd71effc0dbd266c8b920785565c062 /subsurface-core/pref.h
parent15fece7da2c8e9c78fe6c61dbcea0c0b0654b6a8 (diff)
downloadsubsurface-c3137cf07c6947b162d3fae9cb580fe1efc78ec7.tar.gz
Language Settings Wrapper
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/pref.h')
-rw-r--r--subsurface-core/pref.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/subsurface-core/pref.h b/subsurface-core/pref.h
index 1e58a6ace..be684fd90 100644
--- a/subsurface-core/pref.h
+++ b/subsurface-core/pref.h
@@ -32,6 +32,11 @@ typedef struct {
enum taxonomy_category category[3];
} geocoding_prefs_t;
+typedef struct {
+ const char *language;
+ bool use_system_language;
+} locale_prefs_t;
+
enum deco_mode {
BUEHLMANN,
RECREATIONAL,
@@ -126,6 +131,7 @@ struct preferences {
int time_threshold;
int distance_threshold;
bool git_local_only;
+ locale_prefs_t locale; //: TODO: move the rest of locale based info here.
};
enum unit_system_values {
METRIC,