Language Pack Clarification ?

All support enquiries for DFH go in here...

Language Pack Clarification ?

Postby mrflammable » Sat Oct 05, 2013 12:56 pm

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 ?
mrflammable
Newbie Member
 
Posts: 4
Joined: Fri Oct 04, 2013 10:11 am

Re: Language Pack Clarification ?

Postby webaddictdesigns » Tue Oct 08, 2013 9:15 pm

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.
webaddictdesigns
Premium
 
Posts: 12
Joined: Sat Sep 21, 2013 6:42 am

Re: Language Pack Clarification ?

Postby SamEA » Sat Oct 12, 2013 11:11 pm

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).
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm


Return to Daddy's File Host v1.X

Who is online

Users browsing this forum: No registered users and 23 guests

cron