Making WordPress.org


Ignore:
Timestamp:
09/18/2015 01:45:24 PM (10 years ago)
Author:
ocean90
Message:

Translate: Initialize count for warnings in GP_WPorg_Project_Stats::get_project_translation_counts.

File:
1 edited

Legend:

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

    r1882 r1891  
    44 * This plugin stores the Translation Count Status into a DB table for querying purposes.
    55 *
    6  * The data is pulled from GP_Translation_Set stat functions and updated in the DB whenever 
     6 * The data is pulled from GP_Translation_Set stat functions and updated in the DB whenever
    77 * a new translation is submitted, or new originals are imported.
    88 * The datbase update is delayed until shutdown to bulk-update the database during imports.
     
    4545    }
    4646
    47     // Counts up all the 
     47    // Counts up all the
    4848    function get_project_translation_counts( $project_id, $locale, $locale_slug, &$counts = array() ) {
    4949        if ( ! $counts ) {
    50             $counts = array( 'all' => 0, 'current' => 0, 'waiting' => 0, 'fuzzy' => 0, 'warning' => 0, 'untranslated' => 0 );
     50            $counts = array( 'all' => 0, 'current' => 0, 'waiting' => 0, 'fuzzy' => 0, 'warnings' => 0, 'untranslated' => 0 );
    5151        }
    5252
     
    8888                }
    8989            }
    90    
     90
    9191        }
    9292
     
    116116                list( $locale, $locale_slug ) = $locale_set;
    117117                $counts = $this->get_project_translation_counts( $project_id, $locale, $locale_slug );
    118    
     118
    119119                $values[] = $gpdb->prepare( '(%d, %s, %s, %d, %d, %d, %d, %d, %d)',
    120120                    $project_id,
Note: See TracChangeset for help on using the changeset viewer.