Locale-Sensitive Java Method
java.lang.String
public String concat(String str)
Internationalization (I18n) Function Overview
The concat method returns a new String that is the concatenation of the current String and str.
I18n Issues
In an internationalized application, concat should not be used if the resulting string is to be displayed to the user. This is because the
order of the translated pieces of the string can be different for each locale.
Recommended Replacements
Concatenation of words is particularly questionable from a linguistic point of view.
It is preferable to externalize strings to encompass complete sentential forms (including punctuation),
rather than concatenate individual fragment strings.
Use MessageFormat
or
String.format to manage dynamic string creation,
assuming locale has properly been set using setlocale .
|