[PVE-User] Proxmox VE 2.0 beta 4 i18n patch

Koichi MATSUMOTO mzch at me.com
Wed Nov 30 02:57:51 CET 2011


Hi,

Even if PVE beta 4 is added a new language file, it won't be shown.
Somehow only German is without problem...why...?
(Of course, I added 'ja:Japanese' into language_map: of ext4/pvemanagerlib.js

In the meantime, I applied the patch below and confirmed to work well.

Regards.


--- index.pl.orig	2011-11-29 17:25:39.000000000 -0800
+++ index.pl	2011-11-29 17:41:16.000000000 -0800
@@ -24,7 +24,8 @@
 # NOTE: Requests to this page are not authenticated
 # so we must be very careful here 
 
-my $lang = 'en';
+my @langlist = split(/,/, $ENV{'HTTP_ACCEPT_LANGUAGE'});
+my $lang = @langlist[0];
 
 my $r = Apache2::RequestUtil->request();
 my $username;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4292 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20111130/3907bb12/attachment.bin>


More information about the pve-user mailing list