Jump to content

Need Some WHMCS language based Customization


lalon

Recommended Posts

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.

Link to comment
Share on other sites

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 by Infopro
Link Removed to Avoid Confusing Documents with WHMCS Official Documents
Link to comment
Share on other sites

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 by Infopro
Link Removed to Avoid Confusing Documents with WHMCS Official Documents
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated