Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

How can I add the option of multiple languages?

8 years 10 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

ISSUE SUMMARY:
I want to add an option to add multiple languages. One option is google translator, I want to add to the Jomsocial Toolbar because when I do on the template it looks bad, i just want to add side to facebook button.




STEPS TO REPLICATE:
1 The HTML code for the translator is

<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'de,en,es,fr,it,pt,sv,zh-CN', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>


<style>
.cVideo-Wrapper iframe{width:100%}
</style>

2 whats the next step to add to the jomsocial toolbar?
3
4
5
RESULT
EXPECTED RESULT
BROWSER

8 years 10 months ago
Licenses:

Hi, Jose.

You may use Joomla! extensions to add Google translation rather to implement script on your own.
Or you may use Joomla! multilingual feature:
documentation.jomsocial.com/wiki/Complet...in_multilingual_mode

If you wan to add some code to toolbar you'll need to customize this file:
ROOT/components/com_community/templates/jomsocial/layouts/toolbar/base.php
Copy it to: ROOT/templates/your-template/html/com_community/layouts/toolbar (if you don't have those folders - feel free to create them) and add your code.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: José Guillermo
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW