Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php |
— | — | @@ -96,18 +96,22 @@ |
97 | 97 | |
98 | 98 | $percRev = intval( $row->total ) == 0 |
99 | 99 | ? '-' // devision by zero |
100 | | - : $wgLang->formatnum( wfMsgExt( 'percent', array( 'escapenoentities' ), |
101 | | - sprintf( '%4.2f', 100 * intval( $row->reviewed ) / intval( $row->total ) ) ) |
| 100 | + : wfMsg( 'parentheses', |
| 101 | + wfMsgExt( 'percent', array( 'escapenoentities' ), |
| 102 | + $wgLang->formatnum( sprintf( '%4.2f', 100 * intval( $row->reviewed ) / intval( $row->total ) ) ) |
| 103 | + ) |
102 | 104 | ); |
103 | 105 | $percLatest = intval( $row->total ) == 0 |
104 | 106 | ? '-' // devision by zero |
105 | | - : $wgLang->formatnum( wfMsgExt( 'percent', array( 'escapenoentities' ), |
106 | | - sprintf( '%4.2f', 100 * intval( $row->synced ) / intval( $row->total ) ) ) |
| 107 | + : wfMsg( 'parentheses', |
| 108 | + wfMsgExt( 'percent', array( 'escapenoentities' ), |
| 109 | + $wgLang->formatnum( sprintf( '%4.2f', 100 * intval( $row->synced ) / intval( $row->total ) ) ) |
| 110 | + ) |
107 | 111 | ); |
108 | 112 | $percSynced = intval( $row->reviewed ) == 0 |
109 | 113 | ? '-' // devision by zero |
110 | | - : $wgLang->formatnum( wfMsgExt( 'percent', array( 'escapenoentities' ), |
111 | | - sprintf( '%4.2f', 100 * intval( $row->synced ) / intval( $row->reviewed ) ) ) |
| 114 | + : wfMsgExt( 'percent', array( 'escapenoentities' ), |
| 115 | + $wgLang->formatnum( sprintf( '%4.2f', 100 * intval( $row->synced ) / intval( $row->reviewed ) ) ) |
112 | 116 | ); |
113 | 117 | $outdated = intval( $row->reviewed ) - intval( $row->synced ); |
114 | 118 | $outdated = $wgLang->formatnum( max( 0, $outdated ) ); // lag between queries |
— | — | @@ -122,11 +126,11 @@ |
123 | 127 | "</td> |
124 | 128 | <td>" . |
125 | 129 | htmlspecialchars( $wgLang->formatnum( $row->reviewed ) . |
126 | | - $wgContLang->getDirMark() ) . " <i>($percRev)</i> |
| 130 | + $wgContLang->getDirMark() ) . " <i>$percRev</i> |
127 | 131 | </td> |
128 | 132 | <td>" . |
129 | 133 | htmlspecialchars( $wgLang->formatnum( $row->synced ) . |
130 | | - $wgContLang->getDirMark() ) . " <i>($percLatest)</i> |
| 134 | + $wgContLang->getDirMark() ) . " <i>$percLatest</i> |
131 | 135 | </td> |
132 | 136 | <td>" . |
133 | 137 | $percSynced . |