Extracted hardcoded english text to language files

Closes #3822
This commit is contained in:
Dan Brown 2022-11-10 13:30:48 +00:00
parent d520d6cab8
commit 4c75358abd
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
5 changed files with 7 additions and 4 deletions

View File

@ -10,7 +10,7 @@ function register(editor, url) {
parentNode.insertBefore(hrElem, cNode); parentNode.insertBefore(hrElem, cNode);
}); });
editor.ui.registry.addButton('hr', { editor.ui.registry.addButton('customhr', {
icon: 'horizontal-rule', icon: 'horizontal-rule',
tooltip: 'Insert horizontal line', tooltip: 'Insert horizontal line',
onAction() { onAction() {

View File

@ -36,7 +36,7 @@ function registerPrimaryToolbarGroups(editor) {
editor.ui.registry.addGroupToolbarButton('insertoverflow', { editor.ui.registry.addGroupToolbarButton('insertoverflow', {
icon: 'more-drawer', icon: 'more-drawer',
tooltip: 'More', tooltip: 'More',
items: 'hr codeeditor drawio media details' items: 'customhr codeeditor drawio media details'
}); });
} }

View File

@ -144,9 +144,11 @@ return [
'url' => 'URL', 'url' => 'URL',
'text_to_display' => 'Text to display', 'text_to_display' => 'Text to display',
'title' => 'Title', 'title' => 'Title',
'open_link' => 'Open link in...', 'open_link' => 'Open link',
'open_link_in' => 'Open link in...',
'open_link_current' => 'Current window', 'open_link_current' => 'Current window',
'open_link_new' => 'New window', 'open_link_new' => 'New window',
'remove_link' => 'Remove link',
'insert_collapsible' => 'Insert collapsible block', 'insert_collapsible' => 'Insert collapsible block',
'collapsible_unwrap' => 'Unwrap', 'collapsible_unwrap' => 'Unwrap',
'edit_label' => 'Edit label', 'edit_label' => 'Edit label',

View File

@ -50,6 +50,7 @@ return [
'permissions_role_everyone_else' => 'Everyone Else', 'permissions_role_everyone_else' => 'Everyone Else',
'permissions_role_everyone_else_desc' => 'Set permissions for all roles not specifically overridden.', 'permissions_role_everyone_else_desc' => 'Set permissions for all roles not specifically overridden.',
'permissions_role_override' => 'Override permissions for role', 'permissions_role_override' => 'Override permissions for role',
'permissions_inherit_defaults' => 'Inherit defaults',
// Search // Search
'search_results' => 'Search Results', 'search_results' => 'Search Results',

View File

@ -25,7 +25,7 @@ $inheriting - Boolean if the current row should be marked as inheriting default
<div class="px-l flex-container-row items-center" refs="entity-permissions@everyone-inherit"> <div class="px-l flex-container-row items-center" refs="entity-permissions@everyone-inherit">
@include('form.custom-checkbox', [ @include('form.custom-checkbox', [
'name' => 'entity-permissions-inherit', 'name' => 'entity-permissions-inherit',
'label' => 'Inherit defaults', 'label' => trans('entities.permissions_inherit_defaults'),
'value' => 'true', 'value' => 'true',
'checked' => $inheriting 'checked' => $inheriting
]) ])