Jump to content
jin

Multiple theme languages

Recommended Posts

I am using a custom theme and would like it to have multiple languages, not on the core WHMCS that already has all the languages I need but on the custom template.

 

I know I can just duplicate the majority of the files which I have already done, but how do you deal with the header and the footer?

 

When a user comes to the site they are presented with an English website, at the top there will be Flags to choose the language when they click their language it would go to that site.

 

I can duplicate the header and footer but how would I tell the system which ones to use?

 

Normally you would do this in the index but that is encoded, so you would then do it in the tpl file but I don't see any clear way to do this.

Share this post


Link to post
Share on other sites

what i mean is you don't need to do it this way, i have done this before

Share this post


Link to post
Share on other sites

i want the same but for 3 lang

and i want to change for 1 lang the css

i want to add it form RTL

so pleass if any one can tell us how

Share this post


Link to post
Share on other sites
i want the same but for 3 lang

and i want to change for 1 lang the css

i want to add it form RTL

so pleass if any one can tell us how

Feel free to drop us a message here.

Share this post


Link to post
Share on other sites
Two is all that I really need

 

Hi, I cannot show a live sample of the site as they opted to not appear in our portfolio but i recently did an integration for a site that wanted their whmcs to be two languages - one of which was RTL so what i did was use the following in the header.tpl

 

 

{if $language == hebrew}

here would be the Hebrew content including links to a different set of css files that were made to be RTL

{else}

then the English header and css links would go here

{/if}

 

Repeat in footer.tpl

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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