We should take a look at whether there is any JSP mechanism for this that we should be following.
Anyway, in this gsp snippet:
we should have a quick way to promote that to the correct properties bundle containing the messages for this app and modify the snippet to:
perhaps on pressing whatever the key combination is they need to enter the relevant message key (and optionally change the message bundle we have 'guessed'). Or perhaps we can also guess a simple key so there is no required interaction and then we support a refactoring for renaming message code keys (this could be another enhancement request).
If we were being particularly clever we could do it without them necessarily needing to select the text, if they are at this point <h1>this is some text<Press Key Combination Here> we automatically grab the text up to the proceeding tag.
We probably should also support inserts. If the text is
I can imagine that automatically becoming (on pressing this magic key press):
and the message entry in the bundle becoming: