[Android] Extract strings
Geoffrey Métais
git at videolan.org
Wed May 25 09:56:21 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed May 25 09:50:51 2016 +0200| [305f9768689153e5bf3c790b730d68df71523ced] | committer: Geoffrey Métais
Extract strings
> https://code.videolan.org/videolan/vlc-android/commit/305f9768689153e5bf3c790b730d68df71523ced
---
vlc-android/res/values/strings.xml | 2 ++
vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index 7755db1..9d13876 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -633,6 +633,8 @@
<string name="downloading_subtitles">Downloading subtitles</string>
<string name="browse_folder">Browse folder</string>
<string name="listen">Listen</string>
+ <string name="subtitles_download_title">Subs download</string>
+ <string name="connecting">Connecting...</string>
<string-array name="chroma_formats" translatable="false">
<item>RGB 32-bit</item>
diff --git a/vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java b/vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java
index b79b052..aac7c0d 100644
--- a/vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java
+++ b/vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java
@@ -530,7 +530,7 @@ public class SubtitlesDownloader {
}
switch (msg.what) {
case DIALOG_SHOW:
- mDialog = ProgressDialog.show(mContext, "Subs download", "Connecting...", true);
+ mDialog = ProgressDialog.show(mContext, mContext.getString(R.string.subtitles_download_title), mContext.getString(R.string.connecting), true);
mDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
More information about the Android
mailing list