7 * @author Rob Church <robchur@gmail.com>
9 * @copyright Copyright © 2006, Rob Church
10 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
13 require_once( 'LanguageEs.php' );
15 if (!$wgCachedMessageArrays) {
16 require_once('MessagesNah.php');
19 # Per conversation with a user in IRC, we inherit from Spanish and work from there
20 # Nahuatl was the language of the Aztecs, and a modern speaker is most likely to
21 # understand Spanish if a Nah translation is not available
23 class LanguageNah
extends LanguageEs
{
24 private $mMessagesNah = null;
26 function __construct() {
27 parent
::__construct();
29 global $wgAllMessagesNah;
30 $this->mMessagesNah
=& $wgAllMessagesNah;
34 function getFallbackLanguage() {
38 function getMessage( $key ) {
39 if( isset( $this->mMessagesNah
[$key] ) ) {
40 return $this->mMessagesNah
[$key];
42 return parent
::getMessage( $key );
46 function getAllMessages() {
47 return $this->mMessagesNah
;