From 7652c6511817d7ae09afd320af06ddf763818d72 Mon Sep 17 00:00:00 2001 From: tokul Date: Mon, 29 May 2006 17:12:54 +0000 Subject: [PATCH] adding option that should control translation of special folders git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11169 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/load_prefs.php | 6 +++++- include/options/folder.php | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/load_prefs.php b/include/load_prefs.php index 626c07cc..47a0a502 100644 --- a/include/load_prefs.php +++ b/include/load_prefs.php @@ -398,7 +398,11 @@ $chosen_fontset = getPref($data_dir, $username, 'chosen_fontset', $default_fonts if (! isset($default_fontsize)) $default_fontsize=SMPREF_NONE; $chosen_fontsize = getPref($data_dir, $username, 'chosen_fontsize', $default_fontsize); - +/** + * Controls translation of special folders + * @since 1.5.2 + */ +$translate_special_folders = getPref($data_dir, $username, 'translate_special_folders', SMPREF_OFF); /** Put in a safety net for authentication here, in case a naughty admin didn't run conf.pl when they upgraded */ diff --git a/include/options/folder.php b/include/options/folder.php index 451def5a..844ce54c 100644 --- a/include/options/folder.php +++ b/include/options/folder.php @@ -96,6 +96,13 @@ function load_optpage_data_folder() { 'save' => 'save_option_sent_folder' ); + $optvals[SMOPT_GRP_SPCFOLDER][] = array( + 'name' => 'translate_special_folders', + 'caption' => _("Translate Special Folders"), + 'type' => SMOPT_TYPE_BOOLEAN, + 'refresh' => SMOPT_REFRESH_FOLDERLIST + ); + $optvals[SMOPT_GRP_SPCFOLDER][] = array( 'name' => 'save_reply_with_orig', 'caption' => _("Save Replies with Original Message"), -- 2.25.1