? ? ? Pending

User tests: Successful: Unsuccessful:

avatar ReLater
ReLater
3 May 2020

Summary of Changes

  • Change lang string COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION
  • Use sprintf to display extension name and id

Testing Instructions

  • 4.0 nightly build of today (Sunday, 03 May 2020 02:00:34 UTC)
  • Go to extensions manager (administrator/index.php?option=com_installer&view=manage)
  • Select many locked extensions.
  • Click Uninstall.

Actual result

03-05-_2020_14-23-04

After applying pr

03-05-_2020_14-24-31

Additional comment:

  • I can't test changes in libraries/src/Console/ExtensionRemoveCommand.php in my current environment.
avatar ReLater ReLater - open - 3 May 2020
avatar ReLater ReLater - change - 3 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2020
Category Administration Language & Strings
avatar ReLater ReLater - change - 3 May 2020
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2020
Category Administration Language & Strings Administration Language & Strings Libraries
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2020
Category Administration Language & Strings Libraries Administration com_installer Language & Strings Libraries
avatar ReLater ReLater - change - 3 May 2020
The description was changed
avatar ReLater ReLater - edited - 3 May 2020
avatar richard67
richard67 - comment - 3 May 2020

@ReLater Could you translate the extension names in the messages? I think if you just use Text::_($row->name) instead of $row->name it should work. Then you could change your language sting to "Locked extensions cannot be uninstalled: Extension name %s, ID %s.", and people would see it is the name which they can see e.g. in "Extensions: Manage".

avatar infograf768
infograf768 - comment - 3 May 2020

if you change to variables please number them. That helps TT when multiple variables.

avatar ChristineWk ChristineWk - test_item - 3 May 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 3 May 2020

I have tested this item successfully on e114d0b

Confirm Actual result.
Confirm After Patch, see screenshot, but I don't know what to do with sprintf
Installed: 4.0 nightly build of today (Sunday, 03 May 2020 02:00:34 UTC)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28916. ![pr28916](https://user-images.githubusercontent.com/15275917/80925191-21ca4d00-8d8e-11ea-9755-dffd1ac47f4c.JPG)
avatar ChristineWk
ChristineWk - comment - 3 May 2020

pr28916

avatar ReLater
ReLater - comment - 3 May 2020

@richard67

I think if you just use Text::_($row->name) instead of $row->name it should work.

I've tested that before I posted pr. You would have to load all relevant language files first. Complete overhead for this little feature.

That's the reason why I've added the ID.

avatar richard67 richard67 - alter_testresult - 3 May 2020 - ChristineWk: Tested successfully
avatar richard67
richard67 - comment - 3 May 2020

Last change was just a small language string change, so previous test result is still valid.

avatar richard67 richard67 - test_item - 3 May 2020 - Tested successfully
avatar richard67
richard67 - comment - 3 May 2020

I have tested this item successfully on 08e9844


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28916.

avatar ReLater
ReLater - comment - 3 May 2020

@ChristineWk

but I don't know what to do with sprintf

Ignore that comment below headline "Summary of Changes". It's just an abstract of what I've done in codes. "Code uses sprintf now."

avatar richard67 richard67 - change - 3 May 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 3 May 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28916.

avatar ReLater
ReLater - comment - 3 May 2020

@infograf768

if you change to variables please number them. That helps TT when multiple variables.

Sorry. I don't understand that comment.

avatar brianteeman
brianteeman - comment - 3 May 2020

What he means is that instead of having

The extension %s which is a %s cannot be found

You have

The extension %1s which is a %2s cannot be found

This makes it easier for translators where the order of parts is not the same

avatar ChristineWk
ChristineWk - comment - 3 May 2020

@ReLater
ah, I see now: "Code uses sprintf now." > "Locked extension cannot be uninstalled. %s, ID %s."

avatar ReLater ReLater - change - 3 May 2020
Labels Added: ?
avatar ReLater
ReLater - comment - 3 May 2020

Decide yorself if we need new tests after last change 246dea7

avatar richard67
richard67 - comment - 3 May 2020

I have tested this item successfully on 246dea7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28916.

avatar richard67 richard67 - test_item - 3 May 2020 - Tested successfully
avatar richard67 richard67 - change - 3 May 2020
Status Ready to Commit Pending
avatar richard67
richard67 - comment - 3 May 2020

Back to pending. One more test needed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28916.

avatar ChristineWk ChristineWk - test_item - 3 May 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 3 May 2020

I have tested this item successfully on 246dea7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28916.

avatar richard67 richard67 - change - 3 May 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 3 May 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28916.

avatar infograf768
infograf768 - comment - 4 May 2020

This gives
Screen Shot 2020-05-04 at 08 41 17

Would'nt it be better to get
Screen Shot 2020-05-04 at 08 45 36

String
COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION="The \"%1s\" (ID %2s) is a locked extension and cannot be uninstalled."

What do you think?

avatar richard67
richard67 - comment - 4 May 2020

Hmm ... either leave the The at the beginning, so it is COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION="\"%1s\" (ID %2s) is a locked extension and cannot be uninstalled."

Or change to COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION="The extension \"%1s\" (ID %2s) is locked and cannot be uninstalled."

avatar infograf768
infograf768 - comment - 4 May 2020

OK for 2nd proposal. It's definitely better phrasing than the existing one.

avatar infograf768
infograf768 - comment - 4 May 2020

@ReLater
Can you modify the string please?

avatar ReLater
ReLater - comment - 4 May 2020

Ah, come on! Feel free to take over.

avatar ReLater ReLater - change - 4 May 2020
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2020-05-04 11:04:25
Closed_By ReLater
avatar ReLater ReLater - close - 4 May 2020
avatar richard67
richard67 - comment - 4 May 2020

@ReLater Please, restore your branch and do that little change:
COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION="The extension \"%1s\" (ID %2s) is locked and cannot be uninstalled."

If you really don't want, restore at least the branch so that I can pick your commit, then you will still be counted as co-author in a new PR.

Add a Comment

Login with GitHub to post a comment