aboutsummaryrefslogtreecommitdiffstats
path: root/langs/report_tx_git.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-10-11 21:52:42 +0200
committerfilip <filip.komar@gmail.com>2016-10-11 21:52:42 +0200
commit6c78b8851d1decc4e84195a6d972d0501c6685e4 (patch)
tree7acc3ff7b4e25d766e4a0609a7b200ec5c3d7b23 /langs/report_tx_git.php
parente135975655eb7be56e4349724f93ec93eb1cc33d (diff)
downloadwww-6c78b8851d1decc4e84195a6d972d0501c6685e4.tar
www-6c78b8851d1decc4e84195a6d972d0501c6685e4.tar.gz
www-6c78b8851d1decc4e84195a6d972d0501c6685e4.tar.bz2
www-6c78b8851d1decc4e84195a6d972d0501c6685e4.tar.xz
www-6c78b8851d1decc4e84195a6d972d0501c6685e4.zip
finally treat TS files properly in TX/git diff report
Diffstat (limited to 'langs/report_tx_git.php')
-rw-r--r--langs/report_tx_git.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/langs/report_tx_git.php b/langs/report_tx_git.php
index 5de51deff..d6f108b15 100644
--- a/langs/report_tx_git.php
+++ b/langs/report_tx_git.php
@@ -77,7 +77,11 @@ if ($details_wanted) {
if (!empty($tx_file)) {
$tx_file_content = $tx_file['content'];
$tx_file_content = explode("\n", $tx_file_content);
- $parsed_tx_file_content = phpmo_parse_po_file($tx_file_content, FALSE);
+ if ('mageiasync' == $wanted_resource_name) { // treat TS files differently
+ $parsed_tx_file_content = _parse_ts_file($tx_file_content, FALSE);
+ } else {
+ $parsed_tx_file_content = phpmo_parse_po_file($tx_file_content, FALSE);
+ }
}
}