Page 1 of 1

Language Pack Clarification ?

PostPosted: Sat Oct 05, 2013 12:56 pm
by mrflammable
Hi so im wanting to use the language pack but will that only change the default from english as im wanting somelike a drop down menu or flags on the top right hand corner so my default will be english but people can select the language ?

Re: Language Pack Clarification ?

PostPosted: Tue Oct 08, 2013 9:15 pm
by webaddictdesigns
I'm assuming google translate will work with out the extra lang packs. Using a drop down menu through the script may not work because you only have english installed as default.

This may work I've not tried it yet.

With this free Google code you can translate your website into many languages, with no work.

Requirements: You must have access to your web page and be able to upload a new version.

Code:
Put this code anywhere within your HTML body tag:
Code: Select all
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>


I don't see a drop down box in the above script. so I'm guessing this is for a single lang only.
Or try:

https://translate.google.com/manager/we ... uggestions

You can also google something better. I just posted this for you real quick.

Re: Language Pack Clarification ?

PostPosted: Sat Oct 12, 2013 11:11 pm
by SamEA
Such a feature of switching languages does not exist within DFH. However, with a few tweaks you'll be able to achieve that (e.g. creating a session variable to define the selected language pack).