* Update to Catalan translation (ca)
[mediawiki.git] / languages / LanguageNah.php
blobd29a53e278ff3d00d0e5e66c266af7fff9390b39
1 <?php
2 /** Nahuatl
4 * @package MediaWiki
5 * @subpackage Language
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() {
35 return 'es';
38 function getMessage( $key ) {
39 if( isset( $this->mMessagesNah[$key] ) ) {
40 return $this->mMessagesNah[$key];
41 } else {
42 return parent::getMessage( $key );
46 function getAllMessages() {
47 return $this->mMessagesNah;