removing unused globals and some whitespace cleaning
[lhc/web/wiklou.git] / languages / LanguageNah.php
1 <?php
2
3 /** Nahuatl
4 *
5 * @package MediaWiki
6 * @subpackage Language
7 *
8 * @author Rob Church <robchur@gmail.com>
9 *
10 * @copyright Copyright © 2006, Rob Church
11 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
12 */
13
14 require_once( 'LanguageEs.php' );
15
16 if (!$wgCachedMessageArrays) {
17 require_once('MessagesNah.php');
18 }
19
20 class LanguageNah extends LanguageEs {
21
22 # Per conversation with a user in IRC, we inherit from Spanish and work from there
23 # Nahuatl was the language of the Aztecs, and a modern speaker is most likely to
24 # understand Spanish if a Nah translation is not available
25
26 function getMessage( $key ) {
27 global $wgAllMessagesNah;
28 return isset( $wgAllMessagesNah[$key] ) ? $wgAllMessagesNah[$key] : parent::getMessage( $key );
29 }
30
31 }
32
33 ?>