Closed (fixed)
Project:
Web Experience Toolkit
Version:
4.0.4
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2021 at 20:50 UTC
Updated:
1 Jun 2021 at 15:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
smulvih2This patch provides the translations.
Comment #3
smulvih2Note - This commit, which moved all wxt_ext_webform config files into the /optional directory, breaks translation import on install. Might be related to this issue. Regardless, would be good to include all webform translations, just need to copy the files to /config/sync directory and import.
Comment #4
smulvih2When the translation config files are in the /optional directory they are not installed. Including all config files in /install causes an error when uninstalling and then re-installing the wxt_ext_webform module.
This patch moves all config to the /install directory and adds the
enforcedkey which ensures that the configuration is removed when the module is uninstalled, which fixes the error mentioned above. I tested this on a fresh install of 4.0.2 and all config and translations are imported properly. I also tested uninstalling and re-installing the wxt_ext_webform module and it works as expected as well, including translations. Unless I am overlooking something I think this is the best setup here.Also modified the block.block.reportproblemblock.yml file to load the Report a Problem webform and have it display inline, which I think is a good default.
Comment #5
joseph.olstadgreat work @smulvih, I'll look closer at this patch soon to see how this 'enforced' key works as I'll likely need to try it in some custom modules.
Comment #6
sylus commentedI took a look at this.
I think we had to move to optional because it was causing problems with other site installs and moving to optional resolved those dependency problems.
The changes do look good to me though so i'll reach out to perform some tests against it before merge :D
Thanks!
Comment #7
smulvih2Tested patch against 4.0.4 and it still applies. I think the only dependency issue would be if the webform module wasn't installed, but since this module lists webform as a dependency it shouldn't cause any issues.
Comment #8
joseph.olstadyes we need this patch thanks
#3213261: When configured as an inline form, Report a problem submits to the contact form
Comment #9
joseph.olstadtried patch 4 it worked out nicely so far, now trying both patch 4 (improved defaults) AND patch 2 (translations)
Comment #10
smulvih2@joseph patch #2 isn't needed if patch #4 is used. #2 just adds the translation config file to /optional which doesn't work for translations on install. #4 adds the translation in /install, as well as adds the enforced key to make sure it can be uninstalled/installed again.
Comment #11
joseph.olstadok must be why translations didn't work for me, I will try again without patch 2
Comment #12
joseph.olstadPatch working fine except translations. It did add some but I can't edit them.
strangely, got this error trying to edit the french translations of the Report a problem block
Comment #13
joseph.olstad#3212867: Unable to translate webforms 6.0.3
Comment #14
joseph.olstadok with this webform patch the translations come in nicely
#3212867: Unable to translate webforms 6.0.3
Comment #15
joseph.olstadRTBC patch 4 when using patch 3 from 3212867 (for webform module)
Comment #16
sylus commentedNathan Weir, would you mind checking that this addition doesn't cause problems for you?
I seem to remember it conflicted with your webform settings but to be honest I might be forgetting.
Otherwise I am good to commit this :D
Comment #18
sylus commentedComment #19
joseph.olstadThanks @sylus, I reviewed your commit quickly and it looks exactly as prescribed!
Comment #20
natew commentedApologies for not getting to this last week, looks fine to me.