Add basic Nahuatl language file
authorRob Church <robchurch@users.mediawiki.org>
Sun, 15 Jan 2006 01:05:13 +0000 (01:05 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 15 Jan 2006 01:05:13 +0000 (01:05 +0000)
languages/LanguageNah.php [new file with mode: 0644]

diff --git a/languages/LanguageNah.php b/languages/LanguageNah.php
new file mode 100644 (file)
index 0000000..a5510b9
--- /dev/null
@@ -0,0 +1,55 @@
+<?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' );
+
+$wgAllMessagesNah = array(
+
+       # Month names
+       'january' => 'Tlacenti',
+       'february' => 'Tlaonti',
+       'march' => 'Tlayeti',
+       'april' => 'Tlanauhtl',
+       'may' => 'Tlamacuilti',
+       'june' => 'Tlachicuazti',
+       'august' => 'Tlachiconti',
+       'september' => 'Tlachicnauhti',
+       'october' => 'Tlamatlacti',
+       'november' => 'Tlamactlihuanceti',
+       'december' => 'Tlamactlihuanonti',
+       
+       # Days of the week
+       'monday' => 'Metztlitonal',
+       'tuesday' => 'Huitzilopochtonal',
+       'wednesday' => 'Yacatlipotonal',
+       'thursday' => 'Tezcatlipotonal',
+       'friday' => 'Quetzalcoatonal',
+       'saturday' => 'Tlaloctitonal',
+       'sunday' => 'Tonatiutonal'
+
+);
+
+class LanguageNah extends LanguageEs {
+
+       # 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 available
+
+       function getMessage( $key ) {
+               global $wgAllMessagesNah;
+               return isset( $wgAllMessagesNah[$key] ) ? $wgAllMessagesNah[$key] : parent::getMessage( $key );
+       }
+
+}
+
+?>
\ No newline at end of file