OSDN Git Service

MERGE: shorten()の処理の変更に伴う本家の修正をマージ。
[nucleus-jp/nucleus-next.git] / nucleus / libs / globalfunctions.php
index d200e5a..94078f2 100644 (file)
@@ -1536,13 +1536,13 @@ function removeBreaks($var) {
 }
 
 /**
- * shortens a text string to maxlength
+ * shortens a text string to maxlength.
  * $suffix is what needs to be added at the end (end length is <= $maxlength)
  *
  * The purpose is to limit the width of string for rendered screen in web browser.
  * So it depends on style sheet, browser's rendering scheme, client's system font.
  *
- * NOTE: In general, non-Latin font such as Japanese, Chinese, Cyrillic have two times as long as Latin fonts,
+ * NOTE: In general, non-Latin font such as Japanese, Chinese, Cyrillic have two times as width as Latin fonts,
  *  but this is not always correct, for example, rendered by proportional font.
  *
  * @param string $escaped_string target string