weblate icon indicating copy to clipboard operation
weblate copied to clipboard

Support suggesting in zen mode

Open exzhawk opened this issue 5 years ago • 2 comments

Is your feature request related to a problem? If so, please describe. I noticed that a user with only "Suggest" privilege can not use zen mode. The user has no zen mode button on the translation interface. And if he manually enters zen mode by changing URL, weblate will alert "Insufficient privileges for saving translations.".

Describe the solution you'd like I wonder is it possible to allow a user with only "Suggest" privilege to contribute Suggestions using zen mode. The zen mode does help boosting efficiency for some users. So it's frustrating that they can't use it.

Describe alternatives you've considered I'm going to do some frontend hack to see if my idea is possible/easy to use.

Additional context If a user with both "Suggest" and "Translate" privilege is using zen mode, it might be confusing whether he is going to submit the contribution as Suggestion or Translation. My idea is providing a single select option somewhere, which can control if it's a Suggestion or Translation. The option should default to Translation if the user has "Translate" privilege, and disabled(greyed out) the "Translation" option if the user doesn't have the privilege.

exzhawk avatar Jan 03 '21 10:01 exzhawk

FYI, I've made a clumsy implement here. https://github.com/exzhawk/weblate/commit/429569ca88c8d3ec961864a75936d56a28ddcca7 It's too hacky to be PR, so I'll leave it there. A screenshot. image

exzhawk avatar Jan 03 '21 16:01 exzhawk

It isn't that bad :-). The UI would need some improvement and the permission check on the first unit in the list is problematic as it might be read-only or approved string which user can not edit, but he might have permissions to edit other ones...

nijel avatar Jan 04 '21 15:01 nijel