}
// @todo Code is incomplete.
- // $linkTarget = Title::newFromText( $wgContLang->getNsText( MWNamespace::getUser() ) .
- // ":{$ut}" );
+ // $linkTarget = Title::newFromText( MediaWikiServices::getInstance()->
+ // getContentLanguage()->getNsText( MWNamespace::getUser() ) . ":{$ut}" );
// $ul = Linker::link( $linkTarget, $ut );
$meta = [];
$nt,
htmlspecialchars(
is_int( $this->getCaptionLength() ) ?
- $lang->truncate( $nt->getText(), $this->getCaptionLength() ) :
+ $lang->truncateForVisual( $nt->getText(), $this->getCaptionLength() ) :
$nt->getText()
),
[
}
/**
- * Length to truncate filename to in caption when using "showfilename" (if int).
+ * Length (in characters) to truncate filename to in caption when using "showfilename" (if int).
* A value of 'true' will truncate the filename to one line using CSS, while
* 'false' will disable truncating.
*