More more

This commit is contained in:
benjamin melançon 2020-03-18 18:37:25 -04:00
parent 938b92a9a0
commit 600580ef5f
2 changed files with 96 additions and 2 deletions

View file

@ -248,6 +248,17 @@ Should it be in a template
{{% /note %}} {{% /note %}}
---
##### Thre's a module that *almost* does exactly what you want
* Contribute a patch!
{{% note %}}
Even if your patch is not accepted nor is there any way given to build on the module, you can fork the module— maintain your own copy.
{{% /note %}}
--- ---
@ -260,6 +271,8 @@ Should it be in a template
You've identified to the best of your ability that there's definitely not something out there that does what you want to do. You've identified to the best of your ability that there's definitely not something out there that does what you want to do.
I personally do not advocate introspection at this point: Why am i trying to do something that no one else is trying to do? I personally do not advocate introspection at this point: Why am i trying to do something that no one else is trying to do?
Credit: lego heart is credited to Llama-Muffin-Kelly on DeviantArt but only see it on Pinterest
{{% /note %}} {{% /note %}}
@ -273,9 +286,7 @@ I personally do not advocate introspection at this point: Why am i trying to do
{{% note %}} {{% note %}}
The module does not exist. The module does not exist.
I do not advocate self-reflection at this point
Credit: lego heart is credited to Llama-Muffin-Kelly on DeviantArt but only see it on Pinterest
{{% /note %}} {{% /note %}}
@ -292,6 +303,13 @@ Credit: lego heart is credited to Llama-Muffin-Kelly on DeviantArt but only see
{{% note %}} {{% note %}}
{{% /note %}} {{% /note %}}
---
--- ---
## Why contribute? ## Why contribute?
@ -304,9 +322,85 @@ Credit: lego heart is credited to Llama-Muffin-Kelly on DeviantArt but only see
{{% note %}} {{% note %}}
{{% /note %}} {{% /note %}}
---
[![Workflow buttons issue: Add a configure link in Extend page.](images/workflow-buttons-add-configure-link-in-extend-page.png)](https://www.drupal.org/project/workflow_buttons/issues/3120524)
{{% note %}}
Or someone may make a tiny improvement that makes everyone's lives better.
{{% /note %}}
--- ---
## Nice touches
`workflow_buttons.info.yml`
```diff
type: module
description: 'Provide workflow buttons for content moderation instead of a select dropdown of states.'
core: 8.x
+configure: workflow_buttons.settings
dependencies:
- drupal:system (>=8.4)
```
{{% note %}}
{{% /note %}}
---
### How to develop while sharing the same code you're using
Your module `composer.json`:
```json
{
"name": "drupal/cyborgtranslate",
"description": "Trigger Google translate and Drupal interface translation at the same time, allowing sections of your site's localization to be done by humans and the rest by machines.",
"keywords": ["drupal", "translation", "multilingual", "localization", "google translate"],
"type": "drupal-module",
"license": "GPL-2.0+",
"homepage": "https://www.drupal.org/project/cyborgtranslate",
"minimum-stability": "dev",
"support": {
"issues": "https://www.drupal.org/project/issues/cyborgtranslate",
"source": "https://gitlab.com/agaric/drupal/cyborgtranslate/tree/8.x-1.x"
}
}
```
{{% note %}}
Composer makes a lot of stuff seem more complicated, but it makes it easier to contribute.
Trust me... this will only be three screens of gibberish.
{{% /note %}}
---
Your project root `composer.json`:
```json
{
"require": {
"drupal/core": "^8.8.0",
"drupal/cyborgtranslate": "dev-8.x-1.x as 1.x-dev",
"drush/drush": "^9.0"
},
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
},
"drupal/cyborgtranslate": {
"type": "git",
"url": "git@gitlab.com:agaric/drupal/cyborgtranslate.git"
}
}
}
```
--- ---

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB