Perform this task to insert variable substrings into a localized string.
successfulTransaction = The operation on account {0} was successful.
The same key in message catalogs for other languages has a translation of this string with the variable at the appropriate location for each language.
public void updateAccount(String transactionType) { ... Object[] arg = {new String(this.accountNumber)}; ... LocalizableTextFormatter successLTF = new LocalizableTextFormatter ("BankingResources", "successfulTransaction", "BankingSample", arg); ... successLTF.format(this.applicationLocale); ... }
In this information ...Related tasks
Related reference
| IBM Redbooks, demos, education, and more |