externalize strings

This commit is contained in:
ligi 2013-12-09 00:30:05 +01:00
parent 555ba63883
commit 39c63c35c4
2 changed files with 4 additions and 2 deletions

View file

@ -235,9 +235,9 @@ public class TicketListActivity extends ActionBarActivity {
String html;
if (scanning) {
html = "No passes yet - searching for passes - you can <a href='http://ligi.de/passandroid_samples/index.html'>download example passes from here</a> ";
html = getString(R.string.scan_empty_text);
} else {
html = "No passes yet - you can <a href='http://ligi.de/passandroid_samples/index.html'>download example passes from here</a>";
html = getString(R.string.no_passes_empty_text);
}
emptyView.setText(Html.fromHtml(html));

View file

@ -38,5 +38,7 @@
<string name="send">Send</string>
<string name="delete">Delete!</string>
<string name="choose_location">Choose Location</string>
<string name="scan_empty_text"><![CDATA[searching for passes - you can also <a href=\'http://ligi.de/passandroid_samples/index.html\'>download example passes from here</a> ]]></string>
<string name="no_passes_empty_text"><![CDATA[No passes yet - you can <a href=\'http://ligi.de/passandroid_samples/index.html\'>download example passes from here</a>]]></string>
</resources>