r41357 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41356‎ | r41357 | r41358 >
Date:18:52, 28 September 2008
Author:rotem
Status:old
Tags:
Comment:
Localization:
* Updating messages.inc.
* Rebuilding English localization.
* Making restrictlogpage an ignored message, as there seems to be no reason to localize it.
Modified paths:
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/maintenance/language/messageTypes.inc (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1200,14 +1200,14 @@
12011201 'edit-no-change' => 'Your edit was ignored, because no change was made to the text.',
12021202 'edit-already-exists' => 'Could not create a new page.
12031203 It already exists.',
1204 -'userrestricted-page' => "<big>'''Your user name or IP address has been restricted from editing page \"$1\".'''</big>
 1204+'userrestricted-page' => '<big>\'\'\'Your user name or IP address has been restricted from editing page "$1".\'\'\'</big>
12051205
12061206 The restriction was put by [[User:$2|$2]].
1207 -The reason given is ''$3''.
 1207+The reason given is \'\'$3\'\'.
12081208
12091209 Restriction was put at $4 and expires at $5.
12101210
1211 -You can contact [[User:$2|$2]] or another [[{{MediaWiki:Grouppage-sysop}}|administrator]] to discuss the restriction.",
 1211+You can contact [[User:$2|$2]] or another [[{{MediaWiki:Grouppage-sysop}}|administrator]] to discuss the restriction.',
12121212 'userrestricted-namespace' => "<big>'''Your user name or IP address has been restricted from editing $1 namespace.'''</big>
12131213
12141214 The restriction was put by [[User:$2|$2]].
@@ -1634,6 +1634,7 @@
16351635 'right-suppressrevision' => 'Review and restore revisions hidden from Sysops',
16361636 'right-suppressionlog' => 'View private logs',
16371637 'right-block' => 'Block other users from editing',
 1638+'right-restrict' => 'Restrict user from editing certain namespaces and pages',
16381639 'right-blockemail' => 'Block a user from sending email',
16391640 'right-hideuser' => 'Block a username, hiding it from the public',
16401641 'right-ipblock-exempt' => 'Bypass IP blocks, auto-blocks and range blocks',
@@ -1656,7 +1657,6 @@
16571658 'right-userrights' => 'Edit all user rights',
16581659 'right-userrights-interwiki' => 'Edit user rights of users on other wikis',
16591660 'right-siteadmin' => 'Lock and unlock the database',
1660 -'right-restrict' => 'Restrict user from editing certain namespaces and pages',
16611661
16621662 # User rights log
16631663 'rightslog' => 'User rights log',
@@ -2611,18 +2611,18 @@
26122612 'userrestrictiontype-page' => 'Page',
26132613
26142614 # Special:RemoveRestrictions
2615 -'removerestrictions' => 'Remove restriction from a user',
2616 -'removerestrictions-intro' => 'Use the form below to remove a restriction from a certain user.',
2617 -'removerestrictions-noid' => 'No restriction ID was specified.',
2618 -'removerestrictions-wrongid' => 'Restriction with that ID not found. Most probably someone has removed it or it expired.',
2619 -'removerestrictions-legend' => 'Remove a restriction',
2620 -'removerestrictions-user' => 'Restricted user:',
2621 -'removerestrictions-type' => 'Restriction type:',
2622 -'removerestrictions-page' => 'Page:',
2623 -'removerestrictions-namespace' => 'Namespace:',
2624 -'removerestrictions-reason' => 'Reason:',
2625 -'removerestrictions-submit' => 'Remove the restriction',
2626 -'removerestrictions-success' => 'Successfully removed the restriction from [[User:$1|$1]].',
 2615+'removerestrictions' => 'Remove restriction from a user',
 2616+'removerestrictions-intro' => 'Use the form below to remove a restriction from a certain user.',
 2617+'removerestrictions-noid' => 'No restriction ID was specified.',
 2618+'removerestrictions-wrongid' => 'Restriction with that ID not found. Most probably someone has removed it or it expired.',
 2619+'removerestrictions-legend' => 'Remove a restriction',
 2620+'removerestrictions-user' => 'Restricted user:',
 2621+'removerestrictions-type' => 'Restriction type:',
 2622+'removerestrictions-page' => 'Page:',
 2623+'removerestrictions-namespace' => 'Namespace:',
 2624+'removerestrictions-reason' => 'Reason:',
 2625+'removerestrictions-submit' => 'Remove the restriction',
 2626+'removerestrictions-success' => 'Successfully removed the restriction from [[User:$1|$1]].',
26272627
26282628 # Special:RestrictUser
26292629 'restrictuser' => 'Restrict user',
@@ -2651,7 +2651,7 @@
26522652 'restrictentry' => 'restricted $1 from editing $2 (expiry set to $3)',
26532653 'restrictremoveentry' => 'removed restriction from $1 for editing $2',
26542654 'restrictlognamespace' => '$1 namespace',
2655 -'restrictlogpage' => '[[$1]]', # only translate this message to other languages if you have to change it
 2655+'restrictlogpage' => '[[$1]]', # do not translate or duplicate this message to other languages
26562656
26572657 # Developer tools
26582658 'lockdb' => 'Lock database',
Index: trunk/phase3/maintenance/language/messages.inc
@@ -563,6 +563,8 @@
564564 'edit-conflict',
565565 'edit-no-change',
566566 'edit-already-exists',
 567+ 'userrestricted-page',
 568+ 'userrestricted-namespace',
567569 ),
568570 'parserwarnings' => array(
569571 'expensive-parserfunction-warning',
@@ -941,6 +943,7 @@
942944 'right-suppressrevision',
943945 'right-suppressionlog',
944946 'right-block',
 947+ 'right-restrict',
945948 'right-blockemail',
946949 'right-hideuser',
947950 'right-ipblock-exempt',
@@ -1695,6 +1698,7 @@
16961699 'ipbsubmit',
16971700 'ipbother',
16981701 'ipboptions',
 1702+ 'ipbinfinite',
16991703 'ipbotheroption',
17001704 'ipbotherreason',
17011705 'ipbhidename',
@@ -1759,6 +1763,68 @@
17601764 'sorbs_create_account_reason',
17611765 'cant-block-while-blocked',
17621766 ),
 1767+ 'listrestrictions' => array(
 1768+ 'listuserrestrictions',
 1769+ 'listuserrestrictions-intro',
 1770+ 'listuserrestrictions-row-ns',
 1771+ 'listuserrestrictions-row-page',
 1772+ 'listuserrestrictions-row-expiry',
 1773+ 'listuserrestrictions-legend',
 1774+ 'listuserrestrictions-type',
 1775+ 'listuserrestrictions-user',
 1776+ 'listuserrestrictions-namespace',
 1777+ 'listuserrestrictions-page',
 1778+ 'listuserrestrictions-submit',
 1779+ 'listuserrestrictions-notfound',
 1780+ 'listuserrestrictions-empty',
 1781+ 'listuserrestrictions-remove',
 1782+ 'userrestrictiontype-none',
 1783+ 'userrestrictiontype-namespace',
 1784+ 'userrestrictiontype-page',
 1785+ ),
 1786+ 'removerestrictions' => array(
 1787+ 'removerestrictions',
 1788+ 'removerestrictions-intro',
 1789+ 'removerestrictions-noid',
 1790+ 'removerestrictions-wrongid',
 1791+ 'removerestrictions-legend',
 1792+ 'removerestrictions-user',
 1793+ 'removerestrictions-type',
 1794+ 'removerestrictions-page',
 1795+ 'removerestrictions-namespace',
 1796+ 'removerestrictions-reason',
 1797+ 'removerestrictions-submit',
 1798+ 'removerestrictions-success',
 1799+ ),
 1800+ 'restrictuser' => array(
 1801+ 'restrictuser',
 1802+ 'restrictuser-userselect',
 1803+ 'restrictuser-user',
 1804+ 'restrictuser-go',
 1805+ 'restrictuser-notfound',
 1806+ 'restrictuser-existing',
 1807+ 'restrictuser-legend-page',
 1808+ 'restrictuser-legend-namespace',
 1809+ 'restrictuser-title',
 1810+ 'restrictuser-namespace',
 1811+ 'restrictuser-expiry',
 1812+ 'restrictuser-reason',
 1813+ 'restrictuser-sumbit',
 1814+ 'restrictuser-badtitle',
 1815+ 'restrictuser-badnamespace',
 1816+ 'restrictuser-badexpiry',
 1817+ 'restrictuser-duptitle',
 1818+ 'restrictuser-dupnamespace',
 1819+ 'restrictuser-success',
 1820+ ),
 1821+ 'restrictionlog' => array(
 1822+ 'restrictionlog',
 1823+ 'restrictionlogtext',
 1824+ 'restrictentry',
 1825+ 'restrictremoveentry',
 1826+ 'restrictlognamespace',
 1827+ 'restrictlogpage',
 1828+ ),
17631829 'developertools' => array(
17641830 'lockdb',
17651831 'unlockdb',
@@ -2852,6 +2918,10 @@
28532919 'sp-contributions' => '',
28542920 'whatlinkshere' => 'What links here',
28552921 'block' => 'Block/unblock',
 2922+ 'listrestrictions' => 'Special:ListUserRestrictions',
 2923+ 'removerestrictions' => 'Special:RemoveRestrictions',
 2924+ 'restrictuser' => 'Special:RestrictUser',
 2925+ 'restrictionlog' => 'Special:Log/restrict',
28562926 'developertools' => 'Developer tools',
28572927 'movepage' => 'Move page',
28582928 'export' => 'Export',
Index: trunk/phase3/maintenance/language/messageTypes.inc
@@ -153,6 +153,7 @@
154154 'upload-summary',
155155 'pagetitle-view-mainpage',
156156 'newuserlogentry',
 157+ 'restrictlogpage',
157158 );
158159
159160 /** Optional messages, which may be translated only if changed in the target language. */
@@ -320,7 +321,6 @@
321322 'recentchangeslinked-backlink',
322323 'diff-with-additional',
323324 'statistics-footer',
324 - 'restrictlogpage',
325325 );
326326
327327 /** EXIF messages, which may be set as optional in several checks, but are generally mandatory */

Status & tagging log