adding option that should control translation of special folders
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 29 May 2006 17:12:54 +0000 (17:12 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 29 May 2006 17:12:54 +0000 (17:12 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11169 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/load_prefs.php
include/options/folder.php

index 626c07ccc501d32eab19f3cbfe9afaa48b87c96d..47a0a502f01e8150d8083d2b6a437cc39677ce91 100644 (file)
@@ -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 */
 
index 451def5a0864addb48397a1ae0d1347e1bc4f249..844ce54c166d2ed3cebe17be55748c02c078451d 100644 (file)
@@ -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"),