[Svn] r1907 - in trunk/roundcubemail: . program/include program/localization/en_GB program/localization/en_US program/localization/pl_PL program/localization/ru_RU

trac at roundcube.net trac at roundcube.net
Wed Oct 1 14:18:16 CEST 2008


Author: alec
Date: 2008-10-01 07:18:16 -0500 (Wed, 01 Oct 2008)
New Revision: 1907

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/include/rcube_shared.inc
   trunk/roundcubemail/program/localization/en_GB/labels.inc
   trunk/roundcubemail/program/localization/en_US/labels.inc
   trunk/roundcubemail/program/localization/pl_PL/labels.inc
   trunk/roundcubemail/program/localization/ru_RU/labels.inc
Log:
- Localized filesize units (#1485340) + small labels capitalization change in en.* (#1485407)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2008-10-01 09:21:22 UTC (rev 1906)
+++ trunk/roundcubemail/CHANGELOG	2008-10-01 12:18:16 UTC (rev 1907)
@@ -5,6 +5,7 @@
 - Fix spellchecking when switching to html editor (#1485362)
 - Fix compose window width/height (#1485396)
 - Allow calling msgimport.sh/msgexport.sh from any directory (#1485431)
+- Localized filesize units (#1485340)
 
 2008/09/29 (alec)
 ----------

Modified: trunk/roundcubemail/program/include/rcube_shared.inc
===================================================================
--- trunk/roundcubemail/program/include/rcube_shared.inc	2008-10-01 09:21:22 UTC (rev 1906)
+++ trunk/roundcubemail/program/include/rcube_shared.inc	2008-10-01 12:18:16 UTC (rev 1907)
@@ -249,17 +249,17 @@
   if ($bytes > 1073741824)
   {
     $gb = $bytes/1073741824;
-    $str = sprintf($gb>=10 ? "%d GB" : "%.1f GB", $gb);
+    $str = sprintf($gb>=10 ? "%d " : "%.1f ", $gb) . rcube_label('GB');
   }
   else if ($bytes > 1048576)
   {
     $mb = $bytes/1048576;
-    $str = sprintf($mb>=10 ? "%d MB" : "%.1f MB", $mb);
+    $str = sprintf($mb>=10 ? "%d " : "%.1f ", $mb) . rcube_label('MB');
   }
   else if ($bytes > 1024)
-    $str = sprintf("%d KB",  round($bytes/1024));
+    $str = sprintf("%d ",  round($bytes/1024)) . rcube_label('KB');
   else
-    $str = sprintf('%d B', $bytes);
+    $str = sprintf('%d ', $bytes) . rcube_label('B');
 
   return $str;
 }

Modified: trunk/roundcubemail/program/localization/en_GB/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/en_GB/labels.inc	2008-10-01 09:21:22 UTC (rev 1906)
+++ trunk/roundcubemail/program/localization/en_GB/labels.inc	2008-10-01 12:18:16 UTC (rev 1907)
@@ -46,8 +46,8 @@
 $labels['mailboxlist'] = 'Folders';
 $labels['messagesfromto'] = 'Messages $from to $to of $count';
 $labels['messagenrof'] = 'Message $nr of $count';
-$labels['moveto'] = 'move to...';
-$labels['download'] = 'download';
+$labels['moveto'] = 'Move to...';
+$labels['download'] = 'Download';
 $labels['filename'] = 'File name';
 $labels['filesize'] = 'File size';
 $labels['preferhtml'] = 'Display HTML';
@@ -231,9 +231,9 @@
 $labels['2231folding'] = 'Full RFC 2231 (Thunderbird)';
 $labels['miscfolding'] = 'RFC 2047/2231 (MS Outlook)';
 $labels['2047folding'] = 'Full RFC 2047 (other)';
-$labels['advancedoptions'] = 'advanced options';
-$labels['messagesdisplaying'] = 'Displaying messages';
-$labels['messagescomposition'] = 'Composing messages';
+$labels['advancedoptions'] = 'Advanced options';
+$labels['messagesdisplaying'] = 'Displaying Messages';
+$labels['messagescomposition'] = 'Composing Messages';
 $labels['folder'] = 'Folder';
 $labels['folders'] = 'Folders';
 $labels['foldername'] = 'Folder name';
@@ -245,9 +245,13 @@
 $labels['renamefolder'] = 'Rename folder';
 $labels['deletefolder'] = 'Delete folder';
 $labels['managefolders'] = 'Manage folders';
-$labels['specialfolders'] = 'Special folders';
+$labels['specialfolders'] = 'Special Folders';
 $labels['sortby'] = 'Sort by';
 $labels['sortasc'] = 'Sort ascending';
 $labels['sortdesc'] = 'Sort descending';
+$labels['B'] = 'B';
+$labels['KB'] = 'KB';
+$labels['MB'] = 'MB';
+$labels['GB'] = 'GB';
 
 ?>

Modified: trunk/roundcubemail/program/localization/en_US/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/en_US/labels.inc	2008-10-01 09:21:22 UTC (rev 1906)
+++ trunk/roundcubemail/program/localization/en_US/labels.inc	2008-10-01 12:18:16 UTC (rev 1907)
@@ -58,8 +58,8 @@
 $labels['messagesfromto'] = 'Messages $from to $to of $count';
 $labels['messagenrof'] = 'Message $nr of $count';
 
-$labels['moveto']   = 'move to...';
-$labels['download'] = 'download';
+$labels['moveto']   = 'Move to...';
+$labels['download'] = 'Download';
 
 $labels['filename'] = 'File name';
 $labels['filesize'] = 'File size';
@@ -282,13 +282,13 @@
 $labels['autosavedraft']  = 'Automatically save draft';
 $labels['everynminutes']  = 'every $n minutes';
 $labels['never']  = 'never';
-$labels['messagesdisplaying'] = 'Displaying messages';
-$labels['messagescomposition'] = 'Composing messages';
+$labels['messagesdisplaying'] = 'Displaying Messages';
+$labels['messagescomposition'] = 'Composing Messages';
 $labels['mimeparamfolding'] = 'Attachment names';
 $labels['2231folding'] = 'Full RFC 2231 (Thunderbird)';
 $labels['miscfolding'] = 'RFC 2047/2231 (MS Outlook)';
 $labels['2047folding'] = 'Full RFC 2047 (other)';
-$labels['advancedoptions'] = 'advanced options';
+$labels['advancedoptions'] = 'Advanced options';
 
 $labels['folder']  = 'Folder';
 $labels['folders']  = 'Folders';
@@ -301,10 +301,16 @@
 $labels['renamefolder'] = 'Rename folder';
 $labels['deletefolder']  = 'Delete folder';
 $labels['managefolders']  = 'Manage folders';
-$labels['specialfolders']  = 'Special folders';
+$labels['specialfolders'] = 'Special Folders';
 
 $labels['sortby'] = 'Sort by';
 $labels['sortasc']  = 'Sort ascending';
 $labels['sortdesc'] = 'Sort descending';
 
+// units
+$labels['B'] = 'B';
+$labels['KB'] = 'KB';
+$labels['MB'] = 'MB';
+$labels['GB'] = 'GB';
+
 ?>

Modified: trunk/roundcubemail/program/localization/pl_PL/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/pl_PL/labels.inc	2008-10-01 09:21:22 UTC (rev 1906)
+++ trunk/roundcubemail/program/localization/pl_PL/labels.inc	2008-10-01 12:18:16 UTC (rev 1907)
@@ -254,5 +254,9 @@
 $labels['autodetect'] = '- wybór automatyczny -';
 $labels['maxuploadsize'] = 'Maksymalny rozmiar pliku to $size';
 $labels['exportvcards'] = 'Eksport kontaktów w formacie vCard';
+$labels['B'] = 'B';
+$labels['KB'] = 'KB';
+$labels['MB'] = 'MB';
+$labels['GB'] = 'GB';
 
 ?>

Modified: trunk/roundcubemail/program/localization/ru_RU/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/ru_RU/labels.inc	2008-10-01 09:21:22 UTC (rev 1906)
+++ trunk/roundcubemail/program/localization/ru_RU/labels.inc	2008-10-01 12:18:16 UTC (rev 1907)
@@ -246,5 +246,9 @@
 $labels['sortby'] = 'Сортировать по';
 $labels['sortasc'] = 'Возрастанию';
 $labels['sortdesc'] = 'Убыванию';
+$labels['B'] = 'Б';
+$labels['KB'] = 'КБ';
+$labels['MB'] = 'МБ';
+$labels['GB'] = 'ГБ';
 
 ?>

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


More information about the Svn mailing list