bendrop Posted March 26, 2019 Share Posted March 26, 2019 Can this be done? I see in the docs how to add additional language strings for add on modules (just make a lang folder), but nothing listed for server modules. I need to use some new strings in the _ClientArea function and would rather not hard code. Cheers! 0 Quote Link to comment Share on other sites More sharing options...
0 WHMCS Staff WHMCS Peter Posted March 27, 2019 WHMCS Staff Share Posted March 27, 2019 Hi @bendrop, Although not officially supported at this time, perhaps you could create your own lang/ directory and include it? Example: Lang file: <?php $_MODULELANG['helloworld'] = 'Hello World!'; Module: function provisioningmodule_ClientArea() { require_once(__DIR__ . '/lang/myCustomLangFile.php'); return $_MODULELANG['helloworld']; } Naturally, this advice is being provided personally by me and is provided as a courtesy. This example is provided "as-is" with no guarantee or warranty. The code has not been tested and may need slightly tweaking. Hopefully, this helps you achieve your requirements! 0 Quote Link to comment Share on other sites More sharing options...
Question
bendrop
Can this be done?
I see in the docs how to add additional language strings for add on modules (just make a lang folder), but nothing listed for server modules.
I need to use some new strings in the _ClientArea function and would rather not hard code.
Cheers!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.