default language

Lem0nHead

Verified User
Joined
Nov 28, 2004
Messages
265
hello

i created a pt language for enhanced skin
i want it to be the default after account creation

how can i set that?

thanks
 
Code:
-su-2.05b# pwd
/usr/local/directadmin/data/skins/enhanced/lang
-su-2.05b# ls
en      pt
 
Hello,

Edit /usr/local/directadmin/conf/directadmin.conf.

Add/edit:

language=pt

Restart DA. If you type:

/usr/local/directadmin c | grep language

it should show you what you've got set.

John
 
Hello,

Sorry about that. Typo, my fault.

/usr/local/directadmin/directadmin c | grep language

John
 
Hello,

Thanks for the reply. You've just found a bug ;) The workaround is to set the language of the admin/reseller account that is creating the user, to the language you want the new user to have. I'll have it fixed for the next release.

Thanks,

John
 
Hi John,

It might be better to add this as an option with the User / Reseller Packages. I have resellers who want the language set to EN and other who want it set to NL, currently I only have the option to split them accross 2 different servers based on the language. I would rather be able to split accounts accross servers based on serverload and not on language.

Regards,
Onno Vrijburg



DirectAdmin Support said:
Hello,

Thanks for the reply. You've just found a bug ;) The workaround is to set the language of the admin/reseller account that is creating the user, to the language you want the new user to have. I'll have it fixed for the next release.

Thanks,

John
 
I agree with the previous poster. It would be really nice to have a default language selector (just like the default skin selector for packages), and that way create packages with certain languages related to them.

This would be especially great for those linux ignorant admins like myself who shake everytime they use putty to make a change.

Cheers !
 
Hello,

I havn't tested this, it may not work, but it might be exactly what you're looking for if it does.

Realting to this guide:
http://www.directadmin.com/features.php?id=479

1) create: /usr/local/directadmin/data/admin/custom_package_items.conf

2) add:
Code:
language=type=listbox&item1txt=English&item1val=en&item2txt=Spanish&item2val=es&string=Select Language&desc=select the language you want the user to have&default=en
That should make the language option show up in the skins. The only real question I have not tested is if this overwrite the default or not (basically, who goes first)... I'm thinking it should work great, but you'll have to test that out to be sure ;)

Delete the custom_package_items.conf file if you want to abort it.

:)

John
 
Hi John,

I'm not a Linux expert, but I think I followed your sintructtions correctly:

I creted a text file named custom_package_items.conf

I only added the code :

Code:
language=type=listbox&item1txt=English&item1val=en&item2txt=Spanish&item2val=es&string=Select Language&desc=select the language you want the user to have&default=es

exactly how your code was, except I change the default to 'es' (spanish) as you can see.

Uploaded in the folder specified, and can't find any langauge options anywhere. I've checked both in the skin manager and in the package creation section...

Is it not working for me or am I not looking in the right area ?

Thanks for the quick help nevertheless :)
 
1) Make sure you're using a DA skin (not a cusotm skin), (eg: "enhanced") and a reasonably new version of DA.
2) It should show up in the "Manage User Packages" location when you're viewing the details, among other places (it actually should show up everywhere there is a package or user setup option)

John
 
ohhh kay.

Maybe that's the problem. I am using marina3. None of the default skins have spanish anyway do they ?

Cheers
 
Thanks John,

The problem is I have about 120 users and all use marina3, which has been translated almost 100%

It's a really nice looking skin, and would hate to switch to the default ones (No pun intended)

Any other ideas to simply have a language drop down selector for the packages ?

Cheers :) and thanks for the help
 
Hi John,

Thanks again for your help. I read the instructions , but what I don't know is, what would the alphanumeric value for language be ? Where can I find a list of these options and what their alphanumeric value is ??

Rembmer, I'm a bit of a newbie :) Thanks for your patience.
 
Am I still using this code along with those instructions ?



Thanks
Code:
language=type=listbox&item1txt=English&item1val=en&item2txt=Spanish&item2val=es&string=Select Language&desc=select the language you want the user to have&default=es
 
Back
Top