Making WordPress.org

Changeset 1872


Ignore:
Timestamp:
09/11/2015 05:12:39 AM (10 years ago)
Author:
dd32
Message:

Translate: Include fuzzy strings in the Waiting tabs. Although these are not Waiting strings submitted by users, they're waiting strings located by GlotPress, it makes sense that these should be included in the reviews.

Location:
sites/trunk/translate.wordpress.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php

    r1848 r1872  
    430430            if ( $can_approve_for_all ) {
    431431                // The current user can approve for all projects, so just grab all with any waiting strings.
    432                 $parent_project_sql = 'AND stats.waiting > 0';
     432                $parent_project_sql = 'AND ( stats.waiting > 0 OR stats.fuzzy > 0 )';
    433433
    434434            } elseif ( $allowed_projects ) {
     
    480480
    481481            case 'strings-waiting':
    482                 $filter_where = 'AND stats.waiting > 0';
    483                 $filter_order_by = 'stats.waiting DESC, tp.name ASC';
     482                $filter_where = 'AND (stats.waiting > 0 OR stats.fuzzy > 0 )';
     483                $filter_order_by = 'stats.fuzzy DESC, stats.waiting DESC, tp.name ASC';
    484484                break;
    485485
  • sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-projects.php

    r1836 r1872  
    8989        // Link directly to the Waiting strings if we're in the Waiting view, otherwise link to the project overview
    9090        if ( 'waiting' == $project->slug ) {
    91             $project_url = gp_url_join( '/projects', $sub_project->path, $locale_slug, $set_slug ) . '?filters[status]=waiting';
     91            $project_url = gp_url_join( '/projects', $sub_project->path, $locale_slug, $set_slug ) . '?filters[status]=waiting&filters[status]=fuzzy';
    9292        } else {
    9393            $project_url = gp_url_join( '/locale', $locale_slug, $set_slug, $sub_project->path );
Note: See TracChangeset for help on using the changeset viewer.