Remove most uses of deprecated Language::truncate()
authorC. Scott Ananian <cscott@cscott.net>
Wed, 13 Jun 2018 17:49:29 +0000 (13:49 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Mon, 9 Jul 2018 17:36:27 +0000 (13:36 -0400)
commit0935e47a721787c830e6d85ed59a3e4d4d58846c
tree256fbf2c68f09309bc8aadd4a7321e96cc4e4042
parent0ada062ce62a261e55eb2bfbe9c6f74ffbaa05e5
Remove most uses of deprecated Language::truncate()

The Language::truncate() function was split into
Language::truncateForVisual() (which measures characters) and
Language::truncateForDatabase() (which measures bytes) in 1.31, but
the patch which soft-deprecated Language::truncate() didn't actually
remove all the uses in the codebase.  Replace most of those old uses
now, which should actually improve the situation for
non-latin-alphabet users who were getting unfairly squeezed in a
number of places.

Bug: T197492
Change-Id: I2291c69d9df17c1a9e4ab1b7d4cbc73bc51d3ebb
includes/CommentStore.php
includes/content/TextContent.php
includes/gallery/TraditionalImageGallery.php
includes/search/SearchHighlighter.php