1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-10-31 15:45:08 -04:00

Externalized load up to $number more message to strings.xml

This commit is contained in:
Brock Tice 2009-01-07 04:20:23 +00:00
parent bc16b2d680
commit 7df272d161
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="build_number">153M</string>
<string name="build_number">278</string>
</resources>

View File

@ -71,6 +71,9 @@
<string name="status_sending">Sending\u2026</string> <!-- Used in Outbox when a message is currently sending -->
<string name="status_loading_more_failed">Retry loading more messages</string>
<string name="load_more_before_number">Load up to\u0020</string>
<string name="load_more_after_number">\u0020more</string>
<string name="notification_new_title">New email</string>
<string name="notification_new_scrolling">New email from <xliff:g id="sender">%s</xliff:g></string>
<string name="notification_new_one_account_fmt"><xliff:g id="unread_message_count">%d</xliff:g> Unread (<xliff:g id="account">%s</xliff:g>)</string> <!-- 279 Unread (someone@google.com) -->

View File

@ -1631,8 +1631,9 @@ public class FolderMessageList extends ExpandableListActivity
{
if (folder.lastCheckFailed == false)
{
// TODO: Strings should be externalized
holder.main.setText("Load up to " + mAccount.getDisplayCount() + " more");
holder.main.setText(getString(R.string.load_more_before_number)
+ mAccount.getDisplayCount()
+ getString(R.string.load_more_after_number));
} else
{
holder.main.setText(getString(R.string.status_loading_more_failed));