From 6c78b8851d1decc4e84195a6d972d0501c6685e4 Mon Sep 17 00:00:00 2001 From: filip Date: Tue, 11 Oct 2016 21:52:42 +0200 Subject: finally treat TS files properly in TX/git diff report --- langs/report_tx_git.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'langs/report_tx_git.php') 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); + } } } -- cgit v1.2.1