Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • alex feel Friend
    #1048516

    Hello! Tell me please how to add new language files to define new language variables in them? I want to add the new language files, so that in the future when updating the template they were not overwritten. I’ve edited \templates\t3_bs3_blank\templateDetails.xml the following way:

    ...
        <languages folder="language">
            <language tag="en-GB">en-GB/en-GB.tpl_t3_bs3_blank.ini</language>
            <language tag="en-GB">en-GB/en-GB.tpl_t3_bs3_blank.sys.ini</language>
        </languages>
    
        <languages folder="local/language">
            <language tag="en-GB">en-GB/en-GB.tpl_t3_bs3_blank_override.ini</language>
            <language tag="ru-RU">ru-RU/ru-RU.tpl_t3_bs3_blank_override.ini</language>
        </languages>
    ...

    Then I’ve added two files:

    \local\language\en-GB\en-GB.tpl_t3_bs3_blank_override.ini
    \local\language\ru-RU\ru-RU.tpl_t3_bs3_blank_override.ini
    

    In each of them there is a corresponding value:

    ALL_RIGHTS_RESERVED =                   "All rights reserved ©"
    ALL_RIGHTS_RESERVED =                   "Все права защищены ©"
    

    Then I’ve edited \local\tpls\blocks\footer.php by adding next code:

    <?php echo JText::_('ALL_RIGHTS_RESERVED'); ?>

    And in the footer I see ALL_RIGHTS_RESERVED instead of the corresponding language value. What am I doing wrong?

    • This topic was modified 7 years, 3 months ago by  alex feel.
    • This topic was modified 7 years, 3 months ago by  alex feel.
    • This topic was modified 7 years, 3 months ago by  alex feel.
    Pankaj Sharma Moderator
    #1048575

    Hi
    Open root folder of site /language/en-GB/en-GB.tpl_t3_bs3_blank.ini
    Now open the 2nd language folder, for example, its AR language so you can copy the file and remove en with ar

    /language/ar-AA/ar-AA.tpl_t3_bs3_blank.ini
    Defined the language string in this file ar-AA.tpl_t3_bs3_blank.ini

    Regards

    alex feel Friend
    #1048638

    Hi,

    Thanks for clarifying! Tell me please if I’ll define new variables in /language/en-GB/en-GB.tpl_t3_bs3_blank.ini will they be overwritten after updating T3 BS3 Blank template? If this is so how to avoid this?

    Pankaj Sharma Moderator
    #1048901

    Hi
    This is not the correct way as the files are used from the root file.
    YOu can apply my suggestion and it will not be overridden on template update.

    Regards

    alex feel Friend
    #1049054

    Hi,

    I do not quite understand which file I can add new English language variables to? For example, I want to declare a new variable in English, let it be: GO_TO_THE_SHOP = "Go to the shop" Which file should I put it in to protect it from being overwritten? Is it /root/templates/t3_bs3_blank/language/en-GB/en-GB.tpl_t3_bs3_blank.ini or /root/language/en-GB/en-GB.tpl_t3_bs3_blank.ini ?

    Pankaj Sharma Moderator
    #1049066

    Kindly apply changed in
    Root/language/en-GB/en-GB.tpl_t3_bs3_blank.ini
    Regards

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

This topic contains 5 replies, has 2 voices, and was last updated by  Pankaj Sharma 7 years, 3 months ago.

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