User tests: Successful: Unsuccessful:
The command never loaded lib_joomla, so strings of the installer stayed untranslated in the CLI. A template installed this way got the style title JLIB_INSTALLER_DEFAULT_STYLE instead of " - Default".
Fixes #39267
extension:install never loads lib_joomla, so strings of the installer stay
untranslated in the CLI. The command now loads the language file when it starts,
like core:update and update:extensions:check already do.
php cli/joomla.php extension:install --path=/path/to/template.zip.The title of the style is JLIB_INSTALLER_DEFAULT_STYLE.
The title of the style is <template name> - Default.
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
I have tested this item ✅ successfully on 61bd90d
Thanks for adding extension:discover:install.
I have tested this item ✅ successfully on 61bd90d
Minimal site templates installed via CLI, title of the new style (before = base version of the command):
extension:install --path=…JLIB_INSTALLER_DEFAULT_STYLE<name> - Defaultextension:install --url=…<name> - Defaultextension:discover:installJLIB_INSTALLER_DEFAULT_STYLEJLIB_INSTALLER_DEFAULT_STYLESuggestion:
extension:discover:installhas the same bug (the template adapter creates the style forinstallanddiscover_install). Adding the same line toExtensionDiscoverInstallCommand::configureIO()fixes it, tested with and without--eid: