Commit 73f8119e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Do not hardcode strings

parent 9c83dbf1
......@@ -81,4 +81,7 @@
<string name="track_text_info">Codec: %1$s\nLanguage: %2$s</string>
<string name="track_unknown">Unknown track</string>
<string name="open_mrl">Open MRL</string>
<string name="open_mrl_dialog_title">Open network stream</string>
<string name="open_mrl_dialog_msg">Enter network MRL: e.g. http://, mms:// or rtsp://</string>
</resources>
......@@ -240,8 +240,8 @@ public class MainActivity extends TabActivity {
case R.id.ml_menu_open_mrl:
AlertDialog.Builder b = new AlertDialog.Builder(this);
final EditText input = new EditText(this);
b.setTitle("Open Network stream");
b.setMessage("Enter network MRL: e.g. http://, mms:// or rtsp://");
b.setTitle(R.string.open_mrl_dialog_title);
b.setMessage(R.string.open_mrl_dialog_msg);
b.setView(input);
b.setPositiveButton("Open", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int button) {
......
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