Personal tools
Namespaces

Variants
Actions

General

From ModulesGarden Wiki
(Difference between revisions)
Jump to: navigation, search
(How To Change WHMCS Module Language)
Line 4: Line 4:
  
 
==How To Change WHMCS Module Language==
 
==How To Change WHMCS Module Language==
 +
 
{|
 
{|
|style="padding: 10px 0px 15px 15px;"|'''1. Changing WHMCS module language is very simple. First of all, go to '' 'lang' '' folder located in your module or templates directory.'''<br/><br/>
+
|style="padding: 10px 0px 15px 15px;"|
'''Important:'''<br/> 1. Depending on the module the directory may vary.<br/> 2. There might be two language files located in different directories, separately for Admin Area and Client Area.<br/> You may decide whether you wish to translate both of them or only one.<br/><br/>
+
'''1. Locate the language files used by the module.'''
Copy '' 'english.php' '' file and rename the newly copied directory with your desired language, for example '' 'italian.php'.''
+
 
 +
All modules store language strings in one or more ''langs'' directories. Depending on the module architecture, translations may be split across several locations, such as:
 +
 
 +
* Main module language files
 +
* Package language files ''e.g. App Templates (AppCenter)''
 +
* Framework component language files ''e.g. Buttons, Forms, Tables''
 +
 
 +
Modules with inbuilt packages, like '''App Templates''' in Proxmox VE VPS & Cloud module, may contain multiple language files instead of a single ''english.php'' file. <br/>
 +
In some modules, language strings can still be separated between the main addon and the server-related functionality.<br/>
 +
Some features may use language files located inside packages or framework components.
 +
 
 +
Examples of common language file locations:
 +
* Main addon language files: <code>/modules/addons/ModuleName/langs/english.php</code>
 +
 
 +
* Package language files: <code>/modules/addons/ModuleName/packages/AppCenter/langs/english.php</code>
 +
 
 +
* Framework component language files: <code>/modules/addons/ModuleName/components/Button/langs/english.php</code>
 +
 
 +
Depending on the feature you wish to translate, the required language string may be located in any of the above locations.
 
|}
 
|}
 
{|
 
{|
|style="padding: 0px 0px 20px 25px;"|[[File:Lang1.png]]
+
|style="padding: 0px 0px 15px 15px;"|
 +
'''2. Edit the language strings.'''
 +
 
 +
Open the newly created language file and replace the desired phrases with your translations. After making your changes, save the file.
 +
 
 +
Please remember that different features may use language strings from different files, depending on where the functionality is implemented.
 
|}
 
|}
 
{|
 
{|
|style="padding: 0px 0px 15px 15px;"|'''2. Open your personalized file now and replace particular sentences with ease.'''<br />
+
|style="padding: 0px 0px 20px 25px;"|[[File:Lang1.png]]
For presentation purposes we changed ''['manage header']'' from '' 'Manage Account' '' to '' 'Gestisci Il Tuo Account'. '' Do not forget to save the changes!
+
 
|}
 
|}
 
{|
 
{|
 
|style="padding: 0px 0px 20px 25px;"|[[File:Lang2.png]]
 
|style="padding: 0px 0px 20px 25px;"|[[File:Lang2.png]]
 
|}
 
|}
 +
 
{|
 
{|
|style="padding: 0px 0px 15px 15px;"|'''3. There are two ways you can alter the language:<br />
+
|style="padding: 0px 0px 15px 15px;"|
*Change the client's language in your WHMCS system:
+
'''3. Use the built-in Translations Tool (recommended).'''
 +
 
 +
For modules that support the Translations Tool, we strongly recommend using it instead of editing language files manually.
 +
 
 +
The tool automatically collects language strings from '''all supported locations'''.
 +
 
 +
To create a translation:
 +
# Open the module addon.
 +
# Navigate to '''Translations'''.
 +
# Click '''Add Translation'''.
 +
# Select the desired language.
 +
# Save the generated translation and modify any phrases as needed.
 +
 
 +
This approach significantly simplifies translation management, especially in modules that use multiple language sources.
 +
 
 +
For detailed instructions, please refer to the dedicated documentation page: [https://www.docs.modulesgarden.com/Translations_Tool Translations Tool]
 
|}
 
|}
 +
{|
 +
|style="padding: 0px 0px 30px 25px;"|[[File:TR_1.png]]
 +
|}
 +
{|
 +
|style="padding: 0px 0px 15px 15px;"|
 +
'''4. Select the language in WHMCS.'''
 +
 +
There are two ways to display your translation:
 +
 +
* Change the client's language in the WHMCS Admin Area.
 +
|}
 +
 
{|
 
{|
 
|style="padding: 0px 0px 20px 25px;"|[[File:Lang4.png]]
 
|style="padding: 0px 0px 20px 25px;"|[[File:Lang4.png]]
 
|}
 
|}
 +
 
{|
 
{|
 
|style="padding: 0px 0px 20px 15px;"|
 
|style="padding: 0px 0px 20px 15px;"|
*Change the language directly in the client area (keep in mind that customers can change their language anytime they want):
+
 
|}
+
* Allow clients to change the language directly in the Client Area.
 +
  |}
 +
 
 
{|
 
{|
 
|style="padding: 0px 0px 20px 25px;"|[[File:Lang5.png]]
 
|style="padding: 0px 0px 20px 25px;"|[[File:Lang5.png]]
 
|}
 
|}
 +
 
{|
 
{|
|style="padding: 0px 0px 20px 15px;"|'''4. Take a look at the screen and you will see that the header has changed from '' 'Manage Account' '' to '' 'Gestisci Il Tuo Account',''  which is a direct consequence of our modifications.'''
+
|style="padding: 0px 0px 20px 15px;"|
 +
'''5. Verify the results.'''
 +
 
 +
After switching the language, refresh the page and verify that the translated phrases are displayed correctly.
 
|}
 
|}
 +
 
{|
 
{|
 
|style="padding: 0px 0px 20px 25px;"|[[File:Lang3.png]]
 
|style="padding: 0px 0px 20px 25px;"|[[File:Lang3.png]]
 
|}
 
|}
 +
 
{|
 
{|
|style="padding: 0px 0px 30px 15px;"|Act accordingly to the above instructions to implement any changes in the language files of our modules. <br/>In case you have any doubts or encounter any problems we will do our best to provide you with adequate assistance.
+
|style="padding: 0px 0px 30px 15px;"|
'''<span style="color: #ff0000;">Please note that not all of our modules are provided with Multi-Language Support.</span>'''
+
If you encounter any difficulties locating a particular phrase, keep in mind that newer ModulesGarden modules may load language strings from multiple locations, including packages and framework components.
 +
 
 +
'''<span style="color: #ff0000;">Please note that not all ModulesGarden products support multilingual translations.</span>'''
 +
 
 +
If you need any assistance, please contact our support team.
 
|}
 
|}
  

Revision as of 10:58, 11 June 2026


Contents

How To Change WHMCS Module Language

1. Locate the language files used by the module.

All modules store language strings in one or more langs directories. Depending on the module architecture, translations may be split across several locations, such as:

  • Main module language files
  • Package language files e.g. App Templates (AppCenter)
  • Framework component language files e.g. Buttons, Forms, Tables

Modules with inbuilt packages, like App Templates in Proxmox VE VPS & Cloud module, may contain multiple language files instead of a single english.php file.
In some modules, language strings can still be separated between the main addon and the server-related functionality.
Some features may use language files located inside packages or framework components.

Examples of common language file locations:

  • Main addon language files: /modules/addons/ModuleName/langs/english.php
  • Package language files: /modules/addons/ModuleName/packages/AppCenter/langs/english.php
  • Framework component language files: /modules/addons/ModuleName/components/Button/langs/english.php

Depending on the feature you wish to translate, the required language string may be located in any of the above locations.

2. Edit the language strings.

Open the newly created language file and replace the desired phrases with your translations. After making your changes, save the file.

Please remember that different features may use language strings from different files, depending on where the functionality is implemented.

Lang1.png
Lang2.png

3. Use the built-in Translations Tool (recommended).

For modules that support the Translations Tool, we strongly recommend using it instead of editing language files manually.

The tool automatically collects language strings from all supported locations.

To create a translation:

  1. Open the module addon.
  2. Navigate to Translations.
  3. Click Add Translation.
  4. Select the desired language.
  5. Save the generated translation and modify any phrases as needed.

This approach significantly simplifies translation management, especially in modules that use multiple language sources.

For detailed instructions, please refer to the dedicated documentation page: Translations Tool

TR 1.png

4. Select the language in WHMCS.

There are two ways to display your translation:

  • Change the client's language in the WHMCS Admin Area.
Lang4.png
  • Allow clients to change the language directly in the Client Area.
Lang5.png

5. Verify the results.

After switching the language, refresh the page and verify that the translated phrases are displayed correctly.

Lang3.png

If you encounter any difficulties locating a particular phrase, keep in mind that newer ModulesGarden modules may load language strings from multiple locations, including packages and framework components.

Please note that not all ModulesGarden products support multilingual translations.

If you need any assistance, please contact our support team.

How To Debug Module

If the procedure described below doesn't work for you, please report it to our Support Team.

When you are experiencing white page or the module is not working as it should, you can enable debug mode that prints all the PHP errors on the screen.
To do so, enter the URL you are experiencing the issue with and add an additional parameter '_debug=turnon'. For example:

yourdomain.com/clientarea.php?action=productdetails&id=81&_debug=turnon
yourdomain.com/clientarea.php?_debug=turnon

To disable debug mode, simply call the same parameter but with value turnoff. For example:

yourdomain.com/clientarea.php?_debug=turnoff

If you get the error as shown on the screen below, please make sure that you are using the correct parameter and you have sufficient privileges.
DM1.png

How To Solve Problems With Module License

In case you encounter any problems with the license, please read through the below points to find a solution.
1. Make sure your license key applies to the used license. For example:
  • If you had a trial version and then bought a full version (separately), then the license key must be changed.
  • If you own a trial version and then upgrade it to a full version, then a trial license key should be used.

If you want to learn more about upgrades, please follow here.

2. Check if License_RENAME.php file has been removed (or renamed).
3. Make sure your license file content format is correct.

Former license format (no longer supported):

<?php
/*
 * LICENSE:
 * Please provide your DNS Manager Module For WHMCS license below
 */
$dns_manager_licensekey="ModulesGarden_DNSManager_xxxxxxxxxxxx";
?>

Current and correct license file format:

<?php
/*
 * LICENSE:
 * Please provide your DNS Manager Module For WHMCS license below
 */
$dns_manager_licensekey="ModulesGarden_DNSManager_xxxxxxxxxxxx";
Please note that the below symbol is no longer used:
?>
4. Check if your firewall does not block our domain: modulesgarden.com.
5. If you notice the following error message in your client area:

"A problem with module occurred. Please contact the administration."

Then we recommend reissuing your license in the ModulesGarden client area.

6. In case you see an error:

Order Accept Encountered Problems
License Invalid: MD5 Checksum Verification Failed

Make sure all module files are correctly downloaded and installed.

7. If, despite following all of the above pieces of advice, problems with you license persist, try to reissue your license.

To to so, log in to our client area, choose a product, and click the 'Reissue License' button located next to your license key.

G1.png
In case of further issues, please contact our Support Team.

How To Use Configurable Options

Configurable options on products allow you to give your clients variables which alter the resource available at that product as well as its price.

In this tutorial we will show you how to manage configurable options generated by our modules.

Editing Configurable Options

When you successfully set up a product, your client can order it by choosing its resource and settings from default configurable options.
HCO1.png
In case those options do not suit your needs, you can edit them.

To do so, go to 'Setup' 'Products/Services' 'Configurable Options' and press edit button next to configurable option used by your product.
Its name is 'Configurable options for your_product_name' .

HCO2.png
Here you can view all products this configurable option group is assigned to.

Now we will show you how to edit options. Let's say you want to add an option to order a product with up to 5 snapshots.
To do so, edit 'Snapshots Limit' by pressing edit button as shown on the screen below.

HCO3.png
You will see a popup window, so make sure your browser will not block it.

Enter the maximum allowed number of options and save the changes.

HCO4.png

Hiding Configurable Options

If you decide to hide configurable options from a client order form and manage them only from the admin area, follow the steps below.

Firstly, go to 'Setup' 'Products/Services' 'Configurable Options'.

HCO5.png
Afterwards, tick 'Hidden' checkboxes next to configurable options you want to hide and confirm the action through pressing 'Save Changes'.
HCO6.png

Setting Up Pricing For Configurable Options

If you decide to set up pricing for configurable options, follow the steps described below.
HCO7.png
Press the edit icon next to configurable options you want to set the pricing for.
HCO8.png
Afterwards, you will see a popup window, so make sure your browser does not block it.

Now, price you entered for resource should be in a column responsible for the same type of payment as your product uses.
For example, if we have product with monthly and quarterly payments allowed, you will have to enter product pricing in the first and second columns.
Confirm through clicking on 'Save Changes' button as soon as you finish.

Depending on 'Option Type' , pricing you entered may be counted in various ways.

'Dropdown' - You have to set price for each option.
'Radio' - Same as above, only difference is the display manner.
'Yes/No' - Your price will be applied if client checkes this option.
'Quantity' - Price you set will be multiplied by amount of configurable options your client chooses.

HCO9.png
On the screen below you can see all configurable options types available on the order form.
HCO10.png
Now you should have no problems with understanding and using the configurable options in your WHMCS.
Navigation
WHMCS Modules
WHMCS Module Bundles
WHMCS Widgets
Tools And Applications
Translations
General
FAQ
Community
General