Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\PageTranslation\TranslationUnit Class Reference

This class represents one translation unit in a translatable page. More...

Public Attributes

const UNIT_MARKER_INVALID_CHARS = "_/\n<>"
 
const NEW_UNIT_ID = '-1'
 
const TVAR_OLD_SYNTAX_REGEX = '~<tvar\|([^>]+)>(.*?)</>~us'
 

Detailed Description

This class represents one translation unit in a translatable page.

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

Definition at line 19 of file TranslationUnit.php.

Member Data Documentation

◆ NEW_UNIT_ID

const MediaWiki\Extension\Translate\PageTranslation\TranslationUnit::NEW_UNIT_ID = '-1'

Definition at line 21 of file TranslationUnit.php.

◆ TVAR_OLD_SYNTAX_REGEX

const MediaWiki\Extension\Translate\PageTranslation\TranslationUnit::TVAR_OLD_SYNTAX_REGEX = '~<tvar\|([^>]+)>(.*?)</>~us'

Definition at line 23 of file TranslationUnit.php.

◆ UNIT_MARKER_INVALID_CHARS

const MediaWiki\Extension\Translate\PageTranslation\TranslationUnit::UNIT_MARKER_INVALID_CHARS = "_/\n<>"

Definition at line 20 of file TranslationUnit.php.


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