Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorInterface\Insertable\Insertable Class Reference

Insertable is a string that usually does not need translation and is difficult to type manually. More...

Public Member Functions

 __construct (string $display, string $pre='', string $post='')
 
 getPreText ()
 
 getPostText ()
 
 getDisplayText ()
 

Protected Attributes

 $display
 
 $pre
 
 $post
 

Detailed Description

Insertable is a string that usually does not need translation and is difficult to type manually.

Author
Niklas Laxström @license GPL-2.0-or-later
Since
2020.12

Definition at line 13 of file Insertable.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\TranslatorInterface\Insertable\Insertable::__construct ( string $display,
string $pre = '',
string $post = '' )
Parameters
string$displayWhat to show to the user
string$preWhat to insert before selection, or replace selection if $post remains empty
string$postWhat to insert after selection. If it is not given, $pre will replace selection.

Definition at line 31 of file Insertable.php.

Member Function Documentation

◆ getDisplayText()

MediaWiki\Extension\Translate\TranslatorInterface\Insertable\Insertable::getDisplayText ( )

Definition at line 45 of file Insertable.php.

◆ getPostText()

MediaWiki\Extension\Translate\TranslatorInterface\Insertable\Insertable::getPostText ( )

Definition at line 41 of file Insertable.php.

◆ getPreText()

MediaWiki\Extension\Translate\TranslatorInterface\Insertable\Insertable::getPreText ( )

Definition at line 37 of file Insertable.php.

Member Data Documentation

◆ $display

MediaWiki\Extension\Translate\TranslatorInterface\Insertable\Insertable::$display
protected

Definition at line 15 of file Insertable.php.

◆ $post

MediaWiki\Extension\Translate\TranslatorInterface\Insertable\Insertable::$post
protected

Definition at line 22 of file Insertable.php.

◆ $pre

MediaWiki\Extension\Translate\TranslatorInterface\Insertable\Insertable::$pre
protected

Definition at line 20 of file Insertable.php.


The documentation for this class was generated from the following file: