This version of the plugin is depricated and will no longer be maintained!
Thankfully @Daandelange will take care of it in the future, so please check out https://github.com/Daandelange/k3-translations.
This plugin enhaces the translation handling of pages for Kirby CMS with the following features:
The plugin automatically detects if there's a language .txt
file for the current page in your content folder and displays additional language tabs. For now there are two possible states:
- RED: The translated
.txt
-file does not exist - GREEN: The translated
.txt
-file exists
For all non-default languages you can:
- delete a translation (without deleting the whole page)
- resynchronize translations with the default language file
This plugin is free but if you use it in a commercial project please consider to.
Download and extract this repository, rename the folder to translations
and drop it into the plugins folder of your Kirby installation. You should end up with a folder structure like this:
site/plugins/translations/
If you are using Composer, you can install the plugin with
composer require flokosiol/translations
git submodule add https://github.com/flokosiol/kirby-translations.git site/plugins/translations
Add the following section
to your blueprint.
sections:
translations:
type: translations
To disable the possibillity to delete language textfiles you can use …
sections:
translations:
type: translations
deletable: false
To disable the possibillity to revert the content of a language textfile to the default language do …
sections:
translations:
type: translations
revertable: false
Of course, you can combine both options.
For Kirby 3.5 and before, using the default language switcher in the Panel breaks the display of the actions (delete, revert), but this should be fixed for Kirby 3.6+
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.
Special thanks to all contributors!