$user: the User object about to be created (read-only, incomplete)
$message: out parameter: error message to display on abort
-'AddMagicWordsXX': Add magic words to the language with the code XX (e.g. En, De).
-$magicWords: The magic words array in the specified language.
-
'AddNewAccount': after a user account is created
$user: the User object that was created. (Parameter added in 1.7)
+++ /dev/null
-magicword.txt
-
-Magic Words are some phrases used in the wikitext. They are defined in several arrays:
-* $magicWords (includes/MagicWord.php) includes their internal names ('MAG_XXX').
-* $wgVariableIDs (includes/MagicWord.php) includes their IDs (MAG_XXX, which are constants),
- after their internal names are used for "define()".
-* Localized arrays (languages/LanguageXX.php) include their different names to be used by the users.
-
-The localized arrays keys are the internal IDs, and the values are an array, whose include their
-case-sensitivity and their alias forms. The first form defined is used by the program, for example,
-when moving a page and its old name should include #REDIRECT.
-
-Adding magic words should be done using several hooks:
-* "MagicWordMagicWords" should be used to add the internal name ('MAG_XXX') to $magicWords.
-* "MagicWordwgVariableIDs" should be used to add the ID (MAG_XXX constant) to $wgVariableIDs.
-* "AddMagicWordsXX" (XX is the language code, e.g. En or De) should be used to add the
- different names of the magic word. Use both the localized name and the English name.
-
-For example:
-
-$wgHooks['MagicWordMagicWords'][] = 'wfAddCustomMagicWord';
-$wgHooks['MagicWordwgVariableIDs'][] = 'wfAddCustomMagicWordID';
-$wgHooks['AddMagicWordsEn'][] = 'wfAddCustomMagicWordEn';
-$wgHooks['AddMagicWordsEs'][] = 'wfAddCustomMagicWordEs';
-
-function wfAddCustomMagicWord( &$magicWords ) {
- $magicWords[] = 'MAG_CUSTOM';
-}
-
-function wfAddCustomMagicWordID( &$magicWords ) {
- $magicWords[] = MAG_CUSTOM;
-}
-
-function wfAddCustomMagicWordEn( &$magicWords ) {
- $magicWords[MAG_CUSTOM] = array( 0, "#custom" );
-}
-
-function wfAddCustomMagicWordEs( &$magicWords ) {
- $magicWords[MAG_CUSTOM] = array( 0, "#aduanero", "#custom" );
-}
NS_CATEGORY_TALK => 'Абмеркаваньне_катэгорыі'
);
- wfRunHooks( 'AddMagicWordsBe', array( &$this->mMagicWordsBe ) );
}
function getNamespaces() {
MAG_CURRENTDOW => array( 1, 'CURRENTDOW' ),
MAG_REVISIONID => array( 1, 'REVISIONID' ),
);
-wfRunHooks( 'AddMagicWordsBg', array( &$wgMagicWordsBg ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesBg.php');
NS_CATEGORY => 'Kategorija',
NS_CATEGORY_TALK => 'Razgovor_o_kategoriji',
);
-
- wfRunHooks( 'AddMagicWordsBs', array( &$this->mMagicWordsBs ) );
}
function getNamespaces() {
MAG_SERVER => array( 0, 'SERVER' ),
MAG_REVISIONID => array( 1, 'REVISIONID', 'IDREVIZE' )
);
-wfRunHooks( 'AddMagicWordsCs', array( &$wgMagicWordsCs ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesCs.php');
MAG_INT => array( 0, "INT:" )
);
-wfRunHooks( 'AddMagicWordsCy', array( &$wgMagicWordsCy ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesCy.php');
NS_CATEGORY_TALK => 'Kategooria_arutelu'
);
- wfRunHooks( 'AddMagicWordsEt', array( &$this->mMagicWordsEt ) );
}
function getNamespaces() {
NS_CATEGORY => 'Catagóir',
NS_CATEGORY_TALK => 'Plé_catagóire'
);
-
- wfRunHooks( 'AddMagicWordsGa', array( &$this->mMagicWordsGa ) );
+
}
function getNamespaces() {
NS_CATEGORY => "קטגוריה",
NS_CATEGORY_TALK => "שיחת_קטגוריה",
);
-
- wfRunHooks( 'AddMagicWordsHe', array( &$this->mMagicWordsHe ) );
}
/**
NS_CATEGORY => 'Flokkur',
NS_CATEGORY_TALK => 'Flokkaspjall'
);
-
- wfRunHooks( 'AddMagicWordsIs', array( &$this->mMagicWordsIs ) );
+
}
function getNamespaces() {
MAG_CURRENTDOW => array( 1, 'CURRENTDOW' ),
MAG_REVISIONID => array( 1, 'REVISIONID' ),
);
-wfRunHooks( 'AddMagicWordsMk', array( &$wgMagicWordsMk ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesMk.php');
NS_CATEGORY => 'Kategorie',
NS_CATEGORY_TALK => 'Kategorie_Diskuschoon'
);
-
- wfRunHooks( 'AddMagicWordsNds', array( &$this->mMagicWordsNds ) );
+
}
function getBookstoreList() {
MAG_CURRENTDOW => array( 1, 'CURRENTDOW', 'VEKEDAGNRNO', 'UKEDAGNRNÅ' ),
MAG_REVISIONID => array( 1, 'REVISIONID', 'VERSJONSID' )
) + $wgMagicWordsEn;
-wfRunHooks( 'AddMagicWordsNn', array( &$wgMagicWordsNn ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesNn.php');
MAG_CURRENTDOW => array( 1, 'CURRENTDOW' ),
MAG_REVISIONID => array( 1, 'REVISIONID' ),
);
-wfRunHooks( 'AddMagicWordsPt', array( &$wgMagicWordsPt ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesPt.php');
NS_CATEGORY => 'Categorie',
NS_CATEGORY_TALK => 'Discuţie_Categorie'
);
-
- wfRunHooks( 'AddMagicWordsRo', array( &$this->mMagicWordsRo ) );
+
}
function getNamespaces() {
MAG_CURRENTDOW => array( 1, 'CURRENTDOW','ТЕКУЩИЙДЕНЬНЕДЕЛИ'),
MAG_REVISIONID => array( 1, 'REVISIONID', 'ИДВЕРСИИ'),
);
-wfRunHooks( 'AddMagicWordsRu', array( &$wgMagicWordsRu ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesRu.php');
NS_CATEGORY => 'Kategória',
NS_CATEGORY_TALK => 'Diskusia_ku_kategórii'
);
-
- wfRunHooks( 'AddMagicWordsSk', array( &$this->mMagicWordsSk ) );
}
function getNamespaces() {
MAG_LC => array( 0, 'LC:', 'ЛЦ:' ),
MAG_UC => array( 0, 'UC:', 'УЦ:' ),
);
-wfRunHooks( 'AddMagicWordsSr_ec', array( &$wgMagicWordsSr_ec ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesSr_ec.php');
MAG_LC => array( 0, 'LC:', 'LC:' ),
MAG_UC => array( 0, 'UC:', 'UC:' ),
);
-wfRunHooks( 'AddMagicWordsSr_el', array( &$wgMagicWordsSr_el ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesSr_el.php');
MAG_LOCALURLE => array( 0, 'URINLIURLE:' ),
MAG_SERVER => array( 0, 'SERVER' )
) + $wgMagicWordsEn;
-wfRunHooks( 'AddMagicWordsTt', array( &$wgMagicWordsTt ) );
if (!$wgCachedMessageArrays) {
require_once('MessagesTt.php');
MAG_CURRENTDOW => array( 1, 'CURRENTDOW' ),
MAG_REVISIONID => array( 1, 'REVISIONID' , 'SỐBẢN' ),
);
-wfRunHooks( 'AddMagicWordsVi', array( &$wgMagicWordsVi ) );
/* private */ $wgDateFormatsVi = array(
MW_DATE_DEFAULT => 'Không lựa chọn',