PDA

View Full Version : Question translate


mccharlet
6th June 2009, 15:20
Hi,

I want translate in french, but when i want modifed le left menu in the file ispconfig/interface/web/admin/lang/fr.lng, i don't work !!!

till
6th June 2009, 15:44
The translation for the left menu is also in the lang files, but it might be cached, so you have to logout and login again.

mccharlet
6th June 2009, 16:15
I have delete template files and logout, but this is the same problem :confused:

till
7th June 2009, 14:39
Do not delete templates, in this case the english words are used.

mccharlet
7th June 2009, 15:15
Temporary files and not template
Sorry

mccharlet
9th June 2009, 15:22
The problem is only for the left menu. with email, that don't works :confused:

If i modified this file web/admin/lib/lang/fr_server_ip_list.lng, no problem

radim_h
15th June 2009, 19:06
I can confirm - left menu isn't translated for ANY language, even if the lang files are on the place
as in http://www.howtoforge.com/forums/showthread.php?t=35749

Gimly
29th June 2009, 18:28
Exactly, I've the same problem :s. Can you look at this bug please ? Thanks :)

till
29th June 2009, 18:31
This has already been fixed in SVN some time ago and will be part of the next release.

mccharlet
29th June 2009, 19:50
This resolve the problem

line 160 in this file : /usr/local/ispconfig/interface/lib/app.inc.php

if(!file_exists($lng_file)) $lng_file = '/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng';
remplace by
if(!file_exists('/usr/local/ispconfig/interface'.$lng_file)) $lng_file = '/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng';

line 119 in this file : /usr/local/ispconfig/interface/admin/software_package_list.php
include_once('lib/lang/en_software_package_list.lng');
remplace by
include_once('lib/lang/'.$_SESSION['s']['language'].'_software_package_list.lng');



line 214 in this file : /usr/local/ispconfig/interface/admin/software_update_list.php
include_once('lib/lang/en_software_update_list.lng');
remplace by
include_once('lib/lang/'.$_SESSION['s']['language'].'_software_update_list.lng');


And it's OK

moglia
15th July 2009, 21:43
Im updated from svn its safe to do it. um folowing. pratically every day download and update my local repository.

run tool called like:

ispconfig_update_from_svn

download from svn updates.

Panel have a translation tool.
Im merge periodically my translation, with english.

Export a language to unique file. Open with a editor with unicode support UTF-8.
All strings on file is a array donīt change anyting at php only strings inside "".

Save your file.
And import again to panel.

To me itīs better than translate one by one. at translator tool in panel.

itīs worked to me, i have 2 ispconfg3 copies one for testing and one for prodution. running into debian lenny (host and guest) and vmware.