aboutsummaryrefslogtreecommitdiffstats
path: root/langs/report_tx_git.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs/report_tx_git.php')
-rw-r--r--langs/report_tx_git.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/langs/report_tx_git.php b/langs/report_tx_git.php
index 0e6749ed9..4f56b9e1b 100644
--- a/langs/report_tx_git.php
+++ b/langs/report_tx_git.php
@@ -508,7 +508,7 @@ foreach ($tx_resources as $one_resource) {
$tx_resource_name = str_replace('page-', '', $tx_resource_name); // unify resource names
$one_resource['tx_resource_name'] = $tx_resource_name;
$one_resource['statistic'] = $tx_stat_for_resource;
- $tx_resources_info[] = $one_resource;
+ $tx_resources_info[$tx_resource_name] = $one_resource;
}
}
}
@@ -529,6 +529,7 @@ if ('Webpages' == $resource_type) {
$report = generating_report(get_other_langs(), $enFiles);
} else {
$tx_resources_not_yet_in_git = array();
+ $translated_in_tx = ' translated in Transifex';
foreach ($git_resources as $git_resource_details) {
$tx_name = $git_resource_details['tx_name'];
if (!empty($wanted_resource) && $tx_name != $wanted_resource) {
@@ -555,7 +556,10 @@ if ('Webpages' == $resource_type) {
$report_language_codes = array($wanted_language);
} else {
$report_language_codes = array();
- $tx_resources_not_yet_in_git[] = $tx_name;
+ $completion = $tx_resources_info[$tx_name]['statistic'][$wanted_language]['completed'];
+ $completion .= $translated_in_tx;
+ $translated_in_tx = '';
+ $tx_resources_not_yet_in_git[] = "$tx_name ($completion)";
$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.";
}