Skip to content

Commit 0672f1d

Browse files
committed
Updated documentation
1 parent 1728d58 commit 0672f1d

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

documentation/localDevelopment.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,33 @@ task coding-standards:markdown:check
158158

159159
## About translations
160160

161-
Import translations by running
161+
We use [the "translation server" stuff from the Interface Translation
162+
module](https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/locale/locale.api.phh) for translations (see
163+
[hoeringsportal.info.yml](web/themes/custom/hoeringsportal/hoeringsportal.info.yml) for an example).
164+
165+
Update and import translations by running
162166

163167
```sh
164-
task translations:import
168+
task drush -- locale:check
169+
task drush -- locale:update
170+
task drush -- cache:rebuild
165171
```
166172

167-
Export translations by running
173+
Update module and theme translations by running
168174

169175
```sh
170176
task translation:extract
171177
```
172178

173-
and
179+
Use `task translation:diff` to check for any changes. New (or empty) translations are marked as
180+
"[fuzzy](https://www.gnu.org/software/gettext/manual/html_node/Fuzzy-Entries.html)" and default Danish translations for
181+
these must be added.
182+
183+
> [!TIP]
184+
> [Poedit](https://poedit.net/) is an excellent tools for editing po files.
185+
186+
<details>
187+
<summary>Do we still use/need this</summary>
174188

175189
```sh
176190
(cd web && ../vendor/bin/drush locale:export da --types=customized > ../translations/custom-translations.da.po)
@@ -179,6 +193,8 @@ and
179193
Open `translations/custom-translations.da.po` with the latest version of [Poedit](https://poedit.net/) to clean up and
180194
then save the file.
181195

196+
</details>
197+
182198
See [How to deploy drupal interface
183199
translations](https://medium.com/limoengroen/how-to-deploy-drupal-interface-translations-5653294c4af6) for further
184200
details.

0 commit comments

Comments
 (0)