Steps to replicate the issue (include links if applicable):
- Open https://translatewiki.net/w/i.php?title=Special:Translate&showMessage=cita-wikicite.wikidata.create.auto.confirm.message&group=cita&language=fa&filter=&optional=1&action=translate
- Select a location within the rtl text
- Click on the insertable variable
What happens?:
Instead of %2$s or %1$s, s$2% and s$1% gets inserted
What should have happened instead?:
The actual variable (%2$s or %1$s) should get inserted
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
- Translate - master
Other information (browser name/version, screenshots, etc.):
- Reproduced on Firefox 130 on Linux.
- Adding a newline and then clicking on the insertables results in the correct value being inserted.