-
AuthorPosts
-
March 25, 2014 at 1:14 pm #196141
I’ve a multilanguage site (Spanish, Catalan and English). Catalan is the default language.
The problem is that sometimes when going to the home site page you get the English home page instead of Catalan. If I manually go to the Spanish or the Catalan sites, sometimes the menu home button or the logo site take me to the English site too.http://www.joomlart.com/forums/topic/wrong-home-page-in-multilingual-site/
I found an identical problem in the forum. But I could not solve.
Can you help me?The web is http://www.salellasadvocats.cat
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 26, 2014 at 6:16 am #528182Hi
Could you please check again the account provided ?
I cannot login with itpavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 26, 2014 at 8:18 am #528199Hi
I checked your website and you have a duplicated menu as english
Has no sense to have an ENG menu when your main menu is already english
So you need to remove all ENG menu associations from Template Manager >> Profile and Menu assignments and have only 2 Languages
CAT and ESP while your main menu will remain as english language
Hope was clear
1 user says Thank You to pavit for this useful post
March 27, 2014 at 3:20 pm #528370Hi, I followed the recommendation and continued with the same problem. The images can be seen as the language settings have. Is that correct? where is the problem?
I need help.
Enric
- March 31, 2014 at 1:59 pm #528797
I need help please.
Thanks.pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 7, 2014 at 8:36 am #529726Apologies for this late response, I did need time to debug the problem on your site. I see all modules, menus and configurations from template on your site are corrected but both plugin in Plugin Manager need to set enable, see this screenshot:
I did help to have it enabled, now the problem on menus of three languages are fixed.
Regarding the multi-logo match with each language, you need to define EN, ES, Cat logos from templates/ja_mendozite/blocks/header.php file
This is sample:
<?php
$code = JFactory::getDocument()->getLanguage();
if($code == 'en-gb'): ?>
// load EN logo
<?php else if($code == 'es-gb'): ?>
// load ES language
<?php else : ?>
// load Cat language
<?php endif ?>
April 7, 2014 at 9:49 pm #529880I introduced the code and gives an error. Sorry I have no php knowledge. I do wrong?
[PHP]<?php
if(version_compare(JVERSION, ‘3.0’, ‘ge’) && (JRequest::getCmd(‘option’) == ‘com_finder’)){
JHtml::_(‘bootstrap.framework’);
}$app = JFactory::getApplication();
$siteName = $app->getCfg(‘sitename’);
if ($this->getParam(‘logoType’, ‘image’)==’image’): ?>
<h1 class=”logo”>
<a href=”<?php JURI::base(true) ?>” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
</h1>
<?php else:
$logoText = (trim($this->getParam(‘logoText’))==”) ? $siteName : JText::_(trim($this->getParam(‘logoText’)));
$sloganText = JText::_(trim($this->getParam(‘sloganText’))); ?>
<div class=”logo-text”>
<h1><a href=”<?php JURI::base(true) ?>” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a></h1>
<p class=”site-slogan”><?php echo $sloganText;?></p>
</div>
<?php endif; ?><?php
$code = JFactory::getDocument()->getLanguage();
if($code == ‘en-gb’): ?>
// load EN logo
<?php else : if($code == ‘es-es’) : ?>
// load ES language
<?php else : ?>
// load Cat language
<?php endif; ?><?php if($this->countModules(‘jalogin’)) : ?>
<div id=”ja-login”>
<jdoc:include type=”modules” name=”jalogin” />
</div>
<?php endif; ?><?php if($this->countModules(‘callnow’)) : ?>
<div id=”ja-callnow”>
<jdoc:include type=”modules” name=”callnow” />
</div>
<?php endif; ?>[/PHP]Thanks
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 8, 2014 at 8:15 am #529937In this case, it is recommended to hire a developer to help you customize php code and css style.
Hope information below would be of help:
+ Logo path of each languages is defined in the header.php file:
<?php
$code = JFactory::getDocument()->getLanguage();
if($code == 'en-gb'): ?>
<img src="the_logo_image_en_path" alt="logo">
<?php else if($code == 'es-gb'): ?>
<img src="the_logo_image_es_path" alt="logo">
<?php else : ?>
<img src="the_logo_image_cat_path" alt="logo">
<?php endif ?>
+ and css style that deals with each logo language path in the templates/ja_mendozite/css/template.css file
1 user says Thank You to Ninja Lead for this useful post
April 9, 2014 at 9:48 am #530117Hi Ninja Lead,
Solved the problem with logos. Thanks.
But even I have problems with setting languages. The problem is that sometimes (improved) when going to the home site page you get the English home page instead of Catalan.
I’ve played both the configuration of the language, I think something is wrong.
Maybe the problem is with the allocation of profiles and menu assignments?
What I’m doing wrong?Thanks in advance.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 10, 2014 at 4:35 am #530241@enricmr: You need to check from back-end of your site to see if Catalan language is set as default yet?
<blockquote>Go admin site -> Extensions -> Language Manager -> and set Catalan language as default</blockquote>
Homepage should load Catalan language by default then.
April 10, 2014 at 7:46 am #530266<em>@Ninja Lead 420890 wrote:</em><blockquote>@enricmr: You need to check from back-end of your site to see if Catalan language is set as default yet?
Homepage should load Catalan language by default then.</blockquote>
Hi,
Yes, the Catalan language by default.
I have tried a lot of combinations and does not work 100%. The current configuration is that of post # 5.
I’ve tried everything, sometimes the text in English or 404 error.
Thanks in advance.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 17, 2014 at 8:05 am #531233Hi Joomlart,
I have no solution yet. No news from Joomlart.
I need helpThanks
AuthorPostsThis topic contains 17 replies, has 3 voices, and was last updated by enricmr 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum