[Android] src: Allow translating the tabs

Edward Wang git at videolan.org
Thu Aug 2 04:20:27 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Wed Aug  1 22:19:12 2012 -0400| [36d41324917440e093af1eb1a25c1dc4fe87bb81] | committer: Edward Wang

src: Allow translating the tabs

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=36d41324917440e093af1eb1a25c1dc4fe87bb81
---

 vlc-android/res/values/strings.xml                     |    2 ++
 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index e34cf59..7dd4492 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -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>
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 3682379..9a905da 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -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)));



More information about the Android mailing list