Skip to content

Commit

Permalink
Use language strings for column labels
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
dregad committed Sep 8, 2019
1 parent 96ee1fa commit db33cd1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
7 changes: 5 additions & 2 deletions lang/strings_english.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ $s_plugin_GaugeSupport_already_resolved = 'This issue is already marked as resol

// ranking
$s_plugin_GaugeSupport_sup_sta_dis = 'Support Stance Distribution';
$s_plugin_GaugeSupport_rating_count = 'Total Ratings';
$s_plugin_GaugeSupport_rating_high = 'Highest Rating';
$s_plugin_GaugeSupport_rating_low = 'Lowest Rating';
$s_plugin_GaugeSupport_ACS_abbr = 'ACS';
$s_plugin_GaugeSupport_ACS_elab = 'Absolute Community Support';
$s_plugin_GaugeSupport_ACS_label = 'Absolute Community Support';
$s_plugin_GaugeSupport_ASPU_abbr = 'ASPU';
$s_plugin_GaugeSupport_ASPU_elab = 'Average Support per User';
$s_plugin_GaugeSupport_ASPU_label = 'Average Support per User';
$s_plugin_GaugeSupport_show_all_pos = '» Show all {project} issues, highest-supported first';
$s_plugin_GaugeSupport_show_all_neg = '» Show all {project} issues, lowest-supported first';
14 changes: 7 additions & 7 deletions pages/issue_ranking.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@

<table class="table table-bordered table-condensed table-striped">
<tr>
<th>Bug-id</th>
<th>Summary</th>
<th>Total Ratings</th>
<th>Absolute Community Support</th>
<th>Average Support per User</th>
<th>Highest rating</th>
<th>Lowest Rating</th>
<th><?php echo lang_get( 'id' ); ?></th>
<th><?php echo lang_get( 'summary' ); ?></th>
<th><?php echo plugin_lang_get( 'rating_count' ); ?></th>
<th><?php echo plugin_lang_get( 'ACS_label' ); ?></th>
<th><?php echo plugin_lang_get( 'ASPU_label' ); ?></th>
<th><?php echo plugin_lang_get( 'rating_high' ); ?></th>
<th><?php echo plugin_lang_get( 'rating_low' ); ?></th>
</tr>
<?php
foreach($resultset as $bugid => $data) {
Expand Down

0 comments on commit db33cd1

Please sign in to comment.