File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
170176task 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)
179193Open ` translations/custom-translations.da.po ` with the latest version of [ Poedit] ( https://poedit.net/ ) to clean up and
180194then save the file.
181195
196+ </details >
197+
182198See [ How to deploy drupal interface
183199translations] ( https://medium.com/limoengroen/how-to-deploy-drupal-interface-translations-5653294c4af6 ) for further
184200details.
You can’t perform that action at this time.
0 commit comments