From f8163b4fe305d0b8203c4608df28cc527d3e3f10 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 29 Jul 2005 18:56:58 +0000 Subject: - #11689: Fix locale import location cutting off thingie. --- includes/locale.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/locale.inc b/includes/locale.inc index d660e0454..f4c11dcc4 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -658,8 +658,14 @@ function _locale_import_append_plural($entry, $key) { */ function _locale_import_shorten_comments($comment) { $comm = ''; - while(strlen($comm) < 128 && count($comment)) { - $comm .= substr(array_shift($comment), 1) .', '; + while (count($comment)) { + $test = $comm . substr(array_shift($comment), 1) .', '; + if (strlen($comm) < 130) { + $comm = $test; + } + else { + break; + } } return substr($comm, 0, -2); } -- cgit v1.2.3