Use format, instead of hardcoded concatenation, for formatting

recipient display.  (suggested by dumbfile in Comment 12 of Issue 10)
This commit is contained in:
Daniel Applebaum 2009-03-12 01:31:55 +00:00
parent 49c2708f4c
commit 272bb699c9
2 changed files with 3 additions and 4 deletions

View File

@ -170,8 +170,8 @@ Welcome to K-9 Mail setup. K-9 is an open source email client for Android based
<string name="message_compose_downloading_attachments_toast">Some attachments were not downloaded. They will be downloaded automatically before this message is sent.</string>
<string name="message_compose_attachments_skipped_toast">Some attachments cannot be forwarded because they have not downloaded.</string>
<string name="folder_message_list_to_label">To:</string>
<string name="folder_message_list_to_fmt">To:<xliff:g id="counterParty">%s</xliff:g></string>
<string name="message_view_to_label">To:</string>
<string name="message_view_attachment_view_action">Open</string>
<string name="message_view_attachment_download_action">Save</string>

View File

@ -2275,8 +2275,7 @@ public class FolderMessageList extends ExpandableListActivity
this.compareCounterparty = Address.toFriendly(message
.getRecipients(RecipientType.TO));
this.sender = getString(R.string.folder_message_list_to_label) + this.compareCounterparty;
this.sender = String.format(getString(R.string.folder_message_list_to_fmt), this.compareCounterparty);
} else
{