[Svn] r3939 - trunk/plugins/managesieve

trac at roundcube.net trac at roundcube.net
Sat Sep 4 14:25:32 CEST 2010


Author: alec
Date: 2010-09-04 07:25:32 -0500 (Sat, 04 Sep 2010)
New Revision: 3939

Modified:
   trunk/plugins/managesieve/Changelog
   trunk/plugins/managesieve/managesieve.php
Log:
- Use localized size units (#1486976)


Modified: trunk/plugins/managesieve/Changelog
===================================================================
--- trunk/plugins/managesieve/Changelog	2010-09-04 08:01:10 UTC (rev 3938)
+++ trunk/plugins/managesieve/Changelog	2010-09-04 12:25:32 UTC (rev 3939)
@@ -1,4 +1,5 @@
 - Fixed import from Avelsieve
+- Use localized size units (#1486976)
 
 * version 2.9 [2010-08-02]
 -----------------------------------------------------------

Modified: trunk/plugins/managesieve/managesieve.php
===================================================================
--- trunk/plugins/managesieve/managesieve.php	2010-09-04 08:01:10 UTC (rev 3938)
+++ trunk/plugins/managesieve/managesieve.php	2010-09-04 12:25:32 UTC (rev 3939)
@@ -917,10 +917,14 @@
         $out .= $select_size_op->show($rule['test']=='size' ? $rule['type'] : '');
         $out .= '<input type="text" name="_rule_size_target[]" value="'.$sizetarget.'" size="10" ' 
             . $this->error_class($id, 'test', 'sizetarget') .' />
-            <input type="radio" name="_rule_size_item['.$id.']" value=""'. (!$sizeitem ? ' checked="checked"' : '') .' class="radio" />B
-            <input type="radio" name="_rule_size_item['.$id.']" value="K"'. ($sizeitem=='K' ? ' checked="checked"' : '') .' class="radio" />kB
-            <input type="radio" name="_rule_size_item['.$id.']" value="M"'. ($sizeitem=='M' ? ' checked="checked"' : '') .' class="radio" />MB
-            <input type="radio" name="_rule_size_item['.$id.']" value="G"'. ($sizeitem=='G' ? ' checked="checked"' : '') .' class="radio" />GB';
+            <input type="radio" name="_rule_size_item['.$id.']" value=""'
+                . (!$sizeitem ? ' checked="checked"' : '') .' class="radio" />'.rcube_label('B').'
+            <input type="radio" name="_rule_size_item['.$id.']" value="K"'
+                . ($sizeitem=='K' ? ' checked="checked"' : '') .' class="radio" />'.rcube_label('KB').'
+            <input type="radio" name="_rule_size_item['.$id.']" value="M"'
+                . ($sizeitem=='M' ? ' checked="checked"' : '') .' class="radio" />'.rcube_label('MB').'
+            <input type="radio" name="_rule_size_item['.$id.']" value="G"'
+                . ($sizeitem=='G' ? ' checked="checked"' : '') .' class="radio" />'.rcube_label('GB');
         $out .= '</div>';
         $out .= '</td>';
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list