[Android] Video Player : remove static string reference
Alexandre Perraud
git at videolan.org
Fri Aug 21 18:44:17 CEST 2015
vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Aug 21 17:12:20 2015 +0200| [6ff40d1d415cef4503f49826600474d2fe41eb00] | committer: Alexandre Perraud
Video Player : remove static string reference
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6ff40d1d415cef4503f49826600474d2fe41eb00
---
vlc-android/res/values/strings.xml | 1 +
.../src/org/videolan/vlc/gui/dialogs/SelectChapterDialog.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index 446ee7f..dc6256a 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -340,6 +340,7 @@
<string name="playlist_save">Save Playlist</string>
<string name="playlist_name_hint">playlist name</string>
<string name="go_to_chapter">Go to chapter…</string>
+ <string name="chapter">Chapter</string>
<string name="resume_from_position">Resume from last position</string>
<string name="confirm_resume">Resume from last position?</string>
<string name="confirm_resume_title">Ask confirmation to resume</string>
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/SelectChapterDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/SelectChapterDialog.java
index 010492f..04390e8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/SelectChapterDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/SelectChapterDialog.java
@@ -90,7 +90,7 @@ public class SelectChapterDialog extends DialogFragment implements PlaybackServi
for (int i = 0; i < chaptersCount; ++i) {
String name;
if (chapters[i].name == null || chapters[i].name.equals("")) {
- StringBuilder sb = new StringBuilder("Chapter ").append(i); /* TODO translate Chapter */
+ StringBuilder sb = new StringBuilder(getResources().getString(R.string.chapter) + " ").append(i);
if (chapters[i].timeOffset >= 0)
sb.append(" - ").append(Strings.millisToString(chapters[i].timeOffset));
name = sb.toString();
More information about the Android
mailing list