From: Antoine Musso Date: Sun, 8 Jan 2006 12:29:18 +0000 (+0000) Subject: Bug #4251: Support for venitian X-Git-Tag: 1.6.0~692 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=871acd68979a4547b7ca70336c32452104aeb189;p=lhc%2Fweb%2Fwiklou.git Bug #4251: Support for venitian --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9245c39ac3..6d49e1121f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -413,7 +413,7 @@ fully support the editing toolbar, but was found to be too confusing. * (bug 4507) Adjust FULLPAGENAMEE escaping to standard form * Blocked users can no longer roll back, change the protection of, or delete/undelete pages * Protect against spoofing of X-Forwarded-For header - +* Support for venitian language === Caveats === diff --git a/languages/LanguageVec.php b/languages/LanguageVec.php new file mode 100644 index 0000000000..f4c01025d7 --- /dev/null +++ b/languages/LanguageVec.php @@ -0,0 +1,56 @@ + 'Media', + NS_SPECIAL => 'Speciale', + NS_MAIN => '', + NS_TALK => 'Discussion', + NS_USER => 'Utente', + NS_USER_TALK => 'Discussion_utente', + NS_PROJECT => $wgMetaNamespace, + NS_PROJECT_TALK => 'Discussion_'.$wgMetaNamespace, + NS_IMAGE => 'Imagine', + NS_IMAGE_TALK => 'Discussion_imagine', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', + NS_TEMPLATE => 'Template', + NS_TEMPLATE_TALK => 'Discussion_template', + NS_HELP => 'Aiuto', + NS_HELP_TALK => 'Discussion_aiuto', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Discussion_categoria' +); + +/* private */ $wgQuickbarSettingsIt = array( + 'Nessun', 'Fisso a sinistra', 'Fisso a destra', 'Fluttuante a sinistra' +); + +class LanguageVec extends LanguageIt { + #FIXME: inherit almost everything for now + + function getNamespaces() { + global $wgNamespaceNamesVec; + return $wgNamespaceNamesVec; + } + + function getQuickbarSettings() { + global $wgQuickbarSettingsVec; + return $wgQuickbarSettingsVec; + } + + function getMessage( $key ) { + global $wgAllMessagesVec; + if(array_key_exists($key, $wgAllMessagesVec)) + return $wgAllMessagesVec[$key]; + else + return parent::getMessage($key); + } +} +?>