Extension:Control Structure Functions/ControlStructureFunctions.i18n.php
From MediaWiki.org
ControlStructureFunctions.i18n.php:
<?php class CtrlStructFunc_i18n { private static $words = array( // English 'en' => array( 'if' => array( 0, 'if' ), 'ifeq' => array( 0, 'ifeq' ), 'ifexpr' => array( 0, 'ifexpr' ), 'switch' => array( 0, 'switch' ), 'default' => array( 0, '#default' ), 'ifexist' => array( 0, 'ifexist' ), 'dowhile' => array( 0, 'dowhile' ), 'while' => array( 0, 'while' ), ), // Farsi-Persian 'fa' => array( 'if' => array( 0, 'اگر', 'if' ), 'ifeq' => array( 0, 'اگرمساوی', 'ifeq' ), 'ifexpr' => array( 0, 'Ø§Ú¯Ø±ØØ³Ø§Ø¨', 'ifexpr' ), 'switch' => array( 0, 'گزینه', 'switch' ), 'default' => array( 0, '#پیش‌Ù?رض', '#default' ), 'ifexist' => array( 0, 'اگرموجود', 'ifexist' ), ), /* // French 'fr' => array( 'if' => array( 0, 'si', 'if' ), 'ifeq' => array( 0, 'si-similaire', 'ifeq' ), 'ifexpr' => array( 0, 'si-calcul', 'ifexpr' ), 'switch' => array( 0, 'achemine', 'switch' ), 'ifexist' => array( 0, 'si-existe', 'ifexist' ), ), */ // Hebrew 'he' => array( 'if' => array( 0, '×ª× ×?×™', 'if' ), 'ifeq' => array( 0, 'שווה', 'ifeq' ), 'ifexpr' => array( 0, 'חשב ×ª× ×?×™', 'ifexpr' ), 'switch' => array( 0, 'בחר', 'switch' ), 'default' => array( 0, '#ברירת מחדל', '#default' ), 'ifexist' => array( 0, '×§×™×™×?', 'ifexist' ), ), // Indonesian 'id' => array( 'if' => array( 0, 'jika', 'if' ), 'ifeq' => array( 0, 'jikasama', 'ifeq' ), 'ifexpr' => array( 0, 'jikahitung', 'ifexpr' ), 'switch' => array( 0, 'pilih', 'switch' ), 'default' => array( 0, '#baku', '#default' ), 'ifexist' => array( 0, 'jikaada', 'ifexist' ), ), ); private static $messages = array( // English 'en' => array( 'ctrl_struct_func_loop_max' => "Maximum number of loops have been performed", 'ctrl_struct_func_unsupp_if' => "This #if* function is not supported", ) ); /** * Get translated magic words, if available * * @param string $lang Language code * @return array */ public static function magicWords( $lang ) { // English is used as a fallback, and the English synonyms are // used if a translation has not been provided for a given word return ( $lang == 'en' || !isset( self::$words[$lang] ) ) ? self::$words['en'] : array_merge( self::$words['en'], self::$words[$lang] ); } public static function getMessages() { return self::$messages; } }

