languagenah.php
来自「php 开发的内容管理系统」· PHP 代码 · 共 52 行
PHP
52 行
<?php/** Nahuatl * * @package MediaWiki * @subpackage Language * * @author Rob Church <robchur@gmail.com> * * @copyright Copyright 漏 2006, Rob Church * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */require_once( 'LanguageEs.php' );if (!$wgCachedMessageArrays) { require_once('MessagesNah.php');}# Per conversation with a user in IRC, we inherit from Spanish and work from there# Nahuatl was the language of the Aztecs, and a modern speaker is most likely to# understand Spanish if a Nah translation is not availableclass LanguageNah extends LanguageEs { private $mMessagesNah = null; function __construct() { parent::__construct(); global $wgAllMessagesNah; $this->mMessagesNah =& $wgAllMessagesNah; } function getFallbackLanguage() { return 'es'; } function getMessage( $key ) { if( isset( $this->mMessagesNah[$key] ) ) { return $this->mMessagesNah[$key]; } else { return parent::getMessage( $key ); } } function getAllMessages() { return $this->mMessagesNah; }}?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?