summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lang/english.txt5
-rw-r--r--src/settings_gui.cpp1
-rw-r--r--src/table/settings.ini4
3 files changed, 10 insertions, 0 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index b64df1757..3a71d92dd 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -937,11 +937,13 @@ STR_GAME_OPTIONS_TOWN_NAME_CATALAN :Catalan
STR_GAME_OPTIONS_AUTOSAVE_FRAME :{BLACK}Autosave
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_TOOLTIP :{BLACK}Select interval between automatic game saves
+############ start of autosave dropdown
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_OFF :Off
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_EVERY_1_MONTH :Every month
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_EVERY_3_MONTHS :Every 3 months
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_EVERY_6_MONTHS :Every 6 months
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_EVERY_12_MONTHS :Every 12 months
+############ end of autosave dropdown
STR_GAME_OPTIONS_LANGUAGE :{BLACK}Language
STR_GAME_OPTIONS_LANGUAGE_TOOLTIP :{BLACK}Select the interface language to use
@@ -1332,6 +1334,9 @@ STR_CONFIG_SETTING_RIGHT_MOUSE_BTN_EMU_OFF :Off
STR_CONFIG_SETTING_LEFT_MOUSE_BTN_SCROLLING :Left-click scrolling: {STRING2}
STR_CONFIG_SETTING_LEFT_MOUSE_BTN_SCROLLING_HELPTEXT :Enable scrolling the map by dragging it with the left mouse button. This is especially useful when using a touch-screen for scrolling
+STR_CONFIG_SETTING_AUTOSAVE :Autosave: {STRING2}
+STR_CONFIG_SETTING_AUTOSAVE_HELPTEXT :Select interval between automatic game saves
+
STR_CONFIG_SETTING_DATE_FORMAT_IN_SAVE_NAMES :Use the {STRING2} date format for savegame names
STR_CONFIG_SETTING_DATE_FORMAT_IN_SAVE_NAMES_HELPTEXT :Format of the date in save game filenames
STR_CONFIG_SETTING_DATE_FORMAT_IN_SAVE_NAMES_LONG :long (31st Dec 2008)
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 496e5ca3b..81713baca 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -1462,6 +1462,7 @@ static SettingEntry _settings_interface[] = {
SettingEntry(&_settings_interface_general_page, STR_CONFIG_SETTING_INTERFACE_GENERAL),
SettingEntry(&_settings_interface_viewports_page, STR_CONFIG_SETTING_INTERFACE_VIEWPORTS),
SettingEntry(&_settings_interface_construction_page, STR_CONFIG_SETTING_INTERFACE_CONSTRUCTION),
+ SettingEntry("gui.autosave"),
SettingEntry("gui.toolbar_pos"),
SettingEntry("gui.statusbar_pos"),
SettingEntry("gui.prefer_teamchat"),
diff --git a/src/table/settings.ini b/src/table/settings.ini
index c201d1e40..437c07b17 100644
--- a/src/table/settings.ini
+++ b/src/table/settings.ini
@@ -2479,9 +2479,13 @@ cat = SC_BASIC
var = gui.autosave
type = SLE_UINT8
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
+guiflags = SGF_MULTISTRING
def = 1
max = 4
full = _autosave_interval
+str = STR_CONFIG_SETTING_AUTOSAVE
+strhelp = STR_CONFIG_SETTING_AUTOSAVE_HELPTEXT
+strval = STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_OFF
cat = SC_BASIC
[SDTC_BOOL]