Moved strings into resources
This commit is contained in:
parent
fe71d9d92c
commit
a6d65186ab
|
@ -118,5 +118,10 @@
|
|||
<string name="access_revoked_info">You have successfully revoked Antennapod\'s access token to your account. In order to complete the process, you have to remove this app from the list of approved applications in your account settings on the flattr website.</string>
|
||||
<string name="no_items_label">There are no items in this list.</string>
|
||||
<string name="no_feeds_label">You haven\'t subscribed to any feeds yet.</string>
|
||||
<string name="last_update_prefix">Last Update:\u0020</string>
|
||||
<string name="episodes_suffix">\u0020episodes</string>
|
||||
<string name="published_prefix">Published:\u0020</string>
|
||||
<string name="length_prefix">Length:\u0020</string>
|
||||
<string name="size_prefix">Size:\u0020</string>
|
||||
|
||||
</resources>
|
|
@ -93,7 +93,8 @@ public class FeedItemlistAdapter extends ArrayAdapter<FeedItem> {
|
|||
holder.title.setTypeface(Typeface.DEFAULT);
|
||||
}
|
||||
|
||||
holder.published.setText("Published: "
|
||||
holder.published.setText(convertView.getResources().getString(
|
||||
R.string.published_prefix)
|
||||
+ DateUtils.formatSameDayTime(item.getPubDate().getTime(),
|
||||
System.currentTimeMillis(), DateFormat.SHORT,
|
||||
DateFormat.SHORT));
|
||||
|
@ -108,12 +109,15 @@ public class FeedItemlistAdapter extends ArrayAdapter<FeedItem> {
|
|||
holder.inPlaylist.setVisibility(View.GONE);
|
||||
}
|
||||
if (item.getMedia().isDownloaded()) {
|
||||
holder.lenSize.setText(Converter.getDurationStringShort(item
|
||||
.getMedia().getDuration()));
|
||||
holder.lenSize.setText(convertView.getResources().getString(
|
||||
R.string.length_prefix)
|
||||
+ Converter.getDurationStringLong(item.getMedia()
|
||||
.getDuration()));
|
||||
holder.downloaded.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
holder.lenSize.setText(Converter.byteToString(item.getMedia()
|
||||
.getSize()));
|
||||
holder.lenSize.setText(convertView.getResources().getString(
|
||||
R.string.size_prefix)
|
||||
+ Converter.byteToString(item.getMedia().getSize()));
|
||||
holder.downloaded.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
|
|
|
@ -76,12 +76,15 @@ public class FeedlistAdapter extends ArrayAdapter<Feed> {
|
|||
if (DownloadRequester.getInstance().isDownloadingFile(feed)) {
|
||||
holder.lastUpdate.setText(R.string.refreshing_label);
|
||||
} else {
|
||||
holder.lastUpdate.setText("Last Update: "
|
||||
holder.lastUpdate.setText(convertView.getResources().getString(
|
||||
R.string.last_update_prefix)
|
||||
+ DateUtils.formatSameDayTime(feed.getLastUpdate()
|
||||
.getTime(), System.currentTimeMillis(),
|
||||
DateFormat.SHORT, DateFormat.SHORT));
|
||||
}
|
||||
holder.numberOfEpisodes.setText(feed.getItems().size() + " Episodes");
|
||||
holder.numberOfEpisodes.setText(feed.getItems().size()
|
||||
+ convertView.getResources()
|
||||
.getString(R.string.episodes_suffix));
|
||||
int newItems = feed.getNumOfNewItems();
|
||||
if (newItems > 0) {
|
||||
holder.newEpisodes.setText(Integer.toString(newItems));
|
||||
|
|
Loading…
Reference in New Issue