From a6b335dd5ef910d320183382ffeb9149eba8933b Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 15 Jan 2006 01:05:13 +0000 Subject: [PATCH] Add basic Nahuatl language file --- languages/LanguageNah.php | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 languages/LanguageNah.php diff --git a/languages/LanguageNah.php b/languages/LanguageNah.php new file mode 100644 index 0000000000..a5510b9ad7 --- /dev/null +++ b/languages/LanguageNah.php @@ -0,0 +1,55 @@ + + * + * @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 -- 2.20.1