diff options
author | filip <filip.komar@gmail.com> | 2016-07-13 22:51:28 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-07-13 22:51:28 +0200 |
commit | 90681b3d19b5edd57a0bb41b1146ce7c13f6f176 (patch) | |
tree | e4ada68492da814ab6c83c1b5732e5cd85e122fb /langs | |
parent | 0543aec0b15737f343b9007114e1034c735e0fb9 (diff) | |
download | www-90681b3d19b5edd57a0bb41b1146ce7c13f6f176.tar www-90681b3d19b5edd57a0bb41b1146ce7c13f6f176.tar.gz www-90681b3d19b5edd57a0bb41b1146ce7c13f6f176.tar.bz2 www-90681b3d19b5edd57a0bb41b1146ce7c13f6f176.tar.xz www-90681b3d19b5edd57a0bb41b1146ce7c13f6f176.zip |
show all uncommitted resources in git for certain language
Diffstat (limited to 'langs')
-rw-r--r-- | langs/report_tx_git.php | 5 |
1 files changed, 4 insertions, 1 deletions
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); |