I have string containing a list of name like below:
“John asked Kim, Kelly, Lee and Bob about the new year plans”. The number of names in the list can very.
How can I localize this in Java?
I am thinking about ResourceBundle and MessageFormat. How will I write the pattern for this in MessageFormat?
Is there any better approach?
I have string containing a list of name like below: John asked Kim, Kelly,
Share
You could do something like:
where 0 is the first name and 1 is a comma-separated list of the other names.
Hope this helps.