LIMITED TIME OFFER: Use the promo code “SPRINGSAVINGS” during checkout to save 40% on all SwiftModders products! Activate Discount

How do I translate items in the Menu Manager?

The Menu Manager can be a potent tool to help you completely customize your WHMCS navigation menu. One of the many benefits of this feature is the ability to translate your custom menu items. This guide will teach you how to translate your menu items appropriately.

During the Menu Manager’s installation, the module will scan your menu and pull in default labels for all your menu items. The language used will be the “Default Language” you’ve set in the “Localisation” tab of “General Settings.” As of version 1.2.2 of the Theme Installer, you’re in luck if you change your default language and wish to resync all your menu items without losing your current customizations! Click on “Tasks” and select the “Sync Language” option.

Before moving forward, it would be best to read through the WHMCS guide on translating aspects of the platform using the language overrides: https://developers.whmcs.com/languages/overrides/

Translating default WHMCS menu items

The default WHMCS menu items generated via the Menu Manager will already be translated into several languages by WHMCS. Therefore, if you change a default menu items label, you must also change the translations to match that modification. You’ll need to access the language file for the language you wish to translate and locate the menu item names. All menu items typically have a variable prefix of “nav,” which should help you.

You will find the language files located in:

/whmcsroot/lang/

Once you’ve located the menu item, copy the variable name into a new language file. Your new language file will then be uploaded to the overrides folder:

/whmcsroot/lang/overrides/

Warning: Editing the language files directly is not recommended. When your WHMCS installation is updated, you will lose your customizations.

Translating custom WHMCS menu items

As you know, the Menu Manager will also allow you to create new menu items. These new menu items must have their translations added to any additional languages you support. You’ll need to create or edit the language override file for the language you wish to translate. You will use the identifier for your custom menu item as the language variable. For example, if your menu item has an identifier of “Social Media,” you will place the following into your language override:

$_LANG['Social Media'] = "Special Translation";
Tip: Try to make your “Identifier” unique so that your language overrides do not impact other language settings.

If you have any issues with translating your menu items, please do not hesitate to open a support request.

Looking for something a little more custom?

Since 2007 we have been offering tech-focused businesses quality web development services catered to meet the needs of your business and customers. We offer a wide range of project options, flexible budgets, and quality coding standards. Hire us to take care of your web project needs.

Our services
Back to top

Get 15% OFF Your Next Order

Join the SwiftModders newsletter by entering your information below and get an exclusive discount code for your next order!

You can opt-out of our newsletter at any time by visiting our Privacy Policy page.
Close