User tests: Successful: Unsuccessful:
Introduces a new interface to set a language on an object. This will ease the transition phase from the static Text class to injected language dependency. Beside that we have now a way to get a language object by injection instead of Factory::getLanguage().
Everything is translated.
Everything is translated.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Category | ⇒ | Administration com_content Libraries Front End Plugins Unit Tests |
| Status | New | ⇒ | Pending |
| Labels |
Added:
?
PR-4.4-dev
|
||
| Category | Administration com_content Libraries Front End Plugins Unit Tests | ⇒ | Administration com_categories com_content com_contenthistory com_cpanel com_fields com_joomlaupdate com_menus com_modules com_plugins com_templates com_workflow Front End com_contact Libraries Plugins |
| Category | Administration com_content Libraries Front End Plugins com_categories com_contenthistory com_cpanel com_fields com_joomlaupdate com_menus com_modules com_plugins com_templates com_workflow com_contact | ⇒ | Administration com_admin com_categories com_content com_contenthistory com_cpanel com_fields com_finder com_joomlaupdate com_menus com_modules com_plugins com_templates com_workflow |
| Labels |
Removed:
?
|
||
| Labels |
Added:
Feature
|
||
Beside the comments, I was asking my self if it would make sense to have the language as part of the
Identityinstead of theApplication, normally the language is only relevant to the output which is a user interacting element.
This would be a bigger refactoring and is out of scope for this pr. But it actually makes sense to attach the language to a user object
Also I don't see the possibility to override/provide the language to an extension when booting it. For example to have the component in a different language then the current language.
Who wants to boot an extension with a different language? Mostly the extension itself has some logic to use a different language with a different locale while executing a controller task. From my experience a language with a different locale is only necessary when sending out mails for users with a different language set as the application language, but for this it is possible to inject a language factory and create a new language with a different locale. And when we on some point move the language from the app to the user, then we solve the majority of cases where a different language is used than the app language.
| Status | Pending | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-06-14 19:53:59 |
| Closed_By | ⇒ | MacJoom |
@laoneo Unit tests are failing, see https://ci.joomla.org/joomla/joomla-cms/65844/1/11 . All 9 errors are of this type: