Making WordPress.org


Ignore:
Timestamp:
07/12/2018 07:31:42 PM (6 years ago)
Author:
obenland
Message:

Translate: There can't be a translation backlog of less than 0.

Props GaryJ.
Fixes #3713.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-project.php

    r6770 r7444  
    149149                    </td>
    150150                    <td class="stats untranslated">
    151                         <?php gp_link( gp_url_project( $sub_project->path, gp_url_join( $locale->slug, $set_slug ), array( 'filters[status]' => 'untranslated' ) ), absint( $sub_project_status->all_count ) -  absint( $sub_project_status->current_count ) ); ?>
     151                        <?php gp_link( gp_url_project( $sub_project->path, gp_url_join( $locale->slug, $set_slug ), array( 'filters[status]' => 'untranslated' ) ), max( 0, absint( $sub_project_status->all_count ) -  absint( $sub_project_status->current_count ) ) ); ?>
    152152                    </td>
    153153                    <td class="stats waiting">
     
    187187                    </td>
    188188                    <td class="stats untranslated">
    189                         <?php gp_link( gp_url_project( $sub_project->path, gp_url_join( $locale->slug, $set_slug ), array( 'filters[status]' => 'untranslated' ) ), absint( $status->all_count ) -  absint( $status->current_count ) ); ?>
     189                        <?php gp_link( gp_url_project( $sub_project->path, gp_url_join( $locale->slug, $set_slug ), array( 'filters[status]' => 'untranslated' ) ), max( 0, absint( $status->all_count ) -  absint( $status->current_count ) ) ); ?>
    190190                    </td>
    191191                    <td class="stats waiting">
Note: See TracChangeset for help on using the changeset viewer.