converting string to ngettext
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 2 Mar 2005 18:14:51 +0000 (18:14 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 2 Mar 2005 18:14:51 +0000 (18:14 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8927 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/options/folder.php

index dc3edb6f110e725c7bd975748ebc6be1b6c1d4b1..b09abcb9719641de566680d5c86d4d9e96bb87ea 100644 (file)
@@ -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(