From d2142c6e606f6b51b41b52408bfe03af04425deb Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 23 May 2005 23:25:43 +0000 Subject: [PATCH] * Restored the {{msg:}} magic word, except now it's the wikisyntax representation of wfMsgForContent() rather than a shorthand for {{Template:}} * Using {{msg:}} in the navbar so as to not break links if the user selects a different language than the default language for the wiki in hir preferences. --- languages/Language.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/languages/Language.php b/languages/Language.php index 39a96296ea..d59cbbfe76 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -215,6 +215,7 @@ $wgLanguageNamesEn =& $wgLanguageNames; MAG_PAGENAME => array( 1, 'PAGENAME' ), MAG_PAGENAMEE => array( 1, 'PAGENAMEE' ), MAG_NAMESPACE => array( 1, 'NAMESPACE' ), + MAG_MSG => array( 0, 'MSG:' ), MAG_SUBST => array( 0, 'SUBST:' ), MAG_MSGNW => array( 0, 'MSGNW:' ), MAG_END => array( 0, '__END__' ), @@ -253,14 +254,14 @@ global $wgRightsText; # The navigation toolbar, int: is used here to make sure that the appropriate # messages are automatically pulled from the user-selected language file. -'navbar' => -'* [[{{int:mainpage}}]] -* [[{{int:portal-url}}|{{int:portal}}]] -* [[{{int:currentevents-url}}|{{int:currentevents}}]] -* [[{{int:recentchanges-url}}|{{int:recentchanges}}]] -* [[{{int:randompage-url}}|{{int:randompage}}]] -* [[{{int:helppage}}|{{int:help}}]] -* [[{{int:sitesupport-url}}|{{int:sitesupport}}]]', +'navbar' =>' +* [[{{int:mainpage}}]] +* [[{{msg:portal-url}}|{{int:portal}}]] +* [[{{msg:currentevents-url}}|{{int:currentevents}}]] +* [[{{msg:recentchanges-url}}|{{int:recentchanges}}]] +* [[{{msg:randompage-url}}|{{int:randompage}}]] +* [[{{msg:helppage}}|{{int:help}}]] +* [[{{msg:sitesupport-url}}|{{int:sitesupport}}]]', # User preference toggles 'tog-underline' => 'Underline links', @@ -338,9 +339,6 @@ global $wgRightsText; "mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface] and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] for usage and configuration help.", -# NOTE: To turn off "Community portal" in the title links, -# set "portal" => "-" - 'portal' => 'Community portal', 'portal-url' => 'Project:Community Portal', 'about' => 'About', -- 2.20.1