Cleanup L10n namespace #947
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
dependencies
Hackathon 2021
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#947
Loading…
Reference in a new issue
No description provided.
Delete branch "task/di_l10n"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of https://github.com/friendica/friendica/pull/8134
L10n::t()
calls toDI::l10n()->t()
callsL10n::tt()
calls toDI::l10n()->tt()
callsEspecially this function is really used very often. I would prefer keeping it really short.
So, in order to check all files have the required use statement, you have to go through all the files where you make changes. This is easy in phpStorm because you can dock any usage or literal search and iterate through the results to make sure each individual file is correctly wired for the change.
Or you can replace by
\Friendica\DI::
and be sure nothing will break.