Closed (fixed)
Project:
Localization server
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2025 at 17:21 UTC
Updated:
30 Dec 2025 at 09:49 UTC
Jump to comment: Most recent
Comments
Comment #2
donquixote commentedFirst one introduced in
Second one introduced in
Third one introduced in
Comment #3
garvitasakhrani commentedWorking on it.
Comment #5
garvitasakhrani commentedI have fixed the undefined variable warnings and removed the $extra variable, as it was not used anywhere in the code. Please review the merge request and let me know if any updates are required.
Comment #6
fmb commented@garvitasakhrani I agree with changes in TranslateForm and TranslationContribution. As for L10nPackager, the $extra variable was already undefined in the Drupal 7 version, so indeed it does look like it should be removed, but nevertheless I am going to ask on Slack if we are missing something here.
Comment #7
donquixote commentedI identified the same changes when i looked deeper in the phpstan issue.
The '%extra' part in a url no longer works in that function since a05f31ecb70322cde2b from D7, even though other places with $extra still exist in that commit (but don't do anything useful).
https://git.drupalcode.org/project/l10n_server/-/commit/a05f31ecb70322cd...
Comment #8
donquixote commentedAll 3 fixes make sense to me.
Comment #9
fmb commentedIndeed, see this discussion on Slack about $extra, which is the most sensitive part here. As Gábor said, we need to make sure that files get properly generated for RC, beta, etc. releases with the proper name, so at least test manually, ideally write some automated test if it makes sense here.
Comment #10
garvitasakhrani commentedI’ve updated the merge request to keep the %extra placeholder while fixing the undefined variable, as suggested.
Please review and let me know if any additional updates are needed.
Comment #11
fmb commentedThanks. I opened #3563407: Test files generated by packager as a follow-up for tests.