mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 19:34:08 +01:00
DroidFish: Moved "delete game/delete file" strings to strings.xml.
This commit is contained in:
parent
1695cf1624
commit
70cac5464f
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@+id/item_delete_file"
|
||||
android:title="Datei löschen">
|
||||
</item>
|
||||
</menu>
|
|
@ -3,6 +3,6 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@+id/item_delete_file"
|
||||
android:title="Delete File">
|
||||
android:title="@string/delete_file">
|
||||
</item>
|
||||
</menu>
|
||||
|
|
|
@ -333,4 +333,5 @@ oder dass Sie das Programm beenden, wenn Sie es nicht aktiv nutzen.\
|
|||
<string name="comment_before">Bevor:</string>
|
||||
<string name="comment_move">Zug:</string>
|
||||
<string name="comment_after">Nach:</string>
|
||||
<string name="delete_file">Datei löschen</string>
|
||||
</resources>
|
||||
|
|
|
@ -365,4 +365,8 @@ you are not actively using the program.\
|
|||
<string name="heavy_cpu_usage">Heavy CPU usage</string>
|
||||
<string name="background_processing">Background processing</string>
|
||||
<string name="lot_cpu_power">DroidFish is using a lot of CPU power</string>
|
||||
<string name="delete_game">Delete game?</string>
|
||||
<string name="delete_file">Delete file</string>
|
||||
<string name="delete_file_question">Delete file?</string>
|
||||
<string name="delete_named_file">Delete file %s?</string>
|
||||
</resources>
|
||||
|
|
|
@ -310,7 +310,7 @@ public class EditPGN extends ListActivity {
|
|||
final GameInfo gi = selectedGi;
|
||||
selectedGi = null;
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setTitle("Delete game?");
|
||||
builder.setTitle(R.string.delete_game);
|
||||
String msg = gi.toString();
|
||||
builder.setMessage(msg);
|
||||
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
|
@ -352,9 +352,9 @@ public class EditPGN extends ListActivity {
|
|||
}
|
||||
case DELETE_PGN_FILE_DIALOG: {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setTitle("Delete file?");
|
||||
builder.setTitle(R.string.delete_file_question);
|
||||
String name = new File(pgnFile.getName()).getName();
|
||||
String msg = String.format("Delete file %s?", name);
|
||||
String msg = String.format(getString(R.string.delete_named_file), name);
|
||||
builder.setMessage(msg);
|
||||
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user