Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • truemaker Friend
    #971012

    Hi
    Joomla 3.6.2 and JA_University_t3 =
    system plugin (system – languagecode ) not change lang attribute (from "uk-UA" to "ua") in html tag of page.
    But correct change it in ie block before (<!–[if IE 8]> …).

    <!DOCTYPE html>
    <!--[if IE 8]> <html prefix="og: http://ogp.me/ns#" lang="uk" dir="ltr" class="ie8 lt-ie9 lt-ie10 com_k2 view-itemlist layout-category task-category itemid-268 j36 mm-hover"> <![endif]-->
    <!--[if IE 9]> <html prefix="og: http://ogp.me/ns#" lang="uk" dir="ltr" class="ie9 lt-ie10 com_k2 view-itemlist layout-category task-category itemid-268 j36 mm-hover"> <![endif]-->
    <html prefix="og: http://ogp.me/ns#" lang="uk-ua" dir="ltr"
    class='com_k2 view-itemlist layout-category task-category itemid-268 j36 mm-hover'>
    <head>
    ....

    you can see in result 3 lang
    twice lang="uk" (changed ok)
    and lang="uk-ua" (not changed) in main html.
    May be head block of template or t3 plugin not change for system plugin of Joomla?

    Saguaros Moderator
    #971557

    Hi

    I tried to switch UA and EN flag but it seems to be working well, is that solved?

    truemaker Friend
    #971734

    Hi

    Test empty site = http://2016new1.um.la/

    Joomla 3.6.2
    ja_university_t3 – 1.1.5 – 01 September 2016

    only one language content without switch = en-GB

    System – Language Code = (OFF)

    <!DOCTYPE html>
    <!--[if IE 8]>         <html prefix="og: http://ogp.me/ns#" lang="en-gb" dir="ltr" class="ie8 lt-ie9 lt-ie10 com_content view-featured itemid-101 home j36 mm-hover"> <![endif]-->
    <!--[if IE 9]>         <html prefix="og: http://ogp.me/ns#" lang="en-gb" dir="ltr" class="ie9 lt-ie10 com_content view-featured itemid-101 home j36 mm-hover"> <![endif]-->
    
    <html prefix="og: http://ogp.me/ns#" lang="en-gb" dir="ltr"
          class='com_content view-featured itemid-101 home j36 mm-hover'>
    
    <head>
    ....

    ===========================
    System – Language Code = (ON)
    For more difference example preset (en-GB) to (uk-UA)

    in result i see 2 changed OK, but main html tag not changed

    <!DOCTYPE html>
    <!--[if IE 8]>         <html prefix="og: http://ogp.me/ns#" lang="uk-ua" dir="ltr" class="ie8 lt-ie9 lt-ie10 com_content view-featured itemid-101 home j36 mm-hover"> <![endif]-->
    <!--[if IE 9]>         <html prefix="og: http://ogp.me/ns#" lang="uk-ua" dir="ltr" class="ie9 lt-ie10 com_content view-featured itemid-101 home j36 mm-hover"> <![endif]-->
    
    <html prefix="og: http://ogp.me/ns#" lang="en-gb" dir="ltr"
          class='com_content view-featured itemid-101 home j36 mm-hover'>
    
    <head>
    ....

    ===========================

    P.S. I tested this function on Joomla demo account here
    https://demo.joomla.org/

    I was preset default joomla template and plugin on.

    ALL lang atribute will be changed OK.

    May be difference in t3 plugin?

    WBR,

    Igor

    truemaker Friend
    #971743

    And my error in title
    JA_University t3 (lang not change by system Joomla 2.6.2 plugin)

    Joomla 3.6.2

    Saguaros Moderator
    #972070

    Kindly check your site again: http://prntscr.com/cnoe9c

    You can simply switch default template (JA University) to another standard template of Joomla like Beez/Protostar and see how it goes.

    truemaker Friend
    #972174

    Hi

    I removed site to test subdomain of university.
    No problem with google after it.
    https://tools.pingdom.com/#!/QHB27/http://2016new1-test.krok.edu.ua/en/

    New url http://2016new1-test.krok.edu.ua/en/

    2 subpage preset (en-GB) in article and menuitem.

    http://2016new1-test.krok.edu.ua/en/typography-t3.html This page in JA_University template with problem as before. lang="uk-ua" lang="uk-ua" lang="en-gb"

    <!DOCTYPE html>
    <!--[if IE 8]>         <html prefix="og: http://ogp.me/ns#" lang="uk-ua" dir="ltr" class="ie8 lt-ie9 lt-ie10 com_content view-article itemid-287 j36 mm-hover"> <![endif]-->
    <!--[if IE 9]>         <html prefix="og: http://ogp.me/ns#" lang="uk-ua" dir="ltr" class="ie9 lt-ie10 com_content view-article itemid-287 j36 mm-hover"> <![endif]-->
    
    <html prefix="og: http://ogp.me/ns#" lang="en-gb" dir="ltr"
          class='com_content view-article itemid-287 j36 mm-hover'>
    
    <head>
    ......

    http://2016new1-test.krok.edu.ua/en/test-with-default-template.html This page with Protostar template. Lang attribute changed OK >>> lang="uk-ua"

    <!DOCTYPE html>
    <html prefix="og: http://ogp.me/ns#" lang="uk-ua" dir="ltr">
    <head>
    .....

    I think joomla plugin must work as LAST after t3. I think t3 plugin insert main html tag AFTER joomla system plugin.

    What do you recommend for it?

    WBR, Igor

    Saguaros Moderator
    #972358

    Hi Igor,

    Could you provide the admin & ftp account of this site so I will have a look?

    truemaker Friend
    #972504
    This reply has been marked as private.
    Saguaros Moderator
    #972958

    Let me take a look and will get back to you.

    Ninja Lead Moderator
    #973302

    Hi @truemaker
    I checked the language on your site and changed some configuration on your site.

    • Removed uk-UA on Plugins: System – Language Code plugin
    • Added Russian and Ukrainian (uk-UA) languages to Languages: Installed (Site)

    You can see that configuration from my screenshot and the problem on your site is gone.
    Regards


    1. Screen-Shot-2016-10-04-at-14.51.17
    2. Screen-Shot-2016-10-04-at-14.52.38
    truemaker Friend
    #974066

    Hi, Ninja Lead

    I mean that Plugins: System – Language Code not change attribute in main html. In description plugin write

    Changes the language code for the generated HTML document. Example of use: You have installed the fr-FR language pack and want the Search Engines to recognise the page as aimed at French-speaking Canada. Add the tag ‘fr-CA’ to the corresponding field for ‘fr-FR’ to resolve this.

    Preset – SCREENSHOT in attach. http://2016new1-test.krok.edu.ua/en/typography-t3.html

    <!DOCTYPE html>
    <!--[if IE 8]>         <html prefix="og: http://ogp.me/ns#" lang="en-fr" dir="ltr" class="ie8 lt-ie9 lt-ie10 com_content view-article itemid-287 j36 mm-hover"> <![endif]-->
    <!--[if IE 9]>         <html prefix="og: http://ogp.me/ns#" lang="en-fr" dir="ltr" class="ie9 lt-ie10 com_content view-article itemid-287 j36 mm-hover"> <![endif]-->
    
    <html prefix="og: http://ogp.me/ns#" lang="en-gb" dir="ltr"
          class='com_content view-article itemid-287 j36 mm-hover'>
    
    <head>
    ...

    System Joomla plugin NOT changed language code (lang="en-gb") in main html, but change correct twice (lang="en-fr") in addition html for IE browsers.

    And correct changed (lang="en-fr") in main html with default template without t3 http://2016new1-test.krok.edu.ua/en/test-with-default-template.html

    <!DOCTYPE html>
    <html prefix="og: http://ogp.me/ns#" lang="en-fr" dir="ltr">
    <head>
    ...

    Now situation as before. Not use system joomla plugin as way for fix problem – it is a bad decision! Can you take me any recommend for switch on this function with t3 template?

    WBR Igor


    1. system-language-code-preset
    truemaker Friend
    #974072

    Hi, Ninja Lead

    I solve this problem. Now plugin works OK. http://2016new1-test.krok.edu.ua/en/typography-t3.html

    <!DOCTYPE html>
    <!--[if IE 8]>         <html prefix="og: http://ogp.me/ns#" lang="en-fr" dir="ltr" class="ie8 lt-ie9 lt-ie10 com_content view-article itemid-287 j36 mm-hover"> <![endif]-->
    <!--[if IE 9]>         <html prefix="og: http://ogp.me/ns#" lang="en-fr" dir="ltr" class="ie9 lt-ie10 com_content view-article itemid-287 j36 mm-hover"> <![endif]-->
    
    <html prefix="og: http://ogp.me/ns#" lang="en-fr" dir="ltr" class='com_content view-article itemid-287 j36 mm-hover'>

    This is problem in your php of template.

    For example i used two-sidebar layout. templatesja_university_t3tplstwo-sidebar.php

    Your html tag must be in ONE LINE only, but your html in 2 lines. System plugin may be can not find mask as multyline.

    I changed

    from

    <html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"
          class='<jdoc:include type="pageclass" ></jdoc:include>'>

    to

    <html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" class='<jdoc:include type="pageclass" ></jdoc:include>'>

    This is fix that problem.

    You must change this bug in ALL php for example in /tpls/

    • default.php
    • home.php
    • left-sidebar.php
    • no-sidebar.php
    • right-sidebar.php
    • two-sidebar.php

    P.S. May be you have same problem with other templates.

    Can you fix in in new release as soon as possible?

    WBR Igor

Viewing 12 posts - 1 through 12 (of 12 total)

This topic contains 11 replies, has 3 voices, and was last updated by  truemaker 8 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum