Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for MessageFormat pattern for parametrized properties #118

Open
kassim opened this issue Mar 6, 2015 · 3 comments
Open

Support for MessageFormat pattern for parametrized properties #118

kassim opened this issue Mar 6, 2015 · 3 comments

Comments

@kassim
Copy link

kassim commented Mar 6, 2015

It would be good to have the possibility to use the MessageFormat pattern, as used by GWT i18n Messages (e.g. "The disk "{1}" contains {0} file(s)."), as to be able to share code between a GWT and other Java project easily.

This isn't possible at the moment is it?

I'll be looking into how I can implement this next week, any suggestions on implementation will be welcome.

@lviggiano
Copy link
Collaborator

Hi @mrkma

OWNER supports the java.util.Formatter syntax as explained here.

I was considering this feature useless, since OWNER is not supposed to be a tool for i18n and I was thinking to replace this feature with the possibility to specify parameters as setters for properties, for future development. But this is still undecided, and definitely there are more things to work on, before this.

Hope this helps.

@lviggiano
Copy link
Collaborator

It could be an idea to be able to specify a Formatter on class level and on method level, by annotations. Defaulting to java.util.Formatter for backward compatibility.

@lviggiano
Copy link
Collaborator

Note for myself: could this be included in the preprocessor feature? See #120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants