From: Rob Church Date: Sun, 15 Jan 2006 01:05:13 +0000 (+0000) Subject: Add basic Nahuatl language file X-Git-Tag: 1.6.0~539 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/supprimer.php?a=commitdiff_plain;h=a6b335dd5ef910d320183382ffeb9149eba8933b;p=lhc%2Fweb%2Fwiklou.git Add basic Nahuatl language file --- 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