Open mdeuk opened 5 years ago
Note, change request in question is 3287 (Trafnidiaeth Cymru). I have not added this authority yet, to allow for developers to investigate what might be going wrong. Test authority 'cwango' (3291) has been added to confirm that the bug is reproducible.
[fun fact - BydTermCymru does confirm the translation is correct - quango becomes 'cwango' 🙂]
Note: The alert in the support mailbox will be shown in the correct language (e.g. welsh in this instance)
FWIW I think this is incorrect – Admins should receive mail in the default language.
I think the gist of the problem here is that we're assuming that any "change request" adds the details for the default language of the site. This isn't a huge problem for WDTK specifically (I expect 98% of people use EN) but would be a bigger problem for international reusers supporting multiple locales.
@mdeuk Thanks for the really nice reproduction steps. Feel free to add the authority now, as we'll be able to recreate this in our development environments with the info you've given.
You'll want to move the Welsh translations over to the "Cymraeg" tab, and manually fill in the English with the English translation.
When submitting a request to add a new authority in using the Cymraeg version of WDTK an error appears to occur which causes the change request to attempt to update the English version of WDTK rather than the Cymraeg (Welsh).
Example:
I have submitted a request to add a new authority 'Trafnidiaeth Cymru' (Transport for Wales) from the /cy website, which generates a support request:
As you can see, the request is fully localised, however, when attempting to action the change request, the localised fields, e.g. body name and request email address populate in the default language fields (English), leaving the Cymraeg fields empty
This has the additional side effect of generating notifications back to the user in the wrong language, with no option to correct this, other than to manually change the message.
Steps to reproduce
I am able to reproduce this issue consistently.