Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.1] Create Child Template Button #80

Closed
joomlapl-bot opened this issue Dec 7, 2021 · 0 comments
Closed

[4.1] Create Child Template Button #80

joomlapl-bot opened this issue Dec 7, 2021 · 0 comments

Comments

@joomlapl-bot
Copy link
Collaborator

PR w związku ze zmianą oryginału joomla/joomla-cms#36228 Poniżej zmiany w oryginale:

Click to expand the diff!
diff --git a/administrator/components/com_templates/src/View/Template/HtmlView.php b/administrator/components/com_templates/src/View/Template/HtmlView.php
index 10f6037ea8ff..14ddf7124079 100644
--- a/administrator/components/com_templates/src/View/Template/HtmlView.php
+++ b/administrator/components/com_templates/src/View/Template/HtmlView.php
@@ -278,7 +278,7 @@ protected function addToolbar()
 			{
 				if (isset($this->template->xmldata->inheritable) && (string) $this->template->xmldata->inheritable === '1')
 				{
-					ToolbarHelper::modal('childModal', 'icon-copy', 'COM_TEMPLATES_TEMPLATE_CHILD', false);
+					ToolbarHelper::modal('childModal', 'icon-copy', 'COM_TEMPLATES_BUTTON_TEMPLATE_CHILD', false);
 				}
 				elseif (!isset($this->template->xmldata->parent) || $this->template->xmldata->parent == '')
 				{
diff --git a/administrator/components/com_templates/tmpl/template/default_modal_child_footer.php b/administrator/components/com_templates/tmpl/template/default_modal_child_footer.php
index 46f6a668dc67..8f0188e2952e 100644
--- a/administrator/components/com_templates/tmpl/template/default_modal_child_footer.php
+++ b/administrator/components/com_templates/tmpl/template/default_modal_child_footer.php
@@ -13,4 +13,4 @@
 
 ?>
 <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_CLOSE'); ?></button>
-<button type="submit" class="btn btn-primary"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_CHILD'); ?></button>
+<button type="submit" class="btn btn-primary"><?php echo Text::_('COM_TEMPLATES_BUTTON_TEMPLATE_CHILD'); ?></button>
diff --git a/administrator/language/en-GB/com_templates.ini b/administrator/language/en-GB/com_templates.ini
index 327ac9b6f952..e0b5094a4d69 100644
--- a/administrator/language/en-GB/com_templates.ini
+++ b/administrator/language/en-GB/com_templates.ini
@@ -22,6 +22,7 @@ COM_TEMPLATES_BUTTON_PREVIEW="Template Preview"
 COM_TEMPLATES_BUTTON_RENAME="Rename"
 COM_TEMPLATES_BUTTON_RENAME_FILE="Rename File"
 COM_TEMPLATES_BUTTON_RESIZE="Resize"
+COM_TEMPLATES_BUTTON_TEMPLATE_CHILD="Create Child Template"
 COM_TEMPLATES_BUTTON_UPLOAD="Upload"
 COM_TEMPLATES_CHECK_FILE_OWNERSHIP="Check file ownership"
 COM_TEMPLATES_CHILD_SUCCESS="Child template created."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants