Making WordPress.org


Ignore:
Timestamp:
02/14/2019 06:43:05 AM (7 years ago)
Author:
dd32
Message:

Translate: Add a per-locale stats page which lists plugin/theme translation status.

Notes:

  • This is currently not linked from anywhere.
  • The number displayed (250) may be lowered, currently only ~245 theme projects and ~200 plugin projects are displayed due to filtering.
  • Plugins displays based on Code (Dev+Stable) + Readme (Dev+Stable).

Examples:

See #2290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/class-plugin.php

    r6851 r8249  
    8888     *  - (/locale)/$locale/$dir/glossary/-export
    8989     *  - (/locale)/$locale/$dir/glossary/-import
     90     *  - /locale/$locale/$dir/stats(?:/(plugins|themes))?s
    9091     *  - /stats/?
    9192     *  - /projects/wp-plugins/$project
     
    143144            GP::$router->prepend( "(/locale)/$locale/$dir/glossary/-import", array( 'GP_Route_Glossary_Entry', 'import_glossary_entries_get' ) );
    144145            GP::$router->prepend( "(/locale)/$locale/$dir/glossary/-import", array( 'GP_Route_Glossary_Entry', 'import_glossary_entries_post' ), 'post' );
     146            GP::$router->prepend( "/locale/$locale/$dir/stats(?:/(plugins|themes))?", array( __NAMESPACE__ . '\Routes\Stats', 'get_stats_plugin_theme_overview' ) );
    145147            GP::$router->prepend( '/stats', array( __NAMESPACE__ . '\Routes\Stats', 'get_stats_overview' ) );
    146148            GP::$router->prepend( '/consistency', array( __NAMESPACE__ . '\Routes\Consistency', 'get_search_form' ) );
Note: See TracChangeset for help on using the changeset viewer.