Cleanup L10n namespace #947

Merged
nupplaphil merged 6 commits from task/di_l10n into develop 2020-01-19 17:30:31 +01:00
nupplaphil commented 2020-01-18 21:47:12 +01:00 (Migrated from github.com)

Part of https://github.com/friendica/friendica/pull/8134

  • Move L10n::t() calls to DI::l10n()->t() calls
  • Move L10n::tt() calls to DI::l10n()->tt() calls
Part of https://github.com/friendica/friendica/pull/8134 - Move `L10n::t()` calls to `DI::l10n()->t()` calls - Move `L10n::tt()` calls to `DI::l10n()->tt()` calls
annando commented 2020-01-18 22:09:14 +01:00 (Migrated from github.com)

Especially this function is really used very often. I would prefer keeping it really short.

Especially this function is really used very often. I would prefer keeping it really short.
MrPetovan commented 2020-01-18 22:48:59 +01:00 (Migrated from github.com)

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.

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.
MrPetovan (Migrated from github.com) approved these changes 2020-01-19 16:07:57 +01:00
Sign in to join this conversation.
No description provided.