(follow-up 79778) Make $wgLang->truncate function consider the length of the ......
authorBrian Wolff <bawolff@users.mediawiki.org>
Thu, 24 Mar 2011 02:54:11 +0000 (02:54 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Thu, 24 Mar 2011 02:54:11 +0000 (02:54 +0000)
commit2d64c69910873334f9e1370894cc7b15431ab709
tree82e5420b6164b8bd0345414e8edd30a5c8682caa
parent67955599f8f60401b4eb48aa858e682c3e20d12b
(follow-up 79778) Make $wgLang->truncate function consider the length of the ... (ellipsis message) in the truncation length.

The length of this message varries by localization, so the previous solution of telling truncate to truncate 5 bytes
less than needed is not good since this will be too little or too much.

Updated places where its used. Some places I left as is, as it looked like the new behaviour would work fine for them to.
(for example, the autosummary feature - it was cutting off at 200 bytes, which is no where near 250 limit, so I presume that
was for asethic reasons rather then to fit as much in before the db limit).

Will do another commit for extension callers in a moment.
RELEASE-NOTES
includes/Article.php
includes/DefaultSettings.php
includes/Title.php
includes/search/SearchEngine.php
languages/Language.php