View Single Post
Old 28th August 2006, 15:57
SupuS SupuS is offline
HowtoForge Supporter
Join Date: May 2006
Posts: 202
Thanks: 68
Thanked 14 Times in 12 Posts
Lightbulb Translation HowTo

Hi all ..

I translated ispconfig to czech language .. and here is small guide how you can translate ispconfig to your language too .. sorry for my english ..

I hope it somebody helps ..

I wanted use utf-8 but it was not work properly .. so I used my national charset encoding .. I translated to czech language so I used cz as my lang and iso-8859-2 charset encoding.

1. copy english language files

you can use this to locate *.lng and *.hlp english files:

# locate en.lng
if you want translate help files too ..

# locate *.hlp |grep en
You can copy /root/ispconfig/isp/standard_index.html_en too if you want have localize standard index

copy these files to new one .. in my case I copied its to cz.lng, cz*.hlp and standard_index.html_cz

2. change setting in
edit /home/admispconfig/ispconfig/lib/ from
$go_info["server"]["lang"] = "en";
$go_info["theme"]["charset"] = "iso-8859-1";
to your language setting .. in my case to
$go_info["server"]["lang"] = "cz";
$go_info["theme"]["charset"] = "iso-8859-2";
3. first testing if everything is ok ..
reload your ispconfig .. if you don't see any changes all is ok

4. Now translate text in new created files to your language ..
remember that you have to use right charset encoding .. same as you will use on ispconfig pages. It will be a lot of work .. you will translate a lot of sentenses more than once .. so be patient .. sometimes check your work by reloading ispconfig .. it should be partialy translated ..

Done? Now you have to change charset encoding in some files.

5. changing and adding meta tags

For properly working encoding you have to change or insert meta tags to some files .. here is list of its ..

change from
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
to (change to your needs)
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
or simply insert new line with (change to your needs)

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">

/home/admispconfig/ispconfig/web/index.html (you can change title to your needs too ..)

menu files (put meta tag after <title></title> tag):

"loading folders" files (put meta tag after <title></title> tag):
-- in these files change english text to your language too if you don't like "loading folders"


6. Translating of error pages

Go to /root/ispconfig/isp/ and copy error_en to error_XX (in my case error_cz) and edit *.html files in created directory.

And it is all .. that was quite easy .. wasn't that?

Little suggestion for Falco and Till .. if it is possible it would be nice to have meta tags in files listed here with charset encoding variable from file .. translation will be more easy ..


Last edited by SupuS; 15th December 2006 at 02:25. Reason: translation of error pages added
Reply With Quote
Sponsored Links