projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Templates
[squirrelmail.git]
/
include
/
options
/
folder.php
diff --git
a/include/options/folder.php
b/include/options/folder.php
index f4b5624a6a7136002462ce749afe0b55e9d322f6..b09abcb9719641de566680d5c86d4d9e96bb87ea 100644
(file)
--- a/
include/options/folder.php
+++ b/
include/options/folder.php
@@
-131,15
+131,12
@@
function load_optpage_data_folder() {
'posvals' => $left_size_values
);
'posvals' => $left_size_values
);
- $minute_str = _("Minutes");
$left_refresh_values = array(SMPREF_NONE => _("Never"));
$left_refresh_values = array(SMPREF_NONE => _("Never"));
- foreach (array(30,60,120,180,300,600) as $lr_val) {
+ foreach (array(30,60,120,180,300,600
,1200
) as $lr_val) {
if ($lr_val < 60) {
$left_refresh_values[$lr_val] = "$lr_val " . _("Seconds");
if ($lr_val < 60) {
$left_refresh_values[$lr_val] = "$lr_val " . _("Seconds");
- } else if ($lr_val == 60) {
- $left_refresh_values[$lr_val] = "1 " . _("Minute");
} else {
} else {
- $left_refresh_values[$lr_val] =
($lr_val/60) . " $minute_str"
;
+ $left_refresh_values[$lr_val] =
sprintf(ngettext("%d Minute","%d Minutes",($lr_val/60)),($lr_val/60))
;
}
}
$optvals[SMOPT_GRP_FOLDERLIST][] = array(
}
}
$optvals[SMOPT_GRP_FOLDERLIST][] = array(
@@
-215,6
+212,12
@@
function load_optpage_data_folder() {
9 => '9')
);
9 => '9')
);
+ $optvals[SMOPT_GRP_FOLDERLIST][] = array(
+ 'name' => 'show_only_subscribed_folders',
+ 'caption' => _("Show only subscribed folders"),
+ 'type' => SMOPT_TYPE_BOOLEAN,
+ 'refresh' => SMOPT_REFRESH_FOLDERLIST
+ );
/*** Load the General Options into the array ***/
$optgrps[SMOPT_GRP_FOLDERSELECT] = _("Folder Selection Options");
/*** Load the General Options into the array ***/
$optgrps[SMOPT_GRP_FOLDERSELECT] = _("Folder Selection Options");