Skip to content

Commit 7db77a5

Browse files
committed
Shortcut language added
1 parent 3aabf5e commit 7db77a5

File tree

2 files changed

+33
-16
lines changed

2 files changed

+33
-16
lines changed

astroid/astroid-framework/framework/layouts/framework/manager.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@
584584
<div id="astroidUnderlay" class="astroid-underlay astroid-isVisible">
585585
<div id="helpModal" class="astroid-modal">
586586
<div class="modal-heading">
587-
<h3 class="m-0">Keyboard Shortcuts</h3>
587+
<h3 class="m-0"><?php echo JText::_('ASTROID_KEYBOARD_SHORTCUTS'); ?></h3>
588588
<div id="helpClose" class="astroid-close">&times;</div>
589589
</div>
590590
<div id="helpModalContent" class="astroid-modal-content p-0">
@@ -593,42 +593,42 @@
593593
<table class="table table-bordered">
594594
<thead>
595595
<tr>
596-
<th>Action</th>
597-
<th>Shortcut</th>
598-
<th>Description</th>
596+
<th><?php echo JText::_('ASTROID_SHORTCUT_ACTION_LABEL'); ?></th>
597+
<th><?php echo JText::_('ASTROID_SHORTCUT_LABEL'); ?></th>
598+
<th><?php echo JText::_('ASTROID_SHORTCUT_DESCRIPTION_LABEL'); ?></th>
599599
</tr>
600600
</thead>
601601
<tbody>
602602
<tr>
603-
<td>Save</td>
603+
<td><?php echo JText::_('ASTROID_SHORTCUT_SAVE'); ?></td>
604604
<td>
605605
<div class="pb-2"><span class="badge badge-light p-2">Ctrl</span><span class="px-1">+</span><span class="badge badge-light p-2">S</span></div>
606606
<div><span class="badge badge-light p-2">⌘</span><span class="px-1">+</span><span class="badge badge-light p-2">S</span></div>
607607
</td>
608-
<td>Save your page to the revision history</td>
608+
<td><?php echo JText::_('ASTROID_SHORTCUT_SAVE_DESC'); ?></td>
609609
</tr>
610610
<tr>
611-
<td>Preview</td>
611+
<td><?php echo JText::_('ASTROID_SHORTCUT_PREVIEW'); ?></td>
612612
<td>
613613
<div class="pb-2"><span class="badge badge-light p-2">Ctrl</span><span class="px-1">+</span><span class="badge badge-light p-2">P</span></div>
614614
<div><span class="badge badge-light p-2">⌘</span><span class="px-1">+</span><span class="badge badge-light p-2">P</span></div>
615615
</td>
616-
<td>For previewing the changes</td>
616+
<td><?php echo JText::_('ASTROID_SHORTCUT_PREVIEW_DESC'); ?></td>
617617
</tr>
618618
<tr>
619-
<td>Cache</td>
619+
<td><?php echo JText::_('ASTROID_SHORTCUT_CACHE'); ?></td>
620620
<td>
621-
<div class="pb-2"><span class="badge badge-light p-2">Delete</span></div>
622-
<div><span class="badge badge-light p-2">DEL</span></div>
621+
<div class="pb-2"><span class="badge badge-light p-2"><?php echo JText::_('ASTROID_SHORTCUT_DELETE'); ?></span></div>
622+
<div><span class="badge badge-light p-2"><?php echo JText::_('ASTROID_SHORTCUT_DEL'); ?></span></div>
623623
</td>
624-
<td>Clear the Cache</td>
624+
<td><?php echo JText::_('ASTROID_SHORTCUT_CACHE_DESC'); ?></td>
625625
</tr>
626626
<tr>
627-
<td>Close Popup</td>
627+
<td><?php echo JText::_('ASTROID_SHORTCUT_CLOSE_POPUP'); ?></td>
628628
<td>
629-
<div class="pb-2"><span class="badge badge-light p-2">ESC</span></div>
629+
<div class="pb-2"><span class="badge badge-light p-2"><?php echo JText::_('ASTROID_SHORTCUT_ESC'); ?></span></div>
630630
</td>
631-
<td>Close the layout popup</td>
631+
<td><?php echo JText::_('ASTROID_SHORTCUT_CLOSE_POPUP_DESC'); ?></td>
632632
</tr>
633633
</tbody>
634634
</table>

astroid/astroid-framework/language/en-GB/en-GB.astroid.ini

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,4 +861,21 @@ TPL_SMOOTH_SCROLL_ENABLE_DESC = "Enabling will option load the necessary JS for
861861
TPL_SMOOTH_SCROLL_SPEED_LBL = "Scroll Speed"
862862
TPL_SMOOTH_SCROLL_SPEED_DESC = "This a number representing the amount of time in milliseconds that it should take to scroll 1000px. Scroll distances shorter than that will take less time, and scroll distances longer than that will take more time. The default is 300ms."
863863

864-
ASTROID_JD_BUILDER = "Builder"
864+
ASTROID_JD_BUILDER = "Builder"
865+
866+
; Shortcuts
867+
ASTROID_KEYBOARD_SHORTCUTS="Keyboard Shortcuts"
868+
ASTROID_SHORTCUT_ACTION_LABEL="Action"
869+
ASTROID_SHORTCUT_LABEL="Shortcut"
870+
ASTROID_SHORTCUT_DESCRIPTION_LABEL="Description"
871+
ASTROID_SHORTCUT_SAVE="Save"
872+
ASTROID_SHORTCUT_SAVE_DESC="Save your page to the revision history"
873+
ASTROID_SHORTCUT_PREVIEW="Preview"
874+
ASTROID_SHORTCUT_PREVIEW_DESC="For previewing the changes"
875+
ASTROID_SHORTCUT_CACHE="Cache"
876+
ASTROID_SHORTCUT_CACHE_DESC="Clear the Joomla and Astroid Cache"
877+
ASTROID_SHORTCUT_CLOSE_POPUP="Close Popup"
878+
ASTROID_SHORTCUT_CLOSE_POPUP_DESC="Close the layout popup"
879+
ASTROID_SHORTCUT_DEL="DEL"
880+
ASTROID_SHORTCUT_DELETE="Delete"
881+
ASTROID_SHORTCUT_ESC="ESC"

0 commit comments

Comments
 (0)