Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
locale.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2026 at 15:19 UTC
Updated:
23 Mar 2026 at 14:30 UTC
Jump to comment: Most recent
Comments
Comment #3
alexpottComment #4
nicxvan commentedAny chance we can get #3572339: Modernize locale.fetch.inc in first?
I am trying to go through locale as party of the module cleanup and trying to organize them to reduce conflicts.
I created suggestions on the referenced issue for the comment change I'll apply in a bit since those should be made either way there.
Comment #5
nicxvan commentedlocale.fetch.inc is in.
The thing is locale.bulk is the biggest of the files and it's too big I think to do the full conversion in one issue.
Removing just the one function is clean but doesn't reduce the file enough for the remaining to be one more issue either.[
I'd propose we deprecate a few more in this issue:
locale_translate_get_interface_translation_files
locale_translate_file_create
locale_translate_file_attach_properties
locale_translate_delete_translation_files
These are the non batch related functions afaict, I think they could go in a LocaleTranslationFile service.
I can work on this if you agree, but I don't feel super strongly about this so we can just move forward here if you think it should be isolated.
I did search contrib and the function here is not being used.
Comment #6
dcam commented+1 from me for expanding the scope to move the other functions. Moving file management functions to a service makes sense to me. But I also want to note that
locale_translate_file_createisn't used anymore either. Its only use is in the contribdrush_languagemodule, which doesn't have a D11 release. Even if we focus on removing unused functions, then that one really seems like it should be in the scope of this issue.Comment #7
alexpott@nicxvan please can we remove this one function? It is broken which is different from needing to be moved - especially in light of #3575678: Locale checks file mtime but this is tricky if the translation files are copied to an image by Docker use a hash of the file instead which is also fixing a bug rather than refactoring code. Also this is a bug fix and not task. Let's not mix refactors and bug fixes.
Comment #8
nicxvan commentedIn that case I think this is ready, I can't rebase through the UI.
Comment #9
godotislateComment #13
godotislateCommitted and pushed to main and 11.x. Thanks everyone!
Comment #15
godotislate