lalon Posted January 10, 2016 Share Posted January 10, 2016 So i have a website with 2 languages, english being the default and arabic as secondary language. I don't have issues in english language but in arabic languagei do. The issues are following: Issue 1: I have customized the whmcs navbar items links to my custom links via hooks. It works great for english but when language is changed to arabic the link remains same. So i have to change the link for navbar items when arabic language is selected. Issue 2: On whmcs submitticket.php page when language is selected as arabic it doesn't changes the Departments Heading and Body text to arabic. I looked into Lang/arabic.php file but i couldn't found those text to edit. So i need a solution for this. Issue 3: Since i use WHMCS template which matches my main website, it has customized footer and the text is added at footer.tpl file on my template directory. So i want the footer english text changed to arabic when arabic language is selected. Issue 4: I want my whmcs page to convert to RTL when arabic language is selected. I hope you guys can help me on these issues. 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 10, 2016 Share Posted January 10, 2016 (edited) Hello, You will have to use a custom language variable for all of these points. Add them for the URL and also set one up to load a custom CSS file for RTL alignment. I have a guide on setting up custom language variables here: - Removed - Edited January 10, 2016 by Infopro Link Removed to Avoid Confusing Documents with WHMCS Official Documents 0 Quote Link to comment Share on other sites More sharing options...
lalon Posted January 10, 2016 Author Share Posted January 10, 2016 (edited) Hello, You will have to use a custom language variable for all of these points. Add them for the URL and also set one up to load a custom CSS file for RTL alignment. I have a guide on setting up custom language variables here: - Removed - I have seen your guide but i think i didn't got it. Can you add me on skype: kammikhan321 I need this done ASAP and i am willing to pay. Edited January 10, 2016 by Infopro Link Removed to Avoid Confusing Documents with WHMCS Official Documents 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 10, 2016 Share Posted January 10, 2016 Issue 1: I have customized the whmcs navbar items links to my custom links via hooks. It works great for english but when language is changed to arabic the link remains same. So i have to change the link for navbar items when arabic language is selected. it sounds like your hook code is wrong - you should be able to use Lang::trans in your hook code to use the appropriate language string rather than just English. http://forum.whmcs.com/showthread.php?110026-language-variables-in-hooks&p=449546#post449546 Issue 2: On whmcs submitticket.php page when language is selected as arabic it doesn't changes the Departments Heading and Body text to arabic. I looked into Lang/arabic.php file but i couldn't found those text to edit. So i need a solution for this. you would probably be able to do it via template edits and/or hooks, but at least one paid for solution might be the Multi-language Cart module from Kian - that allows supports departments and descriptions in multiple languages. http://www.whmcs.com/appstore/3886/Multilanguage-Cart.html Issue 3: Since i use WHMCS template which matches my main website, it has customized footer and the text is added at footer.tpl file on my template directory. So i want the footer english text changed to arabic when arabic language is selected. if you used Language Overrides, you would be able to enter language strings for both English and Arabic - if you then modify your footer.tpl to use these language strings, it will display the text in English when that language is chosen, or Arabic if that is chosen. http://docs.whmcs.com/Language_Overrides Issue 4: I want my whmcs page to convert to RTL when arabic language is selected. i've got limited experience of RTL with WHMCS, but Zonex suggestions sounds correct - you'll need a RTL css and then code to switch between RTL and LTR based on the language value. 0 Quote Link to comment Share on other sites More sharing options...
Infopro Posted January 10, 2016 Share Posted January 10, 2016 Hello, You will have to use a custom language variable for all of these points. Add them for the URL and also set one up to load a custom CSS file for RTL alignment. I have a guide on setting up custom language variables here: - Removed - The proper documentation is a better place to link to I think, thanks. http://docs.whmcs.com/Language_Overrides 0 Quote Link to comment Share on other sites More sharing options...
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.