X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fmagicword.txt;h=42f701ca0bc481512a539c3e953cefc3ddb86acc;hb=6d5d0c9fb78cb3d436051640af6bd4e8db574512;hp=6b4d37ee3e2505e3b72cbf523495fe5322419d9c;hpb=2e040b99eda6c99cf472b3896f62d2f21315e808;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';