From a29bbb1e1f8d6525746dd31cd5e47159d896cc84 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 12 Aug 2009 01:28:11 +0000 Subject: (svn r17157) -Add: localised decimal separator --- src/table/settings.h | 1 + src/table/strgen_tables.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/table') diff --git a/src/table/settings.h b/src/table/settings.h index c3380cca5..5357db9e8 100644 --- a/src/table/settings.h +++ b/src/table/settings.h @@ -512,6 +512,7 @@ const SettingDesc _settings[] = { SDT_CONDOMANY(GameSettings, locale.units, SLE_UINT8, 97, SL_MAX_VERSION, N, 0, 1, 2, _locale_units, STR_NULL, NULL, NULL), SDT_CONDSTR(GameSettings, locale.digit_group_separator, SLE_STRQ,118, SL_MAX_VERSION, N, 0, NULL, STR_NULL, NULL), SDT_CONDSTR(GameSettings, locale.digit_group_separator_currency, SLE_STRQ,118, SL_MAX_VERSION, N, 0, NULL, STR_NULL, NULL), + SDT_CONDSTR(GameSettings, locale.digit_decimal_separator, SLE_STRQ,126, SL_MAX_VERSION, N, 0, NULL, STR_NULL, NULL), /***************************************************************************/ /* Unsaved setting variables. */ diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h index 2af9e6a3b..49f3fad22 100644 --- a/src/table/strgen_tables.h +++ b/src/table/strgen_tables.h @@ -186,6 +186,7 @@ static const char *_pragmas[][4] = { { "textdir", "tl", "ltr", "Text direction. Either ltr (left-to-right) or rtl (right-to-left)" }, { "digitsep", "td", ",", "Digit grouping separator for non-currency numbers" }, { "digitsepcur", "td", ",", "Digit grouping seprarator for currency numbers" }, + { "decimalsep", "td", ".", "Decimal separator" }, { "winlangid", "x2", "0x0000", "Language ID for Windows" }, { "grflangid", "x1", "0x00", "Language ID for NewGRFs" }, { "gender", "tag", "", "List of genders" }, -- cgit v1.2.3-70-g09d2