X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=0ef018fc0e6105749f25d8aa219d75decf1bfb50;hp=ed6e2c92edf35fc9b59a05dfec25399473ebfc1d;hb=6fbd125bd6a9b93f4426ded8ec23b4d6986c81bf;hpb=364a10f68ded0523edb417f5cbdba07df31155d6 diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index ed6e2c92..0ef018fc 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1178,7 +1178,7 @@ function get_paginator_str($box, $start_msg, $end_msg, $num_msgs, } function processSubject($subject) { - global $squirrelmail_language; + global $languages, $squirrelmail_language; /* Shouldn't ever happen -- caught too many times in the IMAP functions */ if ($subject == '') return _("(no subject)"); @@ -1206,8 +1206,8 @@ function processSubject($subject) { return $subject; } - if ($squirrelmail_language == 'ja_JP' && function_exists('mb_strimwidth')) { - return mb_strimwidth($subject, 0, $trim_val, '...'); + if (function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) { + return $languages[$squirrelmail_language]['XTRA_CODE']('strimwidth', $subject, $trim_val); } return substr($subject, 0, $trim_val) . '...';