diff --git a/docs/NEWS b/docs/NEWS index 54ecd242..ab3f39f5 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -13,6 +13,8 @@ Version 2.0-beta4 / RC? () * ImageMagick now can get parameters to generate thumbnails, see serendipity_config.inc.php for example values + * Allow to enable/disable the new autosave feature in personal + preferences (Issue #213) Version 2.0-beta3 (July 25th, 2014) ------------------------------------------------------------------------ diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index 674a3f6a..4a53b7cd 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -1056,6 +1056,7 @@ function serendipity_smarty_init($vars = array()) { 'category_info' => $category_info, 'template' => $serendipity['template'], 'template_backend' => $serendipity['template_backend'], + 'use_autosave' => (serendipity_db_bool($serendipity['use_autosave']) ? 'true' : 'false'), 'dateRange' => (!empty($serendipity['range']) ? $serendipity['range'] : array()) ) diff --git a/include/tpl/config_personal.inc.php b/include/tpl/config_personal.inc.php index 329d8451..5ba09190 100644 --- a/include/tpl/config_personal.inc.php +++ b/include/tpl/config_personal.inc.php @@ -161,6 +161,14 @@ 'default' => false, 'permission' => 'personalConfiguration', 'flags' => array('config')), + + array('var' => 'use_autosave', + 'title' => CONF_USE_AUTOSAVE, + 'description' => CONF_USE_AUTOSAVE_DESC, + 'type' => 'bool', + 'default' => true, + 'permission' => 'personalConfiguration', + 'flags' => array('config')), )); return $res; diff --git a/lang/UTF-8/plugin_lang.php b/lang/UTF-8/plugin_lang.php index cf2d8040..609e3920 100644 --- a/lang/UTF-8/plugin_lang.php +++ b/lang/UTF-8/plugin_lang.php @@ -116,3 +116,5 @@ foreach($const['missing'] AS $file => $constants) { @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_bg.inc.php b/lang/UTF-8/serendipity_lang_bg.inc.php index 47fef6d6..ee44e682 100644 --- a/lang/UTF-8/serendipity_lang_bg.inc.php +++ b/lang/UTF-8/serendipity_lang_bg.inc.php @@ -1058,3 +1058,5 @@ $i18n_filename_to = array('-', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_cn.inc.php b/lang/UTF-8/serendipity_lang_cn.inc.php index 55a0746c..ed409a58 100644 --- a/lang/UTF-8/serendipity_lang_cn.inc.php +++ b/lang/UTF-8/serendipity_lang_cn.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_cs.inc.php b/lang/UTF-8/serendipity_lang_cs.inc.php index 9b921bc6..595f278a 100644 --- a/lang/UTF-8/serendipity_lang_cs.inc.php +++ b/lang/UTF-8/serendipity_lang_cs.inc.php @@ -1096,3 +1096,5 @@ $i18n_filename_to = array ( @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_cz.inc.php b/lang/UTF-8/serendipity_lang_cz.inc.php index 1e7b99f7..f108f8d6 100644 --- a/lang/UTF-8/serendipity_lang_cz.inc.php +++ b/lang/UTF-8/serendipity_lang_cz.inc.php @@ -1096,3 +1096,5 @@ $i18n_filename_to = array ( @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_da.inc.php b/lang/UTF-8/serendipity_lang_da.inc.php index 140497ab..4acda140 100644 --- a/lang/UTF-8/serendipity_lang_da.inc.php +++ b/lang/UTF-8/serendipity_lang_da.inc.php @@ -1065,3 +1065,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_de.inc.php b/lang/UTF-8/serendipity_lang_de.inc.php index 8283e4db..c8e3a69a 100644 --- a/lang/UTF-8/serendipity_lang_de.inc.php +++ b/lang/UTF-8/serendipity_lang_de.inc.php @@ -1070,3 +1070,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_en.inc.php b/lang/UTF-8/serendipity_lang_en.inc.php index d2ff4940..07a3f15b 100644 --- a/lang/UTF-8/serendipity_lang_en.inc.php +++ b/lang/UTF-8/serendipity_lang_en.inc.php @@ -1067,3 +1067,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_es.inc.php b/lang/UTF-8/serendipity_lang_es.inc.php index 790f1db3..f9b5379a 100644 --- a/lang/UTF-8/serendipity_lang_es.inc.php +++ b/lang/UTF-8/serendipity_lang_es.inc.php @@ -1084,3 +1084,5 @@ Melvin TODO [20060128]: What spanish word do we use for "referrers" ?? @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_fa.inc.php b/lang/UTF-8/serendipity_lang_fa.inc.php index 544fe456..75538d47 100644 --- a/lang/UTF-8/serendipity_lang_fa.inc.php +++ b/lang/UTF-8/serendipity_lang_fa.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_fi.inc.php b/lang/UTF-8/serendipity_lang_fi.inc.php index db0ede3e..a28acdf0 100644 --- a/lang/UTF-8/serendipity_lang_fi.inc.php +++ b/lang/UTF-8/serendipity_lang_fi.inc.php @@ -1066,3 +1066,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_fr.inc.php b/lang/UTF-8/serendipity_lang_fr.inc.php index 249e3355..c9c40bad 100644 --- a/lang/UTF-8/serendipity_lang_fr.inc.php +++ b/lang/UTF-8/serendipity_lang_fr.inc.php @@ -1073,3 +1073,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_hu.inc.php b/lang/UTF-8/serendipity_lang_hu.inc.php index 5cb1cec8..be6001c7 100644 --- a/lang/UTF-8/serendipity_lang_hu.inc.php +++ b/lang/UTF-8/serendipity_lang_hu.inc.php @@ -1064,3 +1064,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_is.inc.php b/lang/UTF-8/serendipity_lang_is.inc.php index 4c7acae4..c787f896 100644 --- a/lang/UTF-8/serendipity_lang_is.inc.php +++ b/lang/UTF-8/serendipity_lang_is.inc.php @@ -1066,3 +1066,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_it.inc.php b/lang/UTF-8/serendipity_lang_it.inc.php index 2d921d86..37e024a3 100644 --- a/lang/UTF-8/serendipity_lang_it.inc.php +++ b/lang/UTF-8/serendipity_lang_it.inc.php @@ -1069,3 +1069,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_ja.inc.php b/lang/UTF-8/serendipity_lang_ja.inc.php index 3feb1cc8..44d36e2f 100644 --- a/lang/UTF-8/serendipity_lang_ja.inc.php +++ b/lang/UTF-8/serendipity_lang_ja.inc.php @@ -1070,3 +1070,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_ko.inc.php b/lang/UTF-8/serendipity_lang_ko.inc.php index dfdaf4c6..28089cf1 100644 --- a/lang/UTF-8/serendipity_lang_ko.inc.php +++ b/lang/UTF-8/serendipity_lang_ko.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_nl.inc.php b/lang/UTF-8/serendipity_lang_nl.inc.php index e348c152..b55a5d46 100644 --- a/lang/UTF-8/serendipity_lang_nl.inc.php +++ b/lang/UTF-8/serendipity_lang_nl.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_no.inc.php b/lang/UTF-8/serendipity_lang_no.inc.php index 5225c4c3..fe6e9764 100644 --- a/lang/UTF-8/serendipity_lang_no.inc.php +++ b/lang/UTF-8/serendipity_lang_no.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_pl.inc.php b/lang/UTF-8/serendipity_lang_pl.inc.php index 8af13eeb..85d0228d 100644 --- a/lang/UTF-8/serendipity_lang_pl.inc.php +++ b/lang/UTF-8/serendipity_lang_pl.inc.php @@ -1064,3 +1064,5 @@ $i18n_filename_to = array('_', 'a', 'A', 'a', 'A', 'b', 'B', 'c', 'C', 'c', 'C @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_pt.inc.php b/lang/UTF-8/serendipity_lang_pt.inc.php index 41278005..c3c2a4c9 100644 --- a/lang/UTF-8/serendipity_lang_pt.inc.php +++ b/lang/UTF-8/serendipity_lang_pt.inc.php @@ -1070,3 +1070,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_pt_PT.inc.php b/lang/UTF-8/serendipity_lang_pt_PT.inc.php index de7f39e2..9d94374f 100644 --- a/lang/UTF-8/serendipity_lang_pt_PT.inc.php +++ b/lang/UTF-8/serendipity_lang_pt_PT.inc.php @@ -1077,3 +1077,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_ro.inc.php b/lang/UTF-8/serendipity_lang_ro.inc.php index c6d80130..8c86ed64 100644 --- a/lang/UTF-8/serendipity_lang_ro.inc.php +++ b/lang/UTF-8/serendipity_lang_ro.inc.php @@ -1067,3 +1067,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_ru.inc.php b/lang/UTF-8/serendipity_lang_ru.inc.php index 1625150d..f95c0bb6 100644 --- a/lang/UTF-8/serendipity_lang_ru.inc.php +++ b/lang/UTF-8/serendipity_lang_ru.inc.php @@ -1069,3 +1069,5 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_sa.inc.php b/lang/UTF-8/serendipity_lang_sa.inc.php index 1901f076..a88fb4d2 100644 --- a/lang/UTF-8/serendipity_lang_sa.inc.php +++ b/lang/UTF-8/serendipity_lang_sa.inc.php @@ -985,3 +985,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_se.inc.php b/lang/UTF-8/serendipity_lang_se.inc.php index 1f3879c3..e23a479b 100644 --- a/lang/UTF-8/serendipity_lang_se.inc.php +++ b/lang/UTF-8/serendipity_lang_se.inc.php @@ -1066,3 +1066,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_sk.inc.php b/lang/UTF-8/serendipity_lang_sk.inc.php index 1305095c..1542df3a 100644 --- a/lang/UTF-8/serendipity_lang_sk.inc.php +++ b/lang/UTF-8/serendipity_lang_sk.inc.php @@ -1056,3 +1056,5 @@ $i18n_filename_to = array ( @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_ta.inc.php b/lang/UTF-8/serendipity_lang_ta.inc.php index 6f74ab74..c768c289 100644 --- a/lang/UTF-8/serendipity_lang_ta.inc.php +++ b/lang/UTF-8/serendipity_lang_ta.inc.php @@ -1065,3 +1065,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_tn.inc.php b/lang/UTF-8/serendipity_lang_tn.inc.php index 7ff7f443..15670840 100644 --- a/lang/UTF-8/serendipity_lang_tn.inc.php +++ b/lang/UTF-8/serendipity_lang_tn.inc.php @@ -1070,3 +1070,5 @@ $i18n_unknown = 'tw'; @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_tr.inc.php b/lang/UTF-8/serendipity_lang_tr.inc.php index f2cae06d..7022359b 100644 --- a/lang/UTF-8/serendipity_lang_tr.inc.php +++ b/lang/UTF-8/serendipity_lang_tr.inc.php @@ -1070,3 +1070,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_tw.inc.php b/lang/UTF-8/serendipity_lang_tw.inc.php index 41774369..626d1407 100644 --- a/lang/UTF-8/serendipity_lang_tw.inc.php +++ b/lang/UTF-8/serendipity_lang_tw.inc.php @@ -1071,3 +1071,5 @@ $i18n_unknown = 'tw'; @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/UTF-8/serendipity_lang_zh.inc.php b/lang/UTF-8/serendipity_lang_zh.inc.php index fe74dcb9..512f7531 100644 --- a/lang/UTF-8/serendipity_lang_zh.inc.php +++ b/lang/UTF-8/serendipity_lang_zh.inc.php @@ -1066,3 +1066,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/addlang.txt b/lang/addlang.txt index 1ffefcf9..80d826ec 100644 --- a/lang/addlang.txt +++ b/lang/addlang.txt @@ -1,3 +1,2 @@ -@define('NO_UPDATES', 'No plugin updates are available'); -@define('PLUGIN_GROUP_ALL', 'All categories'); - +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/plugin_lang.php b/lang/plugin_lang.php index cf2d8040..609e3920 100644 --- a/lang/plugin_lang.php +++ b/lang/plugin_lang.php @@ -116,3 +116,5 @@ foreach($const['missing'] AS $file => $constants) { @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_bg.inc.php b/lang/serendipity_lang_bg.inc.php index 62ad574b..e9f65215 100644 --- a/lang/serendipity_lang_bg.inc.php +++ b/lang/serendipity_lang_bg.inc.php @@ -1058,3 +1058,5 @@ $i18n_filename_to = array('-', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_cn.inc.php b/lang/serendipity_lang_cn.inc.php index 55a0746c..ed409a58 100644 --- a/lang/serendipity_lang_cn.inc.php +++ b/lang/serendipity_lang_cn.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_cs.inc.php b/lang/serendipity_lang_cs.inc.php index 6d60fdc6..4c7756a2 100644 --- a/lang/serendipity_lang_cs.inc.php +++ b/lang/serendipity_lang_cs.inc.php @@ -1096,3 +1096,5 @@ $i18n_filename_to = array ( @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_cz.inc.php b/lang/serendipity_lang_cz.inc.php index ae5d274b..61fbdf3b 100644 --- a/lang/serendipity_lang_cz.inc.php +++ b/lang/serendipity_lang_cz.inc.php @@ -1096,3 +1096,5 @@ $i18n_filename_to = array ( @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_da.inc.php b/lang/serendipity_lang_da.inc.php index 371180d7..bfcbf219 100644 --- a/lang/serendipity_lang_da.inc.php +++ b/lang/serendipity_lang_da.inc.php @@ -1065,3 +1065,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_de.inc.php b/lang/serendipity_lang_de.inc.php index a5ecbf35..73f4d1cf 100644 --- a/lang/serendipity_lang_de.inc.php +++ b/lang/serendipity_lang_de.inc.php @@ -1070,3 +1070,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_en.inc.php b/lang/serendipity_lang_en.inc.php index 3884826b..c8ead8c7 100644 --- a/lang/serendipity_lang_en.inc.php +++ b/lang/serendipity_lang_en.inc.php @@ -1067,3 +1067,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_es.inc.php b/lang/serendipity_lang_es.inc.php index a251464a..3cfe6217 100644 --- a/lang/serendipity_lang_es.inc.php +++ b/lang/serendipity_lang_es.inc.php @@ -1084,3 +1084,5 @@ Melvin TODO [20060128]: What spanish word do we use for "referrers" ?? @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_fa.inc.php b/lang/serendipity_lang_fa.inc.php index 544fe456..75538d47 100644 --- a/lang/serendipity_lang_fa.inc.php +++ b/lang/serendipity_lang_fa.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_fi.inc.php b/lang/serendipity_lang_fi.inc.php index db0ede3e..a28acdf0 100644 --- a/lang/serendipity_lang_fi.inc.php +++ b/lang/serendipity_lang_fi.inc.php @@ -1066,3 +1066,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_fr.inc.php b/lang/serendipity_lang_fr.inc.php index 454bb474..27973f65 100644 --- a/lang/serendipity_lang_fr.inc.php +++ b/lang/serendipity_lang_fr.inc.php @@ -1073,3 +1073,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_hu.inc.php b/lang/serendipity_lang_hu.inc.php index 3306a7a5..bd7d7178 100644 --- a/lang/serendipity_lang_hu.inc.php +++ b/lang/serendipity_lang_hu.inc.php @@ -1064,3 +1064,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_is.inc.php b/lang/serendipity_lang_is.inc.php index d56b08c3..fe42dfc4 100644 --- a/lang/serendipity_lang_is.inc.php +++ b/lang/serendipity_lang_is.inc.php @@ -1066,3 +1066,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_it.inc.php b/lang/serendipity_lang_it.inc.php index 64c4dc48..2340c24d 100644 --- a/lang/serendipity_lang_it.inc.php +++ b/lang/serendipity_lang_it.inc.php @@ -1069,3 +1069,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_ja.inc.php b/lang/serendipity_lang_ja.inc.php index 3feb1cc8..44d36e2f 100644 --- a/lang/serendipity_lang_ja.inc.php +++ b/lang/serendipity_lang_ja.inc.php @@ -1070,3 +1070,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_ko.inc.php b/lang/serendipity_lang_ko.inc.php index dfdaf4c6..28089cf1 100644 --- a/lang/serendipity_lang_ko.inc.php +++ b/lang/serendipity_lang_ko.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_nl.inc.php b/lang/serendipity_lang_nl.inc.php index 295fdcf3..dafed512 100644 --- a/lang/serendipity_lang_nl.inc.php +++ b/lang/serendipity_lang_nl.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_no.inc.php b/lang/serendipity_lang_no.inc.php index 36a5ff11..077be522 100644 --- a/lang/serendipity_lang_no.inc.php +++ b/lang/serendipity_lang_no.inc.php @@ -1068,3 +1068,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_pl.inc.php b/lang/serendipity_lang_pl.inc.php index 4c193b64..3024806c 100644 --- a/lang/serendipity_lang_pl.inc.php +++ b/lang/serendipity_lang_pl.inc.php @@ -1064,3 +1064,5 @@ $i18n_filename_to = array('_', 'a', 'A', 'a', 'A', 'b', 'B', 'c', 'C', 'c', 'C @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_pt.inc.php b/lang/serendipity_lang_pt.inc.php index ecb394a8..5c44b6a3 100644 --- a/lang/serendipity_lang_pt.inc.php +++ b/lang/serendipity_lang_pt.inc.php @@ -1070,3 +1070,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_pt_PT.inc.php b/lang/serendipity_lang_pt_PT.inc.php index 2ed710dc..0ec4c984 100644 --- a/lang/serendipity_lang_pt_PT.inc.php +++ b/lang/serendipity_lang_pt_PT.inc.php @@ -1077,3 +1077,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_ro.inc.php b/lang/serendipity_lang_ro.inc.php index c6d80130..8c86ed64 100644 --- a/lang/serendipity_lang_ro.inc.php +++ b/lang/serendipity_lang_ro.inc.php @@ -1067,3 +1067,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_ru.inc.php b/lang/serendipity_lang_ru.inc.php index 1625150d..f95c0bb6 100644 --- a/lang/serendipity_lang_ru.inc.php +++ b/lang/serendipity_lang_ru.inc.php @@ -1069,3 +1069,5 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_sa.inc.php b/lang/serendipity_lang_sa.inc.php index ebea6acf..a52611a0 100644 --- a/lang/serendipity_lang_sa.inc.php +++ b/lang/serendipity_lang_sa.inc.php @@ -985,3 +985,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_se.inc.php b/lang/serendipity_lang_se.inc.php index 2af570a9..644cf084 100644 --- a/lang/serendipity_lang_se.inc.php +++ b/lang/serendipity_lang_se.inc.php @@ -1066,3 +1066,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_sk.inc.php b/lang/serendipity_lang_sk.inc.php index 1305095c..1542df3a 100644 --- a/lang/serendipity_lang_sk.inc.php +++ b/lang/serendipity_lang_sk.inc.php @@ -1056,3 +1056,5 @@ $i18n_filename_to = array ( @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_ta.inc.php b/lang/serendipity_lang_ta.inc.php index 6f74ab74..c768c289 100644 --- a/lang/serendipity_lang_ta.inc.php +++ b/lang/serendipity_lang_ta.inc.php @@ -1065,3 +1065,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_tn.inc.php b/lang/serendipity_lang_tn.inc.php index 7ff7f443..15670840 100644 --- a/lang/serendipity_lang_tn.inc.php +++ b/lang/serendipity_lang_tn.inc.php @@ -1070,3 +1070,5 @@ $i18n_unknown = 'tw'; @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_tr.inc.php b/lang/serendipity_lang_tr.inc.php index f2cae06d..7022359b 100644 --- a/lang/serendipity_lang_tr.inc.php +++ b/lang/serendipity_lang_tr.inc.php @@ -1070,3 +1070,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_tw.inc.php b/lang/serendipity_lang_tw.inc.php index 85cdcee1..145a5857 100644 --- a/lang/serendipity_lang_tw.inc.php +++ b/lang/serendipity_lang_tw.inc.php @@ -1071,3 +1071,5 @@ $i18n_unknown = 'tw'; @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/lang/serendipity_lang_zh.inc.php b/lang/serendipity_lang_zh.inc.php index 2a355c00..cb2e630c 100644 --- a/lang/serendipity_lang_zh.inc.php +++ b/lang/serendipity_lang_zh.inc.php @@ -1066,3 +1066,5 @@ @define('NO_UPDATES', 'No plugin updates are available'); @define('PLUGIN_GROUP_ALL', 'All categories'); +@define('CONF_USE_AUTOSAVE', 'Enable autosave-feature'); +@define('CONF_USE_AUTOSAVE_DESC', 'When enabled, the text you enter into blog entries will be periodically saved in your browser\'s session storage. If your browser crashes during writing, the next time you create a new entry, the text will be restored from this autosave.'); diff --git a/serendipity_config.inc.php b/serendipity_config.inc.php index 6cf8b44a..2a78cab9 100644 --- a/serendipity_config.inc.php +++ b/serendipity_config.inc.php @@ -446,6 +446,10 @@ if (isset($_SESSION['serendipityEmail'])) { $serendipity['email'] = $_SESSION['serendipityEmail']; } +if (!isset($serendipity['use_autosave'])) { + $serendipity['use_autosave'] = true; +} + // You can set parameters which ImageMagick should use to generate the thumbnails // by default, thumbs will get a little more brightness and saturation (modulate) // an unsharp-mask (unsharp) diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index 80368210..8a8f5e32 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -661,7 +661,7 @@ } } - if(Modernizr.indexeddb) { + if(Modernizr.indexeddb && {$use_autosave}) { serendipity.startEntryEditorCache = function() { if ($('textarea[name="serendipity[body]"]').val() == "") { serendipity.getCached("serendipity[body]", function(res) { @@ -813,7 +813,7 @@ $(function() { if(!Modernizr.inputtypes.date) { $('#serendipityNewTimestamp').val($('#serendipityNewTimestamp').val().replace("T", " ")); } - if(Modernizr.indexeddb) { + if(Modernizr.indexeddb && {$use_autosave}) { serendipity.startEntryEditorCache(); } }