how to change the language default in cpanel

m0rpheu5

Well-Known Member
Jun 16, 2005
75
0
156
Brazil, Curitiba/PR
cPanel Access Level
Root Administrator
I would like to know how can i change the language default, so when i create an account, the language default is english, so i have always to modify this accout to change the language, how can i do, to when i create an account, the language default for this account be portuguese brazil.

Thanks
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
Please don't just post "me too" - it doesn help resolve a problem. If you believe that you've found a reproducable bug then log it in bugzilla if it is not there already and/or log a ticket with cPanel through your cPanel license provider.
 

pyrius

Registered
Jul 27, 2006
1
0
151
default language

Hello guys
Have you find the decision how to switch default language from english to other language?
 
Last edited:

kokoman

Active Member
Nov 28, 2002
27
0
151
BA, Argentina
A little script for change the language within your created accounts.

Using your favourite text editor (vi, pico, etc), copy the lines between "####", paste it, save it and run it.

####

#!/bin/sh

# This script will replace the language defined within each /home/$user/.lang

if [ ! $1 ] || [ ! $2 ]; then
echo "usage: $0 <old_lang> <new_lang>"
exit 0
fi

# Defined language.
OLD_LANG=$1

# New language to be set.
NEW_LANG=$2

for dirs in /home/*; do
if [ -f $dirs/.lang ]; then
grep -q $OLD_LANG$ $dirs/.lang
if [ $? -eq 0 ]; then
echo $NEW_LANG > $dirs/.lang
fi
fi
done

####
 

hekri

Well-Known Member
Oct 14, 2003
147
2
168
We also waiting to someone fix it, to thise day we put our lang as
x3/lang/english and run cachelang and everything was ok, in new stable it
doesnt work :(
 

inet27

Registered
May 19, 2006
1
0
151
You can write script that edits /var/cpanel/users/* and replaces LANGUAGE=(.*) to any any language. Don't forget to run /scripts/updateuserdomains after it.
 

hpsmaster2

Member
Mar 1, 2005
6
0
151
How can do this:

At ssh run this command:

1) First run this command:
replace LANG=english LANG=portuguese -- /var/cpanel/users/*

2) Run this now
/scripts/updateuserdomains

You Can change at this code LANG=portuguse to Lang=spanish etc..

After this you will change all english accounts to your language.

EASY.
:)
 
Sep 11, 2006
6
0
151
Cpanel guys haven't yet figure out that this is MUST HAVE TOOL! for everyone using Cpanel and having business in other languages, I don't think that it will be so difficult for Cpanel to make a patch for it, I've been hearing about 8 months now about adding that functionality and nothing yet, I'll wait one more month or I'll take my business some place else, I'm tired of excuses on this issue, YES! THIS IS A BIG ISSUE!

Hope it will get resolve soon, it doesn't make sense having cpanel 11 and still no tool for making the default language the way that customers need.



Antonio.