Make the custom translation file part of a normal locale update

Created on 24 April 2023, over 1 year ago

Problem/Motivation

The module creates a general.pot file in a sub directory called custom in the local translations directory. This file is imported after the other translations by a call to the command drush locale:import and passing in the filename.

It's good that the custom file is imported after other translations because it gives you the opportunity to add strings from core and contrib to a custom module and then use this to override the translations (and have it maintained in git and alongside other translations) but it does mean that this file would not be imported if you ran drush locale:update or you used the UI.

Remaining tasks

Can we use hook_locale_translation_projects_alter() to make locale aware of the general file.

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024