Skip to content

Commit dd35ee6

Browse files
Tabs cleanup
1 parent a0f48f9 commit dd35ee6

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

translation-stats.php

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function ts_render_plugin_stats( $project_slug ) {
232232
echo sprintf( __( 'Translation for %s', 'translation-stats' ), $locale_link );
233233
?>
234234
</div>
235-
<?php
235+
<?php // To remove
236236
$test = true;
237237
$square = 128;
238238
?>
@@ -317,20 +317,21 @@ function ts_render_stats_bar( $locale, $project_slug, $subproject, $subproject_s
317317
// If translation stats are an object, get the percent translated property
318318
} else {
319319

320-
/* Get the 'percent_translated' property from subproject translation stats
321-
Example of allowed properties:
322-
[id] => 416518
323-
[name] => Portuguese (Portugal)
324-
[slug] => default | ao90 | informal
325-
[project_id] => 3333
326-
[locale] => pt
327-
[current_count] => 136
328-
[untranslated_count] => 0
329-
[waiting_count] => 0
330-
[fuzzy_count] => 0
331-
[percent_translated] => 100
332-
[wp_locale] => pt_PT
333-
[last_modified] => 2018-10-11 10:05:30
320+
/*
321+
Get the 'percent_translated' property from subproject translation stats
322+
Example of allowed properties:
323+
[id] => 416518
324+
[name] => Portuguese (Portugal)
325+
[slug] => default | ao90 | informal
326+
[project_id] => 3333
327+
[locale] => pt
328+
[current_count] => 136
329+
[untranslated_count] => 0
330+
[waiting_count] => 0
331+
[fuzzy_count] => 0
332+
[percent_translated] => 100
333+
[wp_locale] => pt_PT
334+
[last_modified] => 2018-10-11 10:05:30
334335
*/
335336
$percent_translated = $translation_stats->percent_translated;
336337
$i18n_error = false;

0 commit comments

Comments
 (0)