Softaculous


Topic : Localization not working


Posted By: count on October 11, 2024, 12:29 pm
Hello!

We are using Virtualizor Version    3.2.1 (KVM) and WHMCS 8.10.1.
In the client area (WHMCS), when working with a VPS, all the inscriptions are in English, although the entire personal account page is in Ukrainian. We found files in the /languages ​​folder and corrected the untranslated moments (Graphs, Tasks, Network, etc.), but they are still displayed in the system in English. (Screenshot added)

Please tell us if additional settings are needed to enable localization?

Thank you in advance!

Posted By: jevingala on October 14, 2024, 8:00 am | Post: 1
Hi,


You will need to set the language in account settings in WHMCS client area only then it will work.


Edited by jevingala : October 14, 2024, 8:01 am

-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Posted By: count on October 14, 2024, 12:20 pm | Post: 2
Quote
You will need to set the language in account settings in WHMCS client area only then it will work.


The language is set in the WHMCS account settings.
All pages of the WHMCS are translated. The problem is in the virtual machine control widget.

Posted By: rohitbind on October 16, 2024, 11:55 am | Post: 3
Hi Sir,


Can you please change ukraine language folder to ukranian
and then try ?




Please let us know,

Posted By: rohitbind on October 16, 2024, 11:59 am | Post: 4
Hi Sir,


Can you please change ukraine language folder to ukranian
and then try ?
The location of a folder is >>> public_html/whmcs/modules/servers/virtualizor/languages




Please let us know, [

Posted By: rohitbind on October 16, 2024, 11:59 am | Post: 5
Hi Sir,


Can you please change ukraine language folder to ukranian
and then try ?
The location of a folder is >>> public_html/whmcs/modules/servers/virtualizor/languages




Please let us know,

Posted By: count on October 16, 2024, 12:42 pm | Post: 6
Quote
Can you please change ukraine language folder to ukranian and then try ?


Already renamed the directory. Nothing has changed in virtual machine's control widget.


To check whether the contents of the localization file affect the displayed text I have changed string $l['firewall'] to Frwlz in english version of the file index_lang.php (with Ukrainian language selected in WHMCS)

Then I have opened the "page source" in my browser.
The mentioned string was found in the "source" here:

PHP Code

 <a href="javascript:loadpage('act=firewallplan')" id="lmfirewallplan" class="!hidden lm-link-class">
                    <
span class="left_menu_i"><svg class="h-6 inline" viewBox="-2.4 -2.4 28.8 28.8" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"/><g stroke-linecap="round" stroke-linejoin="round"/><g stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 20H6.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C3 18.48 3 17.92 3 16.8V7.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C4.52 4 5.08 4 6.2 4h9.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C19 5.52 19 6.08 19 7.2V8H3m0 4h8V8m-8 8h6M7 4v4m0 4v4m8-12v4" stroke="#666D80"/><path d="M19.828 19.828a4 4 0 1 1-5.656-5.656S14.5 15 15.5 15.5c0-1 .25-2.5 1.493-3.5 1.007 1 2.053 1.389 2.835 2.172A4 4 0 0 1 21 17c0 1.024-.39 2.047-1.172 2.828" stroke="#005BFF"/></g></svg></span>
                <
span class="lm_names">Frwlz</span>
</
a


BUT! The visible part of the page was without changes - and I can see the unchanged tag in the source (the part where the caption of the button is):

PHP Code

 <button id="firewall-cell" onclick="showtab(this.id, 'main-tab-content');show_firewall_window();show_firewall_plans();load_firewall_info();" class="px-3 py-2 h-full rounded-r-lg main-tab-button tab-button flex place-items-center">  
                    <
svg class="h-6 inline" viewBox="-2.4 -2.4 28.8 28.8" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"/><g stroke-linecap="round" stroke-linejoin="round"/><g stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 20H6.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C3 18.48 3 17.92 3 16.8V7.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C4.52 4 5.08 4 6.2 4h9.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C19 5.52 19 6.08 19 7.2V8H3m0 4h8V8m-8 8h6M7 4v4m0 4v4m8-12v4" stroke="#666D80"/><path d="M19.828 19.828a4 4 0 1 1-5.656-5.656S14.5 15 15.5 15.5c0-1 .25-2.5 1.493-3.5 1.007 1 2.053 1.389 2.835 2.172A4 4 0 0 1 21 17c0 1.024-.39 2.047-1.172 2.828" stroke="#005BFF"/></g></svg>
                    
Firewall
</button


Posted By: count on October 22, 2024, 1:55 pm | Post: 7
Quote
You will need to set the language in account settings in WHMCS client area only then it will work.


Today we found WHERE need to set for it works.
It's not that obvious.
Usually you just changing interface language in WHMCS panel, in drop-down menu.

Thank you!

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.