Download the PHP package doldenroller/k3-translation-status without Composer
On this page you can find all versions of the php package doldenroller/k3-translation-status. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download doldenroller/k3-translation-status
More information about doldenroller/k3-translation-status
Files in doldenroller/k3-translation-status
Package k3-translation-status
Short Description Show all available translations of a page and if they are finished.
License MIT
Informations about the package k3-translation-status
Kirby Translation Status
Infosection to display all translations of a page in two lists, seperated wether the language is translated or not. By default a message is displayed if all languages are translated. Additionally the the template of the current page is displayed.
Install
Download Zip file
Copy plugin folder into site/plugins
Composer
I have no clue about the composer... but if I get right this should work.
Run composer require doldenroller/kirby-translation-status
.
Usage
Find and show translations of your page in the panel or use it as language switch in your blueprints.
Example
Basic setup:
With translations in Blueprint:
Translations can also be setup in your languagefiles of your setup:
More Options:
With the extend: true
property, the finished list is still showing when all translations are done, so you can still use it as a language switch.
The template: false
property hides the intended Template information.
And finally you can exclude pages by template. Either with the ignore:
property like this:
This can also be setup as global option in your config
Update/Changes in v2.0
First of all Kirby4 support is added. And the active language is underlined.
The config option changed from templatestatus.ignore
to doldenroller.templatestatus.ignore
.
And now it is possible to delete a translated content file. This can also be disabled or restricted in the blueprint or in config. The restriction can be made that only user-roles or users can delete the translated content. By now the users are found by their e-mailadresses. Maybe UUID support will be added in the future.
In the blueprint restrictions can be set with the delete:
property like this:
Or as global config-option:
In the examples above all users with theadmin
user role and the user with the e-mailadress [email protected]
can delete translated content.
Possible enhencements
These could be difficult but would be nice features:
- Update hint, that shows when content is updated
Delete / reset language, because sometimes its easier to start from scratch- Add user identification by user-UUID (Not my prioraty, because I mostly work without UUIDs)
Refresh/update section when new translation is created- Check compability with Kirby5
License
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia animal abuse, violence or any other form of hate speech.