From 90681b3d19b5edd57a0bb41b1146ce7c13f6f176 Mon Sep 17 00:00:00 2001 From: filip Date: Wed, 13 Jul 2016 22:51:28 +0200 Subject: show all uncommitted resources in git for certain language --- langs/report_tx_git.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/langs/report_tx_git.php b/langs/report_tx_git.php index 0721c7255..12ebe7f24 100644 --- a/langs/report_tx_git.php +++ b/langs/report_tx_git.php @@ -500,6 +500,7 @@ if ('Webpages' == $resource_type) { $enFiles = array_merge(array('../_nav/langs/en.pot'), get_lang_references('*.pot')); // added navigation file $report = generating_report(get_other_langs(), $enFiles); } else { + $tx_resources_not_yet_in_git = array(); foreach ($git_resources as $git_resource_details) { $tx_name = $git_resource_details['tx_name']; if (!empty($wanted_resource) && $tx_name != $wanted_resource) { @@ -526,7 +527,9 @@ if ('Webpages' == $resource_type) { $report_language_codes = array($wanted_language); } else { $report_language_codes = array(); - $errors['lang_not_in_git'] = "Language $wanted_lang_name is not present in git for $tx_name resource."; + $tx_resources_not_yet_in_git[] = $tx_name; + $resources_not_yet_in_git = implode(", ", $tx_resources_not_yet_in_git); + $errors['lang_not_in_git'] = "Language $wanted_lang_name is not present in git for $resources_not_yet_in_git resource."; } } $one_report = generating_report(array_values($report_language_codes), array($tx_name), $git_path, $pot_name); -- cgit v1.2.1