From: tokul Date: Wed, 2 Mar 2005 18:14:51 +0000 (+0000) Subject: converting string to ngettext X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=031b6f72dc48b81514def966e445097a2e470d2b;p=squirrelmail.git converting string to ngettext git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8927 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/options/folder.php b/include/options/folder.php index dc3edb6f..b09abcb9 100644 --- a/include/options/folder.php +++ b/include/options/folder.php @@ -131,15 +131,12 @@ function load_optpage_data_folder() { 'posvals' => $left_size_values ); - $minute_str = _("Minutes"); $left_refresh_values = array(SMPREF_NONE => _("Never")); foreach (array(30,60,120,180,300,600,1200) as $lr_val) { 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 { - $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(