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