mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merged in fix for wrapping of multibyte languages
This commit is contained in:
parent
2862b309eb
commit
5b07d99038
1 changed files with 4 additions and 0 deletions
|
@ -203,6 +203,10 @@ function break_up_long_words($string, $maxsize=20, $cutchar=' ') {
|
||||||
/// Given some normal text, this function will break up any
|
/// Given some normal text, this function will break up any
|
||||||
/// long words to a given size, by inserting the given character
|
/// long words to a given size, by inserting the given character
|
||||||
|
|
||||||
|
if (in_array(current_language(), array('ja', 'zh_cn', 'zh_tw', 'zh_tw_utf8'))) { // Multibyte languages
|
||||||
|
return $string;
|
||||||
|
}
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
$length = strlen($string);
|
$length = strlen($string);
|
||||||
$wordlength = 0;
|
$wordlength = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue