jin Posted September 2, 2014 Share Posted September 2, 2014 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. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 2, 2014 Share Posted September 2, 2014 duplicate the tpl files = duplicate your effort 0 Quote Link to comment Share on other sites More sharing options...
jin Posted September 2, 2014 Author Share Posted September 2, 2014 duplicating efforts = duplicated income 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 2, 2014 Share Posted September 2, 2014 what i mean is you don't need to do it this way, i have done this before 0 Quote Link to comment Share on other sites More sharing options...
jin Posted September 2, 2014 Author Share Posted September 2, 2014 OK, what would you suggest 0 Quote Link to comment Share on other sites More sharing options...
jin Posted September 3, 2014 Author Share Posted September 3, 2014 Care to share 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted September 4, 2014 Share Posted September 4, 2014 Hi How many languages were you looking to use and have a different header/footer for? 0 Quote Link to comment Share on other sites More sharing options...
jin Posted September 4, 2014 Author Share Posted September 4, 2014 Two is all that I really need 0 Quote Link to comment Share on other sites More sharing options...
nmo0ory Posted September 12, 2014 Share Posted September 12, 2014 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 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 12, 2014 Share Posted September 12, 2014 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. 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted September 13, 2014 Share Posted September 13, 2014 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 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.