Selecting text to add a link is common. We want to:
- Indicate the user that it is possible to click on a source link to turn the current selection into the corresponding article.
- Communicate which links can be added and which ones cannot (because their corresponding article does not exist int he target language).
In order to achieve the above goals we can:
- De-emphasize those links from the source paragraph that cannot be adapted once the user selects some text. They can turn grey to make them look disabled (only when the user has text selected in the translation text, when there is no selection links will look normal). The same grey used for missing links can be used for these "unadaptable links" in the source text, I tried #999 in the example below:
- For those links that can be adapted, showing a tooltip ("Add this link to the translation") could help too. Currently the tooltip shows the article title. When the user has some text selected in the translation text, the tooltip for source links should say instead:
- "Add this link to the translation" if the link can be adapted.
- "Page not available in French" if the link cannot be adapted (replacing "French" with the corresponding language).
It has been mentioned already on each change, but it is important to note that the changes in this ticket only are applied when the user has some text selection in the target text (not in the source text, or anywhere else) and changes should be reverted when there is no longer a text selection.