while working on supertext module I wanted to show the user a better explanation why his Job cannot be translated by the selected translator.
There is such a reason function for isAvailable: getNotAvailableReason() but not for the canTranslate function.

the attached patch adds this to tmgmt core.

The whole thing also depends on #1420364: A simple response object for methods which need to return a true/false *and* a message which then makes the reason functions obsolete. But until then I think we can add this.

CommentFileSizeAuthor
patch_commit_db8987531671.patch3.87 KBschnitzel

Comments

berdir’s picture

patch_commit_db8987531671.patch queued for re-testing.

berdir’s picture

Status: Needs review » Fixed

Decided to commit this.

While I'd prefer a solution based on the discussed return objects in the other issue, this is what we currently have a patch for and supertext already implements it. Easy to revert in case we implement the return objects.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.