No Code Attached Yet
avatar BrainforgeUK
BrainforgeUK
23 Aug 2022

Steps to reproduce the issue

Create a child template from Cassiopeia
cassiopeia_mychildtemplate

Expected result

(a) If the language files tpl_cassiopeia_mychildtemplate.ini and tpl_cassiopeia_mychildtemplate.sys.ini are created and left blank I expected the text from tpl_cassiopeia.ini and tpl_cassiopeia.sys.ini to be used. I.E. the cassioperia text will be used by default, the child being able to overwrite / add more as needed.

(b) I expected to be able to place language files in templates/cassiopeia_mychildtemplate/language/en-GB folder. This being consistent with elsewhere where you can use either modules/mod_mymodule/language/en-GB/mod_mymodule.ini or language/en-GB/mod_mymodule.ini

(c) I expected to be able to translate the template name (cassiopeia_mychildtemplate) in the templateDetails.xml file with text in cassiopeia_mychildtemplate.sys.ini.

Actual result

(a) Have to duplicate all the cassiopeia text in the child language files. This will cause problems later when extra parameters / more text added to cassioperia - I would expect the child to inherit everything by default.

(b) Language files in templates/cassiopeia_mychildtemplate/language/en-GB folder are ignored.

(c) There appears to be no translation for the template name.

System information (as much as possible)

Joomla 4.2.0

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar BrainforgeUK BrainforgeUK - open - 23 Aug 2022
avatar BrainforgeUK BrainforgeUK - change - 23 Aug 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 23 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Aug 2022
avatar BrainforgeUK
BrainforgeUK - comment - 23 Aug 2022

Item (a) - Not leave tpl_cassiopeia_mychildtemplate.ini blank but put a single line in it ...

TPL_CASSIOPEIA_XML_DESCRIPTION="Cassiopeia child template for my site."

Can of course change TPL_CASSIOPEIA to TPL_CASSIOPEIA_MYCHILDTEMPLATE in both the .ini and .xml files, but that is not significant to this issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38568.

avatar brianteeman
brianteeman - comment - 23 Aug 2022

duplicate of #38499 ?

avatar BrainforgeUK
BrainforgeUK - comment - 23 Aug 2022

Overlaps. This gives more detail of what needs to be investigated.

avatar brianteeman
brianteeman - comment - 24 Aug 2022

Agreed. Maintainers please close the other issue and link it here
Please.

avatar alikon alikon - close - 24 Aug 2022
avatar alikon
alikon - comment - 24 Aug 2022

please test #38578

avatar alikon alikon - change - 24 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-24 08:54:51
Closed_By alikon

Add a Comment

Login with GitHub to post a comment