Steps to Reproduce:
- Go to Special:Translate
- Choose to translate Recent additions or Recent translations ( Dynamic message groups )
- Open a message and click the "Link to this message" tool in the dropdown on the message key
Actual Results:
You will see a message stating - "The message group is empty".
Expected Results:
Expect to see the actual message linked to in the respective message group, with the respective target language.
Additional details:
Link when copying from Recent additions message group,
http://127.0.0.1:8080/w/index.php?title=Special:Translate&showMessage=1198%3A1300%3AHelp%2FPage_display_title&group=page-1300%3AHelp&language=en-gb
Link when copying from the appropriate message group,
http://127.0.0.1:8080/w/index.php?title=Special:Translate&showMessage=1300%3AHelp%2FPage_display_title&group=page-1300%3AHelp&language=en-gb&filter=&optional=1&action=translate
If you look at the text after showMessage query parameter, you'll notice that the link generated on the recent additions page has a 1198: prefix. This is the NS_TRANSLATION namespace.
Possible solutions
- Replace the 1198: before generating the link. This might cause problems with Translatable pages that start with 1198:
- In the link instead of setting the message group as the actual group in which the message is present, the group can be set to the dynamic message group ( Recent additions / translations). The issue with this approach is that after a few days, the link will become invalid.