From: Rob Church Date: Thu, 21 Jun 2007 20:58:48 +0000 (+0000) Subject: i18n and better label text, don't assume all users speak robots.txt X-Git-Tag: 1.31.0-rc.0~52464 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=7fcf8aff1a4b5f530fc74721ee9013822a0f8b6c;p=lhc%2Fweb%2Fwiklou.git i18n and better label text, don't assume all users speak robots.txt --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 28afcfee31..7b6c9eba84 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -338,9 +338,9 @@ class ProtectionForm { $ret = ""; $ret .= ''; $ret .= ""; - $ret .= Xml::checkLabel( 'noindex', 'mwProtect-robots-noindex', 'mwProtect-robots-noindex', $noindexset, $robotsallowed ); + $ret .= Xml::checkLabel( wfMsgHtml( 'protect-robots-noindex' ), 'mwProtect-robots-noindex', 'mwProtect-robots-noindex', $noindexset, $robotsallowed ); $ret .= $wgContLang->getDirMark(); - $ret .= Xml::checkLabel( 'nofollow', 'mwProtect-robots-nofollow', 'mwProtect-robots-nofollow', $nofollowset, $robotsallowed ); + $ret .= Xml::checkLabel( wfMsgHtml( 'protect-robots-nofollow' ), 'mwProtect-robots-nofollow', 'mwProtect-robots-nofollow', $nofollowset, $robotsallowed ); $ret .= ""; return $ret; } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 984554ab91..628515e18d 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1840,6 +1840,8 @@ Here are the current settings for the page $1:', 'protect-expiring' => 'expires $1 (UTC)', 'protect-cascade' => 'Protect pages included in this page (cascading protection)', 'protect-robotspolicy' => 'Robot policy:', +'protect-robots-noindex' => 'Do not index', +'protect-robots-nofollow' => 'Do not follow links', 'restriction-type' => 'Permission:', 'restriction-level' => 'Restriction level:', 'minimum-size' => 'Min size', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 8c9c74f5f7..4395e009c7 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1183,6 +1183,8 @@ $wgMessageStructure = array( 'protect-expiring', 'protect-cascade', 'protect-robotspolicy', + 'protect-robots-noindex', + 'protect-robots-nofollow', 'restriction-type', 'restriction-level', 'minimum-size',