X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fmagicword.txt;h=42f701ca0bc481512a539c3e953cefc3ddb86acc;hb=29f2d9d7857ee693f49d064c3a0513772b7a558c;hp=6b4d37ee3e2505e3b72cbf523495fe5322419d9c;hpb=b64bc4e9693ec3e676dadc766f75030d8b11a43b;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/magicword.txt b/docs/magicword.txt index 6b4d37ee3e..42f701ca0b 100644 --- a/docs/magicword.txt +++ b/docs/magicword.txt @@ -28,16 +28,16 @@ Create a file called ExtensionName.i18n.magic.php with the following contents: ---- array( 1, 'CUSTOM' ), -); + 'mag_custom' => [ 1, 'CUSTOM' ], +]; -$magicWords['es'] = array( - 'mag_custom' => array( 1, 'ADUANERO' ), -); +$magicWords['es'] = [ + 'mag_custom' => [ 1, 'ADUANERO' ], +]; ---- $wgExtensionMessagesFiles['ExtensionNameMagic'] = __DIR__ . '/ExtensionName.i18n.magic.php'; @@ -62,16 +62,16 @@ Create a file called ExtensionName.i18n.magic.php with the following contents: ---- array( 0, 'custom' ), -); + 'mag_custom' => [ 0, 'custom' ], +]; -$magicWords['es'] = array( - 'mag_custom' => array( 0, 'aduanero' ), -); +$magicWords['es'] = [ + 'mag_custom' => [ 0, 'aduanero' ], +]; ---- $wgExtensionMessagesFiles['ExtensionNameMagic'] = __DIR__ . '/ExtensionName.i18n.magic.php';