neilcsmith-net commented on issue #425: Netbeans 352
URL: 
https://github.com/apache/incubator-netbeans/pull/425#issuecomment-368035513
 
 
   To use pluggable formatters we'd still have to be able to wrap or override 
`NbBundle.getMessage()` to use our own `MessageFormat` to achieve this?
   
   It's not a proposal to break the idea of referentially transparent you're 
talking about then - it's about being able to override / wrap the default 
behaviour of `NbBundle.getMessage()`.  That _could_ be abused, but the proposal 
is meant to be that you still get the same output for any distinct set of input 
arguments.
   
   At the moment there is an assumption that a module is providing all / the 
right inputs you need to construct the output message you want, but this 
doesn't always hold in a platform application (it probably does for 
translations).  The OP's problem is one, but there are lots of times you might 
want to calculate something differently eg. turning an `X of Y files` message 
into an `X files remaining` message, etc.    

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to