Commit f8163b4f authored by Steven Wittens's avatar Steven Wittens
Browse files

- #11689: Fix locale import location cutting off thingie.

parent aa2de74f
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment