Commit 36d41324 authored by Edward Wang's avatar Edward Wang

src: Allow translating the tabs

parent 8768827a
......@@ -50,6 +50,8 @@
<item quantity="other">%d subfolders</item>
</plurals>
<string name="parent_folder">Up to parent folder</string>
<string name="audio">Audio</string>
<string name="video">Video</string>
<string name="all_albums">All albums</string>
<string name="genres">Genres</string>
<string name="playlists">Playlists</string>
......
......@@ -126,13 +126,13 @@ public class MainActivity extends SherlockFragmentActivity {
mActionBar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE);
mActionBar.addTab(mActionBar.newTab()
.setText("Video")
.setText(R.string.video)
.setIcon(R.drawable.header_icon_video)
.setTabListener(new TabListener<VideoListFragment>(
this, "video", VideoListFragment.class)));
mActionBar.addTab(mActionBar.newTab()
.setText("Audio")
.setText(R.string.audio)
.setIcon(R.drawable.header_icon_audio)
.setTabListener(new TabListener<AudioBrowserFragment>(
this, "audio", AudioBrowserFragment.class)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment