Index: trunk/extensions/SecurePoll/SecurePoll.i18n.php |
— | — | @@ -231,8 +231,13 @@ |
232 | 232 | 'securepoll-header-title' => '{{Identical|Name}}', |
233 | 233 | 'securepoll-header-start-date' => '{{Identical|Start date}}', |
234 | 234 | 'securepoll-header-end-date' => '{{Identical|End date}}', |
235 | | - 'securepoll-subpage-vote' => '{{Identical|Vote}}', |
236 | | - 'securepoll-subpage-translate' => '{{Identical|Translate}}', |
| 235 | + 'securepoll-subpage-vote' => '{{Identical|Vote}} |
| 236 | +Link text to a sub page in the SecurePoll extension where users can vote.', |
| 237 | + 'securepoll-subpage-translate' => '{{Identical|Translate}} |
| 238 | +Link text to a sub page in the SecurePoll extension where users can translate poll related texts.', |
| 239 | + 'securepoll-subpage-list' => 'Link text to a sub page in the SecurePoll extension where users can list poll information.', |
| 240 | + 'securepoll-subpage-dump' => 'Link text to a sub page in the SecurePoll extension where users can dump results.', |
| 241 | + 'securepoll-subpage-tally' => 'Link text to a sub page in the SecurePoll extension where users can tally.', |
237 | 242 | ); |
238 | 243 | |
239 | 244 | /** Afrikaans (Afrikaans) |
Index: trunk/extensions/SecurePoll/includes/pages/EntryPage.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | global $wgOut; |
14 | 14 | $pager = new SecurePoll_ElectionPager( $this ); |
15 | 15 | $wgOut->addWikiMsg( 'securepoll-entry-text' ); |
16 | | - $wgOut->addHTML( |
| 16 | + $wgOut->addHTML( |
17 | 17 | $pager->getBody() . |
18 | 18 | $pager->getNavigationBar() |
19 | 19 | ); |
— | — | @@ -76,10 +76,10 @@ |
77 | 77 | |
78 | 78 | function isFieldSortable( $field ) { |
79 | 79 | return in_array( $field, array( |
80 | | - 'el_title', 'el_start_date', 'el_end_date' |
| 80 | + 'el_title', 'el_start_date', 'el_end_date' |
81 | 81 | ) ); |
82 | 82 | } |
83 | | - |
| 83 | + |
84 | 84 | /** |
85 | 85 | * Add classes based on whether the poll is open or closed |
86 | 86 | * @param $row database object |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | return htmlspecialchars( $value ); |
106 | 106 | } |
107 | 107 | } |
108 | | - |
| 108 | + |
109 | 109 | function formatRow( $row ) { |
110 | 110 | global $wgUser; |
111 | 111 | $id = $row->el_entity; |
— | — | @@ -120,11 +120,16 @@ |
121 | 121 | function getLinks() { |
122 | 122 | global $wgUser; |
123 | 123 | $id = $this->mCurrentRow->el_entity; |
124 | | - |
| 124 | + |
125 | 125 | $s = ''; |
126 | 126 | $sep = wfMsg( 'pipe-separator' ); |
127 | 127 | $skin = $wgUser->getSkin(); |
128 | 128 | foreach ( $this->subpages as $subpage => $props ) { |
| 129 | + // Message keys used here: |
| 130 | + // securepoll-subpage-vote, securepoll-subpage-translate, |
| 131 | + // securepoll-subpage-list, securepoll-subpage-dump, |
| 132 | + // securepoll-subpage-tally |
| 133 | + |
129 | 134 | $linkText = wfMsgExt( "securepoll-subpage-$subpage", 'parseinline' ); |
130 | 135 | if ( $s !== '' ) { |
131 | 136 | $s .= $sep; |
— | — | @@ -135,7 +140,7 @@ |
136 | 141 | $title = $this->entryPage->parent->getTitle( "$subpage/$id" ); |
137 | 142 | $s .= $skin->makeKnownLinkObj( $title, $linkText ); |
138 | 143 | } else { |
139 | | - $s .= "<span class=\"securepoll-link-disabled\">" . |
| 144 | + $s .= "<span class=\"securepoll-link-disabled\">" . |
140 | 145 | $linkText . "</span>"; |
141 | 146 | } |
142 | 147 | } |
— | — | @@ -152,7 +157,7 @@ |
153 | 158 | if ( $field == 'links' ) { |
154 | 159 | $names[$field] = ''; |
155 | 160 | } else { |
156 | | - $msgName = 'securepoll-header-' . |
| 161 | + $msgName = 'securepoll-header-' . |
157 | 162 | strtr( $field, array( 'el_' => '', '_' => '-' ) ); |
158 | 163 | $names[$field] = wfMsg( $msgName ); |
159 | 164 | } |
— | — | @@ -164,4 +169,4 @@ |
165 | 170 | return $this->entryPage->getTitle(); |
166 | 171 | } |
167 | 172 | } |
168 | | - |
| 173 | + |