diff --git a/CHANGELOG.md b/CHANGELOG.md index 9136f44..3b75a35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 3.2.2 - 2024-03-25 + +### Updated +- docs + ## 3.2.1 - 2024-03-20 ### Fixed @@ -44,6 +49,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added - Craft 5 support +## 2.6.3 - 2024-03-25 + +### Updated +- docs + ## 2.6.2 - 2024-03-20 ### Fixed diff --git a/README.md b/README.md index 9df3e55..f9bd5db 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,10 @@ Trim spaces at begin or ending of values when they are saved. When a new unknown translation is used while rendering templates, an event is triggered. Handling this event is optional. A new empty translation row will be added for the missing message. +### Copy Entry bulk action + +Enable [this feature](#copy-entries-in-bulk-action) + ## Importing translations ![Screenshot](resources/img/screenshot_import.png) @@ -84,7 +88,13 @@ message rows in the database: ## Exporting 1. Export all the rows using the export tab -2. Or select the rows in the table to export +2. Or, in the overview table, select the rows and languages to export + - as csv file + - as a content migration file + +### Migration file export + +The advantage of exporting to a migration file is that your content can be pushed to git and then the server when deploying. The migration file adds the rows to your database when `craft up` or `craft migrate/all` is executed. ## Manage translations @@ -95,8 +105,6 @@ message rows in the database: To enable this functionality both enable this in the settings and set the permission for the user ("Copy content bulk action"). -You can also enable this in `config/database-translations.php` - You can now select Entries in the index table, and select the bulk action. The content will be copied over to the other site in a queue job. diff --git a/package.json b/package.json index 33a7e8b..34a1d89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "craft-database-translations", - "version": "3.2.1", + "version": "3.2.2", "description": "A translations plugin for Craft CMS", "scripts": { "dev": "cross-env NODE_ENV=development webpack --progress --config=webpack.config.js", diff --git a/resources/img/screenshot_settings.png b/resources/img/screenshot_settings.png index a2fda7b..239955c 100644 Binary files a/resources/img/screenshot_settings.png and b/resources/img/screenshot_settings.png differ diff --git a/resources/img/screenshot_table.png b/resources/img/screenshot_table.png index 5f7551c..f6fd5c2 100644 Binary files a/resources/img/screenshot_table.png and b/resources/img/screenshot_table.png differ diff --git a/src/config.php b/src/config.php index 0d04523..b8726a0 100644 --- a/src/config.php +++ b/src/config.php @@ -17,7 +17,7 @@ return [ // 'pluginName' => 'Translations', // 'categories' => [['key' => 'site']], -// 'mapLocales' => [], +// 'mapLocales' => [['source'=>'nl', 'destination'=>'nl-BE']], // 'handleMissingTranslationEvent' => false, // 'handleMissingTranslationEventOnlyInDevMode' => true, // 'trimValuesOnSave' => true, diff --git a/src/templates/index.twig b/src/templates/index.twig index dc198a8..b3fd08f 100644 --- a/src/templates/index.twig +++ b/src/templates/index.twig @@ -30,7 +30,13 @@ {% else %}

Hi!

Your database is empty

-

Start with an import or enable event to listen to missing translations in the settings.

+

+ Start with an import + {% if currentUser.admin and craft.app.config.general.allowAdminChanges %} + or enable event to listen to missing translations in + the settings. + {% endif %} +

{% endif %} {% endblock %}