PDA

View Full Version : how to create a language package?


flourishing
10th December 2005, 12:39
how to create a language package?

till
10th December 2005, 12:47
You will have to start with an existing anguage pack, e.g english (en). If you want to build e.g a finnish translation, make a copy of all en.lng files above the directory:

/home/admispconfig/ispconfig/

and name the files fi.lng. Then translate the contents. Only the string on the right side of the "=" of course ;-)

flourishing
10th December 2005, 14:15
after that the language fl with come to a option in tools--language ?

and i haven't found any lang file in that directory

falko
10th December 2005, 15:08
Have a look at this post: http://www.howtoforge.com/forums/showpost.php?p=8715&postcount=2

till
10th December 2005, 15:13
after that the language fl with come to a option in tools--language ?

Yes.

and i haven't found any lang file in that directory

They are not IN the directory, there are in many directories above this path!

run:

locate en.lng

to get a listing of all english language files.

flourishing
10th December 2005, 21:39
not really .


i have create cn.lng in that directories. but i can 't find the option cn in

tools --language.

what is the more steps to make the new cn.lang can be displayed in tools---language???

till
10th December 2005, 22:39
There are no more steps, but you have not created all lng files. You missed the master language file:

/home/admispconfig/ispconfig/lib/lang/cn.lng

flourishing
11th December 2005, 11:36
yeah. i missed that file in isp .

and now it works .
but most parts of gui works fine .but some displayed mess.

such as first line and the text under the button . where i can modified it ?

till
11th December 2005, 11:42
such as first line and the text under the button . where i can modified it ?

I dont know which text under which button you mean. All texts are in the language files.

flourishing
11th December 2005, 12:26
yes i know all the text are in lang file

except the button and the first line text displayed mass , i don'know why ,but the other works fine.

see this jpg

flourishing
12th December 2005, 05:10
thanks i already knew it .