Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • enricmr Friend
    #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 Moderator
    #528097

    Hi

    Could you send me via Private Message a super user account to your back end ?

    i will try to take a look at your configuration

    pavit Moderator
    #528182

    Hi

    Could you please check again the account provided ?
    I cannot login with it

    pavit Moderator
    #528199

    Hi

    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

    enricmr Friend
    #528370

    Hi, 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


    1. profiles
    2. Menu-assignments
    3. menu
    4. filter
    enricmr Friend
    #528797

    I need help please.
    Thanks.

    pavit Moderator
    #528957

    Hi

    Could you please check again the login account for your backend ?
    I cannot login

    Ninja Lead Moderator
    #529726

    Apologies 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 ?>


    1. config_language
    enricmr Friend
    #529880

    I 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 Moderator
    #529937

    In 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

    enricmr Friend
    #530117

    Hi 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 Moderator
    #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.

    enricmr Friend
    #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 Moderator
    #530365

    @enricmr: please pm me FTP credentials. I will help to detect the root of this issue.

    enricmr Friend
    #531233

    Hi Joomlart,
    I have no solution yet. No news from Joomlart.
    I need help

    Thanks

Viewing 15 posts - 1 through 15 (of 17 total)

This 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