Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Our team suggested to shorten all the messages, I'm not sure if everybody likes this.
So this is a proposal and I would like to have more input here.
Following changes:
Old | New |
---|---|
This content translation is being edited by the user @name and is therefore locked to prevent other users changes. This lock is in place since @date. | This content translation is locked by @name. This lock exists since @date. |
This content translation is now locked by you against simultaneous editing. This content translation will remain locked if you navigate away from this page without saving or unlocking it. | This content translation is now locked by you against simultaneous editing. You can unlock this content translation by clicking here: !unlock |
This content translation is now locked against simultaneous editing. This content translation will remain locked if you navigate away from this page without saving or unlocking it. | This content translation is now locked by you against simultaneous editing. You can unlock this content translation by clicking here: !unlock |
Lock broken. Anyone can now edit this content translation. | Unlocked. Anyone can edit this content translation now. |
Lock broken. Anyone can now edit this content. | Unlocked. Anyone can edit this content now. |
Comment | File | Size | Author |
---|---|---|---|
#12 | content_lock-message-changes-2925274-12.patch | 4.69 KB | oknate |
#9 | content_lock-message-changes-2925274-9.patch | 3.38 KB | oknate |
#8 | 2925274-8.patch | 5.75 KB | kfritsche |
Issue fork content_lock-2925274
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kfritscheHere a patch which would do this, but this is a patch after #2925247: Always add unlock link if possible.
Comment #3
kfritscheSmall additional change:
- You can unlock this content by clicking here: @link
+ You can unlock it by clicking here: @link
In the sentence before there is just already this content, so just a bit shorter.
Comment #4
hchonovNot sure where should I post it, but when an admin unlocks content locked by others then two messages are shown:
Comment #5
kfritsche@hchonov: What is the issue exactly here? Its two messages as its unlocked and locked again. What is wrong here or what do you propose to change in this case?
Comment #6
hchonovThe problem is that after the second message the first one isn't true anymore :). Probably the correct solution would be not to redirect the user to the form but to the view ..
Comment #7
kfritscheRe-roll after latest changes.
Comment #8
kfritscheRe-roll...
Comment #9
oknateAdding an update to fix a grammar issue. "Since" is for dates, not quantities of time. So you can say, "since Jan 1st", but not "since 33 seconds".
This lock is in place since @date
to
The content has been locked for @date
Comment #10
hchonovOnly this message is of type "warning" and all others of the type "status". Having two different types for two messages shown one after another leads to showing them in different message boxes - one for status messages and one for warning messages.
Comment #11
hchonovActually here we have to use the
$type
parameter provided to the methodunlockStatusMessage
, then it should be fine.Comment #12
oknateAdding messenger service to EntityBreakLockForm, since it's used in ContentLock, for consistency.
@honchov, I don't see ContentLock::unlockStatusMessage(). It must have been removed at some point.
Comment #13
oknateIt looks like some work needs to be done to fix the tests with this patch.
I started working on it, but it needs to be on Drupal 8.6, as some of the tests require it.
Comment #14
smustgrave CreditAttribution: smustgrave at Mobomo commented#3068618: I feel the message of unlocking is strange can be closed a duplicate
Comment #15
smustgrave CreditAttribution: smustgrave at Mobomo commentedClosed #3068618: I feel the message of unlocking is strange as a duplicate of this.
Comment #16
smustgrave CreditAttribution: smustgrave at Mobomo commentedComment #17
smustgrave CreditAttribution: smustgrave at Mobomo commentedAlso closed #3214877: Altering timeout message
Comment #18
smustgrave CreditAttribution: smustgrave at Mobomo commentedAlso closed #3352197: Add option to change unlock button text
Comment #19
smustgrave CreditAttribution: smustgrave at Mobomo commentedComment #21
smustgrave CreditAttribution: smustgrave at Mobomo commentedAdded update to README will see if committer wants to update the defaults.
Comment #22
penyaskitoI think this is quite opinionated unless there's some UX study behind it which seems overkill?
Personally I think "Lock broken" is weird, "Unlocked" looks more user friendly to me, but I'm not a native English speaker.
I have not a very strong position on the other proposed changes.
Comment #23
smustgrave CreditAttribution: smustgrave at Mobomo commentedAlso liked Unlocked more personally, if that's the only change probably can make that. Just don't want to bikeshed for 6 years :)
Comment #26
alexpottLet's change "Lock broken" to "Unlocked" and be done.
Comment #29
smustgrave CreditAttribution: smustgrave at Mobomo commentedActually was only 2 spots.
Comment #31
alexpottLet's get this done.