![]() |
|
Change default language - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: Change default language (/showthread.php?tid=4292) |
Change default language - diogorocha18 - 01-11-2018 Good afternoon, I would like to ask a little help. I'm translating the whole sentence into Portuguese from the code and wanted the table in my "tr_PT_tx" database to be the default when creating a user. I have already made a change to a file in /etc/sentora/panel/dryden/ui/language.class.php leaving it like this: PHP Code: <?phpHowever, there is still some file to move so that when creating a new user the default language is the PT. I await answers to help me. Greetings. RE: Change default language - TGates - 01-11-2018 There used to be a setting for default language without having to change any code. I'll have to take a look since I haven't used it in years
RE: Change default language - diogorocha18 - 01-11-2018 Sure thank you, can you get me the solution as soon as possible? RE: Change default language - TGates - 01-11-2018 I can not find anywhere a setting for 'Default Language' which I had thought was in the core some where... I also was not able to find where it actually enters the default language into the user's x_profiles database table In the file: \modules\manage_clients\code\controller.ext.php lines 532-542 is where it adds the user's information to the x_profiles database, but no reference of the language: Code: $sql = $zdbh->prepare("INSERT INTO x_profiles (ud_user_fk, ud_fullname_vc, ud_group_fk, ud_package_fk, ud_address_tx, ud_postcode_vc, ud_phone_vc, ud_created_ts) VALUES (:userid, :fullname, :packageid, :groupid, :address, :postcode, :phone, :time)");Code: $sql = $zdbh->prepare("INSERT INTO x_profiles (ud_user_fk, ud_fullname_vc, ud_language_vc, ud_group_fk, ud_package_fk, ud_address_tx, ud_postcode_vc, ud_phone_vc, ud_created_ts) VALUES (:userid, :fullname, 'PT', :packageid, :groupid, :address, :postcode, :phone, :time)");I think that because of the way the language system works, setting a language other than English as the default may have issues with lines that are not translated or empty. You may need to test that. RE: Change default language - diogorocha18 - 01-13-2018 Hi, But just put the PT or will I have to insert the complete table? RE: Change default language - TGates - 01-13-2018 Just PT RE: Change default language - blackstormy1804 - 05-09-2018 If there is a way to read the language of the computer is very good, I find that idea is very useful
RE: Change default language - nibaldo - 11-16-2018 When updating version is updated language table? |