- Timestamp:
- 09/18/2015 01:45:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-project-stats.php
r1882 r1891 4 4 * This plugin stores the Translation Count Status into a DB table for querying purposes. 5 5 * 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 7 7 * a new translation is submitted, or new originals are imported. 8 8 * The datbase update is delayed until shutdown to bulk-update the database during imports. … … 45 45 } 46 46 47 // Counts up all the 47 // Counts up all the 48 48 function get_project_translation_counts( $project_id, $locale, $locale_slug, &$counts = array() ) { 49 49 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 ); 51 51 } 52 52 … … 88 88 } 89 89 } 90 90 91 91 } 92 92 … … 116 116 list( $locale, $locale_slug ) = $locale_set; 117 117 $counts = $this->get_project_translation_counts( $project_id, $locale, $locale_slug ); 118 118 119 119 $values[] = $gpdb->prepare( '(%d, %s, %s, %d, %d, %d, %d, %d, %d)', 120 120 $project_id,
Note: See TracChangeset
for help on using the changeset viewer.