Skip to content

Commit

Permalink
feat: make all translations configurable by plugin settings
Browse files Browse the repository at this point in the history
Closes #33
  • Loading branch information
gearsdigital committed Nov 15, 2021
1 parent c935f11 commit 81cc490
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 28 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,39 @@ return [

> Pull requests with additonal translations are very much appreciated!
You can (if you really need to) override and adapt all translations to your needs.

```php
// site/config/config.php
'gearsdigital.enhanced-toolbar-link-dialog' => [
'translations' => [
'en' => [
'gearsdigital.enhanced-toolbar-link-dialog.target.blank' => 'Open in new window'
],
'de' => [
'gearsdigital.enhanced-toolbar-link-dialog.target.blank' => 'Im neuen Fenster öffnen'
],
],
]
```

This is the list of all available translation keys:

```
'gearsdigital.enhanced-toolbar-link-dialog.internal' => 'Internal Link',
'gearsdigital.enhanced-toolbar-link-dialog.external' => 'External Link',
'gearsdigital.enhanced-toolbar-link-dialog.empty' => 'No pages found',
'gearsdigital.enhanced-toolbar-link-dialog.target.title' => 'Link Target',
'gearsdigital.enhanced-toolbar-link-dialog.target.help' => 'Specify where to open the linked document.',
'gearsdigital.enhanced-toolbar-link-dialog.target.blank' => 'Blank',
'gearsdigital.enhanced-toolbar-link-dialog.target.self' => 'Self',
'gearsdigital.enhanced-toolbar-link-dialog.target.top' => 'Top',
'gearsdigital.enhanced-toolbar-link-dialog.target.parent' => 'Parent',
'gearsdigital.enhanced-toolbar-link-dialog.title.title' => 'Title',
'gearsdigital.enhanced-toolbar-link-dialog.anchor.title' => 'Anchor (#)',
'gearsdigital.enhanced-toolbar-link-dialog.tab.order' => '0'
```

## License

MIT
2 changes: 1 addition & 1 deletion index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.k-pagination[data-v-0166450c] {
.k-pagination[data-v-c324a62c] {
z-index: 1;
position: relative
}
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 81cc490

Please sign in to comment.