From a48ca12f1bdee9b91f8e4543e64aba033ad79366 Mon Sep 17 00:00:00 2001 From: Justin Theberge Date: Thu, 8 Jun 2017 14:12:42 -0400 Subject: [PATCH] Use translatable strings in graph plugin pages 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 Original commits squashed, commit message rewritten. --- plugins/MantisGraph/lang/strings_english.txt | 3 +++ plugins/MantisGraph/pages/developer_graph.php | 4 ++-- plugins/MantisGraph/pages/reporter_graph.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/MantisGraph/lang/strings_english.txt b/plugins/MantisGraph/lang/strings_english.txt index f239298e22..bc1bf811f9 100644 --- a/plugins/MantisGraph/lang/strings_english.txt +++ b/plugins/MantisGraph/lang/strings_english.txt @@ -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'; diff --git a/plugins/MantisGraph/pages/developer_graph.php b/plugins/MantisGraph/pages/developer_graph.php index d5be8bdc37..9f429ab7a7 100644 --- a/plugins/MantisGraph/pages/developer_graph.php +++ b/plugins/MantisGraph/pages/developer_graph.php @@ -52,7 +52,7 @@

- +

@@ -66,7 +66,7 @@

- +

diff --git a/plugins/MantisGraph/pages/reporter_graph.php b/plugins/MantisGraph/pages/reporter_graph.php index 8d098e3a48..941bfe0afc 100644 --- a/plugins/MantisGraph/pages/reporter_graph.php +++ b/plugins/MantisGraph/pages/reporter_graph.php @@ -52,7 +52,7 @@

- +