Jump to content

Custom theme Language Switcher


Recommended Posts

Hey all,

 

I have a custom built theme, I have duplicated the language switcher from whmcs to my theme, 

<li><a href="#" class="choose-language" data-toggle="popover" id="languageChooser" data-original-title="" title="" aria-describedby="popover180108">
                        English
                        <b class="caret"></b>
                    </a>
                    <div id="languageChooserContent" class="hidden">
                        <ul>
                                                            <li>
                                    <a href="/clientarea.php?language=arabic">العربية</a>
                                </li>
                                                            <li>
                                    <a href="/clientarea.php?language=azerbaijani">Azerbaijani</a> and so on

 

This works on client area but not on my custom pages created, e.g Web Design page.  any ideas anyone how I can get it to work on all the my site content?

 

Thian

Link to comment
Share on other sites

17 hours ago, thianbrodie said:

This works on client area but not on my custom pages created, e.g Web Design page.  any ideas anyone how I can get it to work on all the my site content?

does the content of the custom page template contain hard coded text or are you using language strings in there ?

  • if it's hard coded text, then changing to a different language won't change anything;
  • if you're using custom Language Overrides for the content, then changing the language should change the text - assuming that you have created language strings for all the languages that you're using.

changing languages in WHMCS doesn't translate the text of the fly.

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