[pve-devel] [PATCH manager 3/5] make language js files consistent

Dominik Csapak d.csapak at proxmox.com
Fri Jun 9 09:55:26 CEST 2017


else every package we build has different orderings for the translated
strings

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 po/po2js.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/po/po2js.pl b/po/po2js.pl
index 6941f5c0..76a84695 100755
--- a/po/po2js.pl
+++ b/po/po2js.pl
@@ -67,7 +67,8 @@ foreach my $k (keys %$href) {
 #use Data::Dumper;
 #print STDERR Dumper(encode_json({test => decode('UTF-8', "müssen")}));
 
-my $json = encode_json($catalog);
+my $jsono = JSON->new->canonical(1);
+my $json = $jsono->encode($catalog);
 
 print <<__EOD
 // gettext catalog "$filename"
-- 
2.11.0





More information about the pve-devel mailing list