-
AuthorPosts
-
July 13, 2017 at 7:08 pm #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?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 14, 2017 at 4:09 am #1048575Hi
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.iniRegards
1 user says Thank You to Pankaj Sharma for this useful post
July 14, 2017 at 8:58 am #1048638Hi,
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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 17, 2017 at 12:37 am #1048901Hi
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
July 17, 2017 at 7:53 am #1049054Hi,
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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by Pankaj Sharma 7 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum