Changeset 5919
- Timestamp:
- 09/12/2017 05:53:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php
r5354 r5919 212 212 <tr><th scope="row"><label for="date"><?php _e( 'Date', 'wporg-plugins' ); ?></label></th><td> 213 213 <input name="date" type="text" id="date" value="<?php echo esc_attr( $args['date'] ); ?>" class="text"> 214 <p><?php printf( __( 'The day up to which stats are to be gathered. In YYYY-MM-DD format. Defaults to today (%s).', 'wporg-plugins' ), $date ); ?></p> 214 <p><?php 215 /* translators: %s: today's date */ 216 printf( __( 'The day up to which stats are to be gathered. In YYYY-MM-DD format. Defaults to today (%s).', 'wporg-plugins' ), 217 $date 218 ); 219 ?></p> 215 220 </td></tr> 216 221 217 222 <tr><th scope="row"><label for="days"><?php _e( 'Number of days', 'wporg-plugins' ); ?></label></th><td> 218 223 <input name="days" type="text" id="days" value="<?php echo esc_attr( $args['num_days'] ); ?>" class="small-text"> 219 <p><?php printf( __( 'The number of days before "Date" to include in stats. Default is %d.', 'wporg-plugins' ), 7 ); ?></p> 224 <p><?php 225 /* translators: %d: 7 */ 226 printf( __( 'The number of days before "Date" to include in stats. Default is %d.', 'wporg-plugins' ), 227 7 228 ); 229 ?></p> 220 230 </td></tr> 221 231 222 232 <tr><th scope="row"><label for="recentdays"><?php _e( '"Recent" number of days', 'wporg-plugins' ); ?></label></th><td> 223 233 <input name="recentdays" type="text" id="recentdays" value="<?php echo esc_attr( $args['recentdays'] ); ?>" class="small-text"> 224 <p><?php printf( __( 'The number of days before today to consider as being "recent" (stats marked with **). Default is %d.', 'wporg-plugins' ), 7 ); ?></p> 234 <p><?php 235 /* translators: %d: 7 */ 236 printf( __( 'The number of days before today to consider as being "recent" (stats marked with **). Default is %d.', 'wporg-plugins' ), 237 7 238 ); 239 ?></p> 225 240 </td></tr> 226 241 … … 231 246 <h2><?php _e( 'Stats', 'wporg-plugins' ); ?></h2> 232 247 233 <p><?php printf( 234 __( 'Displaying stats for the %1$d days preceding %2$s (and other stats for the %3$d most recent days).', 'wporg-plugins' ), 235 $stats['num_days'], 236 $stats['date'], 237 $stats['recentdays'] 238 ); ?> 239 </p> 248 <p><?php 249 /* translators: 1: number of days, 2: selected date, 3: number of most recent days */ 250 printf( __( 'Displaying stats for the %1$d days preceding %2$s (and other stats for the %3$d most recent days).', 'wporg-plugins' ), 251 $stats['num_days'], 252 $stats['date'], 253 $stats['recentdays'] 254 ); 255 ?></p> 240 256 241 257 <h3><?php _e( 'Plugin Status Change Stats', 'wporg-plugins' ); ?></h3> 242 258 243 259 <ul style="font-family:Courier New;"> 244 <li><?php printf( __( 'Plugins requested : %d', 'wporg-plugins' ), $stats['plugin_new'] ); ?></li> 245 <li><?php printf( __( 'Plugins rejected : %s', 'wporg-plugins' ), $stats['plugin_reject'] ); ?></li> 246 <li><?php printf( __( 'Plugins closed : %s', 'wporg-plugins' ), $stats['plugin_delist'] ); ?></li> 247 <li><?php printf( __( 'Plugins approved : %s', 'wporg-plugins' ), $stats['plugin_approve'] ); ?></li> 260 <li><?php 261 /* translators: %d: number of requested plugins */ 262 printf( __( 'Plugins requested : %d', 'wporg-plugins' ), 263 $stats['plugin_new'] 264 ); 265 ?></li> 266 <li><?php 267 /* translators: %s: number of rejected plugins */ 268 printf( __( 'Plugins rejected : %s', 'wporg-plugins' ), 269 $stats['plugin_reject'] 270 ); 271 ?></li> 272 <li><?php 273 /* translators: %s: number of closed plugins */ 274 printf( __( 'Plugins closed : %s', 'wporg-plugins' ), 275 $stats['plugin_delist'] 276 ); 277 ?></li> 278 <li><?php 279 /* translators: %s: number of approved plugins */ 280 printf( __( 'Plugins approved : %s', 'wporg-plugins' ), 281 $stats['plugin_approve'] 282 ); 283 ?></li> 248 284 </ul> 249 285 … … 251 287 252 288 <ul style="font-family:Courier New;"> 253 <li><?php printf( __( 'Plugins in the queue (new and pending)* : %d', 'wporg-plugins' ), $stats['in_queue'] ); ?></li> 254 <li><?php printf( __( '→ (older than %1$d days ago)** : %2$d', 'wporg-plugins' ), $stats['recentdays'], $stats['in_queue_old'] ); ?></li> 255 <li><?php printf( __( '→ (%1$s - %2$s) : %3$d', 'wporg-plugins' ), $start_date, $stats['date'], $stats['in_queue_from_time_window'] ); ?></li> 256 <li><?php printf( __( '→ (new; not processed or replied to yet)* : %d', 'wporg-plugins' ), $stats['in_queue_new'] ); ?></li> 257 <li><?php printf( __( '→ (pending; replied to)* : %d', 'wporg-plugins' ), $stats['in_queue_pending'] ); ?></li> 289 <li><?php 290 /* translators: %d: number of plugins in the queue */ 291 printf( __( 'Plugins in the queue (new and pending)* : %d', 'wporg-plugins' ), 292 $stats['in_queue'] 293 ); 294 ?></li> 295 <li><?php 296 /* translators: 1: number of most recent days, 2: number of older plugins in the queue */ 297 printf( __( '→ (older than %1$d days ago)** : %2$d', 'wporg-plugins' ), 298 $stats['recentdays'], 299 $stats['in_queue_old'] 300 ); 301 ?></li> 302 <li><?php 303 /* translators: 1: start date, 2: end date, 3: number of plugins in the queue within defined time window */ 304 printf( __( '→ (%1$s - %2$s) : %3$d', 'wporg-plugins' ), 305 $start_date, 306 $stats['date'], 307 $stats['in_queue_from_time_window'] 308 ); 309 ?></li> 310 <li><?php 311 /* translators: %d: number of new plugins */ 312 printf( __( '→ (new; not processed or replied to yet)* : %d', 'wporg-plugins' ), 313 $stats['in_queue_new'] 314 ); 315 ?></li> 316 <li><?php 317 /* translators: %d: number of pending plugins */ 318 printf( __( '→ (pending; replied to)* : %d', 'wporg-plugins' ), 319 $stats['in_queue_pending'] 320 ); 321 ?></li> 258 322 </ul> 259 323 … … 261 325 262 326 <ul style="font-family:Courier New;"> 263 <li><?php printf( __( 'Total open tickets* : %d', 'wporg-plugins' ), $stats['supportpress_queue_total_open'] ); ?></li> 264 <li><?php printf( __( ' → (with no activity in last %1$d days)** : %2$d', 'wporg-plugins' ), $stats['recentdays'], $stats['supportpress_queue_total_open_old'] ); ?></li> 265 <li><?php printf( __( 'Within defined %d day time window:', 'wporg-plugins' ), $stats['num_days'] ); ?> 266 <ul style="margin-left:20px;margin-top:0.5em;"> 267 <li><?php printf( __( 'Total : %d', 'wporg-plugins' ), $stats['supportpress_queue_interval_all'] ); ?></li> 268 <li><?php printf( __( 'Closed : %d', 'wporg-plugins' ), $stats['supportpress_queue_interval_closed'] ); ?></li> 269 <li><?php printf( __( 'Open : %d', 'wporg-plugins' ), $stats['supportpress_queue_interval_open'] ); ?></li> 327 <li><?php 328 /* translators: %d: number of open tickets */ 329 printf( __( 'Total open tickets* : %d', 'wporg-plugins' ), 330 $stats['supportpress_queue_total_open'] 331 ); 332 ?></li> 333 <li><?php 334 /* translators: 1: number of most recent days, 2: number of plugins with no activity */ 335 printf( __( ' → (with no activity in last %1$d days)** : %2$d', 'wporg-plugins' ), 336 $stats['recentdays'], 337 $stats['supportpress_queue_total_open_old'] 338 ); 339 ?></li> 340 <li><?php 341 /* translators: %d: number of most recent days */ 342 printf( __( 'Within defined %d day time window:', 'wporg-plugins' ), 343 $stats['num_days'] 344 ); 345 ?><ul style="margin-left:20px;margin-top:0.5em;"> 346 <li><?php 347 /* translators: %d: total number of plugins within defined time window */ 348 printf( __( 'Total : %d', 'wporg-plugins' ), 349 $stats['supportpress_queue_interval_all'] 350 ); 351 ?></li> 352 <li><?php 353 /* translators: %d: number of closed plugins within defined time window */ 354 printf( __( 'Closed : %d', 'wporg-plugins' ), 355 $stats['supportpress_queue_interval_closed'] 356 ); 357 ?></li> 358 <li><?php 359 /* translators: %d: number of open plugins within defined time window */ 360 printf( __( 'Open : %d', 'wporg-plugins' ), 361 $stats['supportpress_queue_interval_open'] 362 ); 363 ?></li> 270 364 </ul> 271 365 </li>
Note: See TracChangeset
for help on using the changeset viewer.