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

Dominik Csapak d.csapak at proxmox.com
Fri Jun 9 10:54:11 CEST 2017


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

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
* use to_json instead of object
* enable utf8
 po/po2js.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/po/po2js.pl b/po/po2js.pl
index 6941f5c0..4d59b3b0 100755
--- a/po/po2js.pl
+++ b/po/po2js.pl
@@ -67,7 +67,7 @@ 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 $json = to_json($catalog, {canonical => 1, utf8 => 1});
 
 print <<__EOD
 // gettext catalog "$filename"
-- 
2.11.0





More information about the pve-devel mailing list