From 0e1855c9b12ed63cef75651a4ab4b0e3e40fe626 Mon Sep 17 00:00:00 2001
From: Romain d'Alverny
Date: Thu, 24 May 2012 16:06:13 +0000
Subject: output can be better c/pasted into editor
---
langs/diff.php | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
(limited to 'langs/diff.php')
diff --git a/langs/diff.php b/langs/diff.php
index e9a3c44f8..89ec341a1 100644
--- a/langs/diff.php
+++ b/langs/diff.php
@@ -37,24 +37,29 @@ if (false === strstr($source_file, '/langs/') ||
$diff = _lang_diff($source_file, $target_file);
$s = '« back to langs report';
-$s .= "Diff {$source_file} ({$diff['a']}) against {$target_file} ({$diff['b']})
";
+$s .= sprintf('Differences between %s source and %s target
',
+ substr($source_file, strpos($source_file, '/langs/')+7), $target_lang);
foreach (array('missing', 'notrans', 'extra') as $type) {
if (count($diff[$type]) > 0) {
$s .= sprintf('%d %s:
', count($diff[$type]), $type);
+ $s .= '';
foreach ($diff[$type] as $l)
- $s .= sprintf('%s
', htmlentities($l));
+ $s .= sprintf(";%s\n\n", htmlspecialchars($l));
+ $s .= '';
}
}
+header('Content-Type: text/html;charset=utf-8');
+
?>
--
cgit v1.2.1