r37691 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37690‎ | r37691 | r37692 >
Date:13:05, 15 July 2008
Author:siebrand
Status:old
Tags:
Comment:
* Move *-summary from optional to ignored.
* rebuild all messages files
* fix a typo in comment
Modified paths:
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPt_br.php (modified) (history)
  • /trunk/phase3/maintenance/language/messageTypes.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/messageTypes.inc
@@ -6,7 +6,7 @@
77 * @ingroup MaintenanceLanguage
88 */
99
10 -/** Ignored messages, which should be exist only in the English messages file. */
 10+/** Ignored messages, which should exist only in the English messages file. */
1111 $wgIgnoredMessages = array(
1212 'sidebar',
1313 'accesskey-pt-userpage',
@@ -111,16 +111,6 @@
112112 'uploadfooter',
113113 'listgrouprights-link',
114114 'search-interwiki-custom',
115 -);
116 -
117 -/** Optional messages, which may be translated only if changed in the other language. */
118 -$wgOptionalMessages = array(
119 - 'linkprefix',
120 - 'editsection-brackets',
121 - 'feed-atom',
122 - 'feed-rss',
123 - 'sectionlink',
124 - 'unit-pixel',
125115 'allpages-summary',
126116 'booksources-summary',
127117 'categories-summary',
@@ -152,7 +142,6 @@
153143 'ancientpages-summary',
154144 'unwatchedpages-summary',
155145 'userrights-summary',
156 - 'userrights-irreversible-marker',
157146 'brokenredirects-summary',
158147 'deadendpages-summary',
159148 'protectedpages-summary',
@@ -163,6 +152,17 @@
164153 'fewestrevisions-summary',
165154 'missingfiles-summary',
166155 'upload-summary',
 156+);
 157+
 158+/** Optional messages, which may be translated only if changed in the target language. */
 159+$wgOptionalMessages = array(
 160+ 'linkprefix',
 161+ 'editsection-brackets',
 162+ 'feed-atom',
 163+ 'feed-rss',
 164+ 'sectionlink',
 165+ 'unit-pixel',
 166+ 'userrights-irreversible-marker',
167167 'tog-nolangconversion',
168168 'yourvariant',
169169 'variantname-zh-hans',
Index: trunk/phase3/languages/messages/MessagesPt_br.php
@@ -754,7 +754,6 @@
755755 'nocreate-loggedin' => 'Você não possui permissões de criar novas páginas neste wiki.',
756756 'permissionserrors' => 'Erros de permissões',
757757 'permissionserrorstext' => 'Você não possui permissão de fazer isso, {{PLURAL:$1|pelo seguinte motivo|pelos seguintes motivos}}:',
758 -'permissionserrorstext' => 'Você não possui permissão de fazer isso, {{PLURAL:$1|pelo seguinte motivo|pelos seguintes motivos}}:',
759758 'recreate-deleted-warn' => "'''Atenção: Você está recriando uma página já eliminada em outra ocasião.'''
760759
761760 Certifique-se de que seja adequado prosseguir editando esta página.
@@ -2654,4 +2653,5 @@
26552654 # Special:Blankpage
26562655 'blankpage' => 'Página em branco',
26572656 'intentionallyblankpage' => 'Esta página foi intencionalmente deixada em branco e é usada para medições de performance, etc.',
 2657+
26582658 );
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1377,7 +1377,7 @@
13781378
13791379 # Preferences page
13801380 'preferences' => 'Preferences',
1381 -'preferences-summary' => '', # only translate this message to other languages if you have to change it
 1381+'preferences-summary' => '', # do not translate or duplicate this message to other languages
13821382 'mypreferences' => 'My preferences',
13831383 'prefs-edits' => 'Number of edits:',
13841384 'prefsnologin' => 'Not logged in',
@@ -1443,7 +1443,7 @@
14441444
14451445 # User rights
14461446 'userrights' => 'User rights management', # Not used as normal message but as header for the special page itself
1447 -'userrights-summary' => '', # only translate this message to other languages if you have to change it
 1447+'userrights-summary' => '', # do not translate or duplicate this message to other languages
14481448 'userrights-lookup-user' => 'Manage user groups',
14491449 'userrights-user-editname' => 'Enter a username:',
14501450 'editusergroup' => 'Edit User Groups',
@@ -1597,7 +1597,7 @@
15981598 'upload_directory_missing' => 'The upload directory ($1) is missing and could not be created by the webserver.',
15991599 'upload_directory_read_only' => 'The upload directory ($1) is not writable by the webserver.',
16001600 'uploaderror' => 'Upload error',
1601 -'upload-summary' => '', # only translate this message to other languages if you have to change it
 1601+'upload-summary' => '', # do not translate or duplicate this message to other languages
16021602 'uploadtext' => "Use the form below to upload files.
16031603 To view or search previously uploaded files go to the [[Special:Imagelist|list of uploaded files]], uploads and deletions are also logged in the [[Special:Log/upload|upload log]].
16041604
@@ -1805,15 +1805,15 @@
18061806
18071807 # Unwatched pages
18081808 'unwatchedpages' => 'Unwatched pages',
1809 -'unwatchedpages-summary' => '', # only translate this message to other languages if you have to change it
 1809+'unwatchedpages-summary' => '', # do not translate or duplicate this message to other languages
18101810
18111811 # List redirects
18121812 'listredirects' => 'List redirects',
1813 -'listredirects-summary' => '', # only translate this message to other languages if you have to change it
 1813+'listredirects-summary' => '', # do not translate or duplicate this message to other languages
18141814
18151815 # Unused templates
18161816 'unusedtemplates' => 'Unused templates',
1817 -'unusedtemplates-summary' => '', # only translate this message to other languages if you have to change it
 1817+'unusedtemplates-summary' => '', # do not translate or duplicate this message to other languages
18181818 'unusedtemplatestext' => 'This page lists all pages in the template namespace which are not included in another page.
18191819 Remember to check for other links to the templates before deleting them.',
18201820 'unusedtemplateswlh' => 'other links',
@@ -1846,18 +1846,18 @@
18471847 'statistics-footer' => '', # do not translate or duplicate this message to other languages
18481848
18491849 'disambiguations' => 'Disambiguation pages',
1850 -'disambiguations-summary' => '', # only translate this message to other languages if you have to change it
 1850+'disambiguations-summary' => '', # do not translate or duplicate this message to other languages
18511851 'disambiguationspage' => 'Template:disambig',
18521852 'disambiguations-text' => "The following pages link to a '''disambiguation page'''.
18531853 They should link to the appropriate topic instead.<br />
18541854 A page is treated as disambiguation page if it uses a template which is linked from [[MediaWiki:Disambiguationspage]]",
18551855
18561856 'doubleredirects' => 'Double redirects',
1857 -'doubleredirects-summary' => '', # only translate this message to other languages if you have to change it
 1857+'doubleredirects-summary' => '', # do not translate or duplicate this message to other languages
18581858 'doubleredirectstext' => 'This page lists pages which redirect to other redirect pages. Each row contains links to the first and second redirect, as well as the target of the second redirect, which is usually "real" target page, which the first redirect should point to.',
18591859
18601860 'brokenredirects' => 'Broken redirects',
1861 -'brokenredirects-summary' => '', # only translate this message to other languages if you have to change it
 1861+'brokenredirects-summary' => '', # do not translate or duplicate this message to other languages
18621862 'brokenredirectstext' => 'The following redirects link to non-existent pages:',
18631863 'brokenredirects-edit' => '(edit)',
18641864 'brokenredirects-delete' => '(delete)',
@@ -1868,7 +1868,7 @@
18691869 'withoutinterwiki-submit' => 'Show',
18701870
18711871 'fewestrevisions' => 'Pages with the fewest revisions',
1872 -'fewestrevisions-summary' => '', # only translate this message to other languages if you have to change it
 1872+'fewestrevisions-summary' => '', # do not translate or duplicate this message to other languages
18731873
18741874 # Miscellaneous special pages
18751875 'nbytes' => '$1 {{PLURAL:$1|byte|bytes}}',
@@ -1879,63 +1879,63 @@
18801880 'nviews' => '$1 {{PLURAL:$1|view|views}}',
18811881 'specialpage-empty' => 'There are no results for this report.',
18821882 'lonelypages' => 'Orphaned pages',
1883 -'lonelypages-summary' => '', # only translate this message to other languages if you have to change it
 1883+'lonelypages-summary' => '', # do not translate or duplicate this message to other languages
18841884 'lonelypagestext' => 'The following pages are not linked from other pages in {{SITENAME}}.',
18851885 'uncategorizedpages' => 'Uncategorized pages',
1886 -'uncategorizedpages-summary' => '', # only translate this message to other languages if you have to change it
 1886+'uncategorizedpages-summary' => '', # do not translate or duplicate this message to other languages
18871887 'uncategorizedcategories' => 'Uncategorized categories',
1888 -'uncategorizedcategories-summary' => '', # only translate this message to other languages if you have to change it
 1888+'uncategorizedcategories-summary' => '', # do not translate or duplicate this message to other languages
18891889 'uncategorizedimages' => 'Uncategorized files',
1890 -'uncategorizedimages-summary' => '', # only translate this message to other languages if you have to change it
 1890+'uncategorizedimages-summary' => '', # do not translate or duplicate this message to other languages
18911891 'uncategorizedtemplates' => 'Uncategorized templates',
1892 -'uncategorizedtemplates-summary' => '', # only translate this message to other languages if you have to change it
 1892+'uncategorizedtemplates-summary' => '', # do not translate or duplicate this message to other languages
18931893 'unusedcategories' => 'Unused categories',
18941894 'unusedimages' => 'Unused files',
18951895 'popularpages' => 'Popular pages',
1896 -'popularpages-summary' => '', # only translate this message to other languages if you have to change it
 1896+'popularpages-summary' => '', # do not translate or duplicate this message to other languages
18971897 'wantedcategories' => 'Wanted categories',
1898 -'wantedcategories-summary' => '', # only translate this message to other languages if you have to change it
 1898+'wantedcategories-summary' => '', # do not translate or duplicate this message to other languages
18991899 'wantedpages' => 'Wanted pages',
1900 -'wantedpages-summary' => '', # only translate this message to other languages if you have to change it
 1900+'wantedpages-summary' => '', # do not translate or duplicate this message to other languages
19011901 'missingfiles' => 'Missing files',
1902 -'missingfiles-summary' => '', # only translate this message to other languages if you have to change it
 1902+'missingfiles-summary' => '', # do not translate or duplicate this message to other languages
19031903 'mostlinked' => 'Most linked-to pages',
1904 -'mostlinked-summary' => '', # only translate this message to other languages if you have to change it
 1904+'mostlinked-summary' => '', # do not translate or duplicate this message to other languages
19051905 'mostlinkedcategories' => 'Most linked-to categories',
1906 -'mostlinkedcategories-summary' => '', # only translate this message to other languages if you have to change it
 1906+'mostlinkedcategories-summary' => '', # do not translate or duplicate this message to other languages
19071907 'mostlinkedtemplates' => 'Most linked-to templates',
1908 -'mostlinkedtemplates-summary' => '', # only translate this message to other languages if you have to change it
 1908+'mostlinkedtemplates-summary' => '', # do not translate or duplicate this message to other languages
19091909 'mostcategories' => 'Pages with the most categories',
1910 -'mostcategories-summary' => '', # only translate this message to other languages if you have to change it
 1910+'mostcategories-summary' => '', # do not translate or duplicate this message to other languages
19111911 'mostimages' => 'Most linked-to files',
1912 -'mostimages-summary' => '', # only translate this message to other languages if you have to change it
 1912+'mostimages-summary' => '', # do not translate or duplicate this message to other languages
19131913 'mostrevisions' => 'Pages with the most revisions',
1914 -'mostrevisions-summary' => '', # only translate this message to other languages if you have to change it
 1914+'mostrevisions-summary' => '', # do not translate or duplicate this message to other languages
19151915 'prefixindex' => 'Prefix index',
1916 -'prefixindex-summary' => '', # only translate this message to other languages if you have to change it
 1916+'prefixindex-summary' => '', # do not translate or duplicate this message to other languages
19171917 'shortpages' => 'Short pages',
1918 -'shortpages-summary' => '', # only translate this message to other languages if you have to change it
 1918+'shortpages-summary' => '', # do not translate or duplicate this message to other languages
19191919 'longpages' => 'Long pages',
1920 -'longpages-summary' => '', # only translate this message to other languages if you have to change it
 1920+'longpages-summary' => '', # do not translate or duplicate this message to other languages
19211921 'deadendpages' => 'Dead-end pages',
1922 -'deadendpages-summary' => '', # only translate this message to other languages if you have to change it
 1922+'deadendpages-summary' => '', # do not translate or duplicate this message to other languages
19231923 'deadendpagestext' => 'The following pages do not link to other pages in {{SITENAME}}.',
19241924 'protectedpages' => 'Protected pages',
19251925 'protectedpages-indef' => 'Indefinite protections only',
1926 -'protectedpages-summary' => '', # only translate this message to other languages if you have to change it
 1926+'protectedpages-summary' => '', # do not translate or duplicate this message to other languages
19271927 'protectedpagestext' => 'The following pages are protected from moving or editing',
19281928 'protectedpagesempty' => 'No pages are currently protected with these parameters.',
19291929 'protectedtitles' => 'Protected titles',
1930 -'protectedtitles-summary' => '', # only translate this message to other languages if you have to change it
 1930+'protectedtitles-summary' => '', # do not translate or duplicate this message to other languages
19311931 'protectedtitlestext' => 'The following titles are protected from creation',
19321932 'protectedtitlesempty' => 'No titles are currently protected with these parameters.',
19331933 'listusers' => 'User list',
1934 -'listusers-summary' => '', # only translate this message to other languages if you have to change it
 1934+'listusers-summary' => '', # do not translate or duplicate this message to other languages
19351935 'newpages' => 'New pages',
1936 -'newpages-summary' => '', # only translate this message to other languages if you have to change it
 1936+'newpages-summary' => '', # do not translate or duplicate this message to other languages
19371937 'newpages-username' => 'Username:',
19381938 'ancientpages' => 'Oldest pages',
1939 -'ancientpages-summary' => '', # only translate this message to other languages if you have to change it
 1939+'ancientpages-summary' => '', # do not translate or duplicate this message to other languages
19401940 'move' => 'Move',
19411941 'movethispage' => 'Move this page',
19421942 'unusedimagestext' => 'Please note that other web sites may link to a file with a direct URL, and so may still be listed here despite being in active use.',
@@ -1950,7 +1950,7 @@
19511951
19521952 # Book sources
19531953 'booksources' => 'Book sources',
1954 -'booksources-summary' => '', # only translate this message to other languages if you have to change it
 1954+'booksources-summary' => '', # do not translate or duplicate this message to other languages
19551955 'booksources-search-legend' => 'Search for book sources',
19561956 'booksources-isbn' => 'ISBN:', # only translate this message to other languages if you have to change it
19571957 'booksources-go' => 'Go',
@@ -1974,7 +1974,7 @@
19751975
19761976 # Special:Allpages
19771977 'allpages' => 'All pages',
1978 -'allpages-summary' => '', # only translate this message to other languages if you have to change it
 1978+'allpages-summary' => '', # do not translate or duplicate this message to other languages
19791979 'alphaindexline' => '$1 to $2',
19801980 'nextpage' => 'Next page ($1)',
19811981 'prevpage' => 'Previous page ($1)',
@@ -1992,7 +1992,7 @@
19931993
19941994 # Special:Categories
19951995 'categories' => 'Categories',
1996 -'categories-summary' => '', # only translate this message to other languages if you have to change it
 1996+'categories-summary' => '', # do not translate or duplicate this message to other languages
19971997 'categoriespagetext' => 'The following categories contain pages or media.',
19981998 'categoriesfrom' => 'Display categories starting at:',
19991999 'special-categories-sort-count' => 'sort by count',
@@ -2288,9 +2288,9 @@
22892289 # What links here
22902290 'whatlinkshere' => 'What links here',
22912291 'whatlinkshere-title' => 'Pages that link to $1',
2292 -'whatlinkshere-summary' => '', # only translate this message to other languages if you have to change it
 2292+'whatlinkshere-summary' => '', # do not translate or duplicate this message to other languages
22932293 'whatlinkshere-page' => 'Page:',
2294 -'whatlinkshere-barrow' => '>', # only translate this message to other languages if you have to change it
 2294+'whatlinkshere-barrow' => '>', # do not translate or duplicate this message to other languages
22952295 'linklistsub' => '(List of links)',
22962296 'linkshere' => "The following pages link to '''[[:$1]]''':",
22972297 'nolinkshere' => "No pages link to '''[[:$1]]'''.",
@@ -2354,7 +2354,7 @@
23552355 'ipblocklist' => 'List of blocked IP addresses and usernames',
23562356 'ipblocklist-legend' => 'Find a blocked user',
23572357 'ipblocklist-username' => 'Username or IP address:',
2358 -'ipblocklist-summary' => '', # only translate this message to other languages if you have to change it
 2358+'ipblocklist-summary' => '', # do not translate or duplicate this message to other languages
23592359 'ipblocklist-submit' => 'Search',
23602360 'blocklistline' => '$1, $2 blocked $3 ($4)',
23612361 'infiniteblock' => 'infinite',
@@ -3447,7 +3447,7 @@
34483448
34493449 # Special:SpecialPages
34503450 'specialpages' => 'Special pages',
3451 -'specialpages-summary' => '', # only translate this message to other languages if you have to change it
 3451+'specialpages-summary' => '', # do not translate or duplicate this message to other languages
34523452 'specialpages-note' => '----
34533453 * Normal special pages.
34543454 * <span class="mw-specialpagerestricted">Restricted special pages.</span>',

Status & tagging log