Hi all,
I've been asked if I can change a message in the found draft for never saved dialog. The message used is found in the apps/fr/i18n/resources.xml file and I can make a local copy of that and change the message there but this would create a maintenance issue in the future as I would need to keep my copy of that file up to date. Is there a way to override just one message from the resources file? Or maybe another way to override what is presented in that dialog. thanks brian... -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1568591525882-0.post%40n4.nabble.com. |
Administrator
|
Hi Brian,
You can do this through properties. You can find more information about this in the section linked below. In your case, say you want to override the `found-draft-for-never-saved` resource. In the Form Runner resources.xml you see it is under `detail/draft-singleton/found-draft-for-never-saved`, so you'll want to set the property `oxf.fr.resource.*.*.en.detail.draft-singleton.found-draft-for-never-saved`. And note that when changing those properties, you'll need to restart the server to see an effect, as those are aggressively cached (unlike most other properties). https://doc.orbeon.com/configuration/properties/form-runner#overriding-resources You'll let me know if this works for you! ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1568651429869-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Hi Brian, did you get a chance to try setting the property to override
resources? If so, did that work for you? ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1569277621696-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks Alex, yes worked perfectly.
-- regards, brian... On Tuesday, September 24, 2019 at 8:27:02 AM UTC+10, Alessandro Vernet wrote: Hi Brian, did you get a chance to try setting the property to override You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/e46a3e8e-e64f-45c4-908a-b0fc892d912a%40googlegroups.com. |
Administrator
|
Excellent Brian, and thank you for the update!
‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1569344246398-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |