diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-07-29 18:56:58 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-07-29 18:56:58 +0000 |
commit | f8163b4fe305d0b8203c4608df28cc527d3e3f10 (patch) | |
tree | d49c088db8fbce7d368a8b40399c3403b5bfa325 | |
parent | aa2de74fa261e4b3d290cedca100eb3330f17fff (diff) | |
download | brdo-f8163b4fe305d0b8203c4608df28cc527d3e3f10.tar.gz brdo-f8163b4fe305d0b8203c4608df28cc527d3e3f10.tar.bz2 |
- #11689: Fix locale import location cutting off thingie.
-rw-r--r-- | includes/locale.inc | 10 |
1 files changed, 8 insertions, 2 deletions
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); } |