Skip to content

Commit

Permalink
Use translatable strings in graph plugin pages
Browse files Browse the repository at this point in the history
The developer and reporter graphs introduced in MantisBT 2.0 used
hardcoded strings to display text instead of relying on
plugin_lang_get().

Fixes #22987

Signed-off-by: Damien Regad <dregad@mantisbt.org>

Original commits squashed, commit message rewritten.
  • Loading branch information
7h3ju57 authored and dregad committed Jun 9, 2017
1 parent 860bc99 commit a48ca12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions plugins/MantisGraph/lang/strings_english.txt
Expand Up @@ -85,3 +85,6 @@ $s_plugin_MantisGraph_period_year_to_date = 'Year to Date';
$s_plugin_MantisGraph_period_select = 'Arbitrary Dates';
$s_plugin_MantisGraph_period_last_year = 'Last Year';
$s_plugin_MantisGraph_graph_page = 'Graph Issue History';
$s_plugin_MantisGraph_graph_topdev = 'Top Developers by Fixed Issues';
$s_plugin_MantisGraph_graph_opendev = 'Developers by Open Issues';
$s_plugin_MantisGraph_graph_topreporter_fixed = 'Top Reporters by Fixed Issues';
4 changes: 2 additions & 2 deletions plugins/MantisGraph/pages/developer_graph.php
Expand Up @@ -52,7 +52,7 @@
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart"></i>
<?php echo 'Top Developers by Fixed Issues' ?>
<?php echo plugin_lang_get('graph_topdev') ?>
</h4>
</div>

Expand All @@ -66,7 +66,7 @@
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart"></i>
<?php echo 'Developers by Open Issues' ?>
<?php echo plugin_lang_get('graph_opendev') ?>
</h4>
</div>

Expand Down
2 changes: 1 addition & 1 deletion plugins/MantisGraph/pages/reporter_graph.php
Expand Up @@ -52,7 +52,7 @@
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart"></i>
<?php echo 'Top Reporters by Fixed Issues' ?>
<?php echo plugin_lang_get('graph_topreporter_fixed') ?>
</h4>
</div>
<?php
Expand Down

0 comments on commit a48ca12

Please sign in to comment.