[commits] [Wiki] changed: AltH5Imp6Quota

Wiki Guest wikiguest at horde.org
Thu Jan 17 14:13:11 UTC 2013


guest [146.164.76.15]  Thu, 17 Jan 2013 14:13:11 +0000

Modified page: http://wiki.horde.org/AltH5Imp6Quota
New Revision:  2
Change log:  English version

@@ -25,14 +25,14 @@
  || imp/lib/Ui/Quota.php || quota ||
  || imp/lib/Ajax/Queue.php || m, p, l, add ||
  || imp/js/dimpbase.js || quotaV, quotaH, quotaCallback ||

-//Last updated 2013-01-16//
+//Last updated 2013-01-17//
  ----
  +++ Descriptions
  ----
  ++++ Configuration example
-(imp/config/backends.php)
+#bckend(imp/config/backends.php)
  * Two partitions (file systems)
  > See Comand.php bellow for parameters.
  > Quota command must support "w" (do not wrap).

@@ -51,9 +51,9 @@
      ),
      ...
  );
  </code>
-----
+----#cmmd
  ++++ imp/lib/Quota/Command.php
  * Have INBOX and IMAP folders in different partitions and quota  
enabled on them.
  * Function IMP_Quota_command accepts 2 new parameters:
  > '**dev_inbx**' (string) [**REQUIRED**] User´s INBOX file system device.
@@ -285,9 +285,9 @@
  }

  </code>
  ----
-++++ imp/lib/Quota.php
+++++ #lqt imp/lib/Quota.php
  * New formats.
  > Only short formats.

  Backup your original imp/lib/Quota.php and replace function  
construct with the following code:
@@ -298,18 +298,18 @@

          $this->_params['format'] = array(
              'shortv' => isset($this->_params['format']['short'])
                  ? $this->_params['format']['short']
-                : _("Entrada: %.0f%% of %.1f %s"),
+                : _("Inbox: %.0f%% of %.1f %s"),
              'shorth' => isset($this->_params['format']['shorth'])
                  ? $this->_params['format']['shorth']
-                : _(" - Pastas: %.0f%% de %.1f %s"),
+                : _(" - Folders: %.0f%% de %.1f %s"),
              'nolimit_shortv' =>  
isset($this->_params['format']['nolimit_short'])
                  ? $this->_params['format']['nolimit_short']
-                : _("Entrada: %.0f %s"),
+                : _("Inbox: %.0f %s"),
              'nolimit_shorth' =>  
isset($this->_params['format']['nolimit_shorth'])
                  ? $this->_params['format']['nolimit_shorth']
-                : _(" - Pastas: %.1f %s"),
+                : _(" - Folders: %.1f %s"),
          );
      }
  </code>
  ----
@@ -441,9 +441,9 @@
              if ($quota['usagehome'] != 0) {
                  $quota['usagehome'] = $quota['usagehome'] / $calc;
  		        $ret['messagehome'] = sprintf($strings['nolimit_shorth'],  
$quota['usagehome'], $unit);
              } else {
-                $ret['messagehome'] = _("Sem limite");
+                $ret['messagehome'] = _("No limit");
              }
          }

          /* Quota for dev_inbx */
@@ -551,28 +551,28 @@
              if (round($quotadata['percentvar']) >= 100) {
                  $mvclasse = 'horde.error';

                  if (ereg("none", $quotadata['gracevar'])) {
-			        $merrov = sprintf("Entrada acima do limite. O prazo de expirou.");
+			        $merrov = sprintf("Inbox above limit. Grace time expired.");
                  } else {
-				    $merrov = sprintf("Entrada acima do limite. Resolva em %s  
dia(s)", $quotadata['gracevar']);
+				    $merrov = sprintf("Inbox above limit. Solve in %s day(s)",  
$quotadata['gracevar']);
                  }
              } else if ($quotadata['percentvar'] >= 90) {

-                    $merrov = sprintf("Entrada acima de 90%%.");
+                    $merrov = sprintf("Inbox above 90%%.");
                      $mvclasse = 'horde.warning';
              }
              /* Quota for dev_fldrs */
              $merroh = null;
              if (round($quotadata['percenthome'] >= 100)) {
                  $mhclasse = 'horde.error';
                  if (ereg("none", $quotadata['gracehome'])) {
-                    $merroh = sprintf("Pastas acima do limite. O  
prazo expirou.");
+                    $merroh = sprintf("Folders above limit. Grace  
time expired.");
                  } else {
-                    $merroh = sprintf("Pastas acima do limite.  
Resolva em %s dia(s)", $quotadata['gracehome']);
+                    $merroh = sprintf("Folders above limit. Solve in  
%s day(s)", $quotadata['gracehome']);
                  }
              } elseif ($quotadata['percenthome'] >= 90) {
-                $merroh = sprintf("Pastas acima de 90%%.");
+                $merroh = sprintf("Folders above 90%%.");
                  $mhclasse = 'horde.warning';
              }

              if (!empty($merrov)) {



More information about the commits mailing list