Problem with the translation editor
Fragment of a discussion from User talk:Yair rand/LQT archive
The problem is caused by the new format containing an additional colon: one right after "subst" and another right after "#invoke", instead of just one for subst. In the old format, the second colon was always right after the language name ("{{subst:fr}}:"), which is what the script used for delineating where the new translation actually starts, and what has to be added even if a line for that language already exists. One solution that comes to mind is replacing the var wt = wikitext.replace('subst:','');
lines with var wt = wikitext.replace('subst:#invoke:','');
, but I don't know what other effects that might have.