User tests: Successful: Unsuccessful:
Pull Request for Issue #43206 .
Language file is now loaded before outputting the warning message.
Arrange for an extension update site to have an invalid URL (eg. temporarily mangle the URL in the extensions database). Then run php cli/joomla.php update:extensions:check
from the command line.
Warning message: [WARNING] JLIB_UPDATER_ERROR_OPEN_UPDATE_SITE
Warning message something like
[WARNING] Update: Could not open update site #4 "xxxxxxxxxxx Package Update Site", URL: https://example.com/xxxxx/update.xml
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
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Not sure what the "official" convention is so you'll need to educate me on that. However, from looking at the code, log messages are untranslated English strings, but messages intended for CLI output, which is the case here, are translated into the default language. This PR ensures that the CLI user gets to see the same message as the web user in the default language.
If the convention is that the CLI is always in English, then fine, I've learnt something today. :-)
But, thinking about it, the code I'm modifying here (UpdateAdapter.php) is also used by the web interface (when you click "Check For Updates"), so it needs to be translated. The correct language file is already loaded in the web interface, but isn't for CLI.
Or maybe a better fix would be to load the lang file in cli/joomla.php? Dunno.
Labels |
Added:
bug
PR-4.4-dev
|
I have tested this item ✅ successfully on 223769c
I have tested this item ✅ successfully on 223769c
Status | Pending | ⇒ | Ready to Commit |
RTC
Title |
|
Labels |
Added:
RTC
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-26 15:44:55 |
Closed_By | ⇒ | MacJoom |
Thank you!
Not usre this is the correct fix. Everything else in the cli is hardcoded english strings and not translatable