|
From: Geoffrey De S. <ge0...@gm...> - 2008-01-31 11:55:32
|
With kind regards, Geoffrey De Smet Benoit Xhenseval schreef: > > 5/ AbstractDialogExceptionHandler had some strange issues > > See > http://www.nabble.com/MessagesDialogExceptionHandler-does-not-seem-to-replace-placeholders.-to6962200.html#a6962200 > > There was no alternative to the small “hack” suggested > Does the info below explains your issue? === [ Show » ] Andrius Šabanas - 25/Oct/06 11:05 AM Hi, This problem intrigued me enough to investigate, and guess what? Those pesky little single quote symbols [ ' ] in Java properties files actually have to be escaped... :-) Otherwise they mark the start of non-substitutable string block, hence {0} is nicely ignored. Geoffrey's example in Dutch does not have single quote characters, so it works. BTW, I think your should not use shortened forms like "It's", "doesn't", "haven't" in semi-official places like an UI for an application - better replace them with full forms: "it is", "have not". cheers, Andrius [ Permlink | « Hide ] Geoffrey De Smet - 25/Oct/06 02:55 PM Andrius, you're a life saver :) I 'll have to read up on the properties format. I 'll fix petclinic's example soon and document this in the MDEH's javadocs. [ Show » ] Geoffrey De Smet - 25/Oct/06 02:55 PM Andrius, you're a life saver :) I 'll have to read up on the properties format. I 'll fix petclinic's example soon and document this in the MDEH's javadocs. [ Permlink | « Hide ] Geoffrey De Smet - 12/Nov/06 06:33 AM Escaping double quotes (\" instead of ") works, but escaping single quotes (') does not work. === We should read the properties spec and find how to write single qoutes. Next we need to document this ceveat in the reference manual. Free free to open an issue for that. I don't think anything can be done in the source code as far as I can see? |