Masato
[squirrelmail.git] / functions / mailbox_display.php
index 29368b89630af63d6d2aebb37d6280604f10be0d..38d459c2928e2531a6acb9cd908e83e9287d2329 100644 (file)
@@ -1171,6 +1171,7 @@ function get_paginator_str($box, $start_msg, $end_msg, $num_msgs,
 }
 
 function processSubject($subject) {
+    global $squirrelmail_language;
   /* Shouldn't ever happen -- caught too many times in the IMAP functions */
   if ($subject == '')
     return _("(no subject)");
@@ -1198,6 +1199,10 @@ function processSubject($subject) {
     return $subject;
   }
   
+  if ($squirrelmail_language == 'ja_JP' && function_exists('mb_strimwidth')) {
+         return mb_strimwidth($subject, 0, $trim_val, '...');
+  }
+  
   return substr($subject, 0, $trim_val) . '...';
 }