Index: trunk/extensions/ContributionReporting/FundraiserStatistics_body.php |
— | — | @@ -191,12 +191,12 @@ |
192 | 192 | } |
193 | 193 | |
194 | 194 | $wgOut->addHTML( Xml::openElement( 'div', array( 'id' => 'configtoggle' ) ) ); |
195 | | - $wgOut->addHTML( '<a id="customize-chart">Customize</a>' ); |
| 195 | + $wgOut->addHTML( '<a id="customize-chart">'.wfMsg( 'fundraiserstats-customize' ).'</a>' ); |
196 | 196 | $wgOut->addHTML( Xml::closeElement( 'div' ) ); |
197 | 197 | |
198 | 198 | $wgOut->addHTML( Xml::openElement( 'form', array( 'method' => 'post', 'id' => 'configform' ) ) ); |
199 | 199 | |
200 | | - $years = 'Show the following years:<br/>'; |
| 200 | + $years = wfMsg( 'fundraiserstats-show-years' ).'<br/>'; |
201 | 201 | foreach ( $egFundraiserStatisticsFundraisers as $fundraiser ) { |
202 | 202 | $years .= Xml::check( 'toogle'.$fundraiser['id'], $showYear[$fundraiser['id']], array( 'id' => 'bar-'.$fundraiser['id'], 'class' => 'yeartoggle' ) ); |
203 | 203 | $years .= Xml::label( $fundraiser['id'], 'toogle'.$fundraiser['id'] ); |
— | — | @@ -204,8 +204,8 @@ |
205 | 205 | } |
206 | 206 | $wgOut->addHTML( Xml::openElement( 'div', array( 'id' => 'configholder' ) ) ); |
207 | 207 | $wgOut->addHTML( $years ); |
208 | | - $wgOut->addHTML( 'Time Zone:<br/>' ); |
209 | | - $wgOut->addHTML( ' '.Xml::listDropDown( 'timezone', $this->dropDownList( range ( -12, 14, 1 ) ), '', $this->timezone, '', 1 ).' (from UTC)' ); |
| 208 | + $wgOut->addHTML( wfMsg( 'fundraiserstats-time-zone' ).'<br/>' ); |
| 209 | + $wgOut->addHTML( ' '.Xml::listDropDown( 'timezone', $this->dropDownList( range ( -12, 14, 1 ) ), '', $this->timezone, '', 1 ).' '.wfMsg( 'fundraiserstats-utc' ) ); |
210 | 210 | $wgOut->addHTML( Xml::closeElement( 'div' ) ); |
211 | 211 | |
212 | 212 | $wgOut->addHTML( Xml::closeElement( 'form' ) ); |
Index: trunk/extensions/ContributionReporting/ContributionReporting.i18n.php |
— | — | @@ -93,6 +93,10 @@ |
94 | 94 | 'fundraiserstats-tab-maximums' => 'Maximums (USD)', |
95 | 95 | 'fundraiserstats-tab-ytd' => 'Year-to-date (USD)', |
96 | 96 | 'fundraiserstats-instructions' => 'To view statistics for any day, hover the cursor over the bar for that day. Each year is a different color on the chart.', |
| 97 | + 'fundraiserstats-customize' => 'Customize', |
| 98 | + 'fundraiserstats-show-years' => 'Show the following years:', |
| 99 | + 'fundraiserstats-time-zone' => 'Time Zone:', |
| 100 | + 'fundraiserstats-utc' => '(from UTC)', |
97 | 101 | ); |
98 | 102 | |
99 | 103 | /** Message documentation (Message documentation) |
— | — | @@ -125,6 +129,7 @@ |
126 | 130 | 'fundraiserstats-date' => '{{Identical|Date}}', |
127 | 131 | 'fundraiserstats-day' => '* $1 is the nth day of an annual fundraiser |
128 | 132 | * $2 is the year/name of a fundraiser', |
| 133 | + 'fundraiserstats-utc' => "Note appearing after time zone select list. UTC stands for Coordinated Universal Time and usually doesn't require translation", |
129 | 134 | ); |
130 | 135 | |
131 | 136 | /** Afrikaans (Afrikaans) |