use our own strings for OK and Cancel

This commit is contained in:
tibbi 2016-08-21 20:39:16 +02:00
parent 284ff3d697
commit 802f61cf64
7 changed files with 14 additions and 6 deletions

View File

@ -355,8 +355,8 @@ public class MainActivity extends SimpleActivity
final TextView dirPath = (TextView) renameDirView.findViewById(R.id.directory_path);
dirPath.setText(dir.getParent() + "/");
builder.setPositiveButton(android.R.string.ok, null);
builder.setNegativeButton(android.R.string.cancel, null);
builder.setPositiveButton(R.string.ok, null);
builder.setNegativeButton(R.string.cancel, null);
final AlertDialog alertDialog = builder.create();
alertDialog.show();

View File

@ -228,8 +228,8 @@ public class ViewPagerActivity extends SimpleActivity
builder.setTitle(getResources().getString(R.string.rename_file));
builder.setView(renameFileView);
builder.setPositiveButton(android.R.string.ok, null);
builder.setNegativeButton(android.R.string.cancel, null);
builder.setPositiveButton(R.string.ok, null);
builder.setNegativeButton(R.string.cancel, null);
final AlertDialog alertDialog = builder.create();
alertDialog.show();

View File

@ -32,8 +32,8 @@ public class ChangeSorting extends AlertDialog.Builder implements DialogInterfac
setupSortRadio();
setupOrderRadio();
builder.setPositiveButton(android.R.string.ok, this);
builder.setNegativeButton(android.R.string.cancel, null);
builder.setPositiveButton(R.string.ok, this);
builder.setNegativeButton(R.string.cancel, null);
builder.show();
}

View File

@ -26,6 +26,8 @@
<string name="date">Date</string>
<string name="ascending">Ascending</string>
<string name="descending">Descending</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<plurals name="folders_deleted">
<item quantity="one">1 cartella eliminata</item>

View File

@ -26,6 +26,8 @@
<string name="date">Date</string>
<string name="ascending">Ascending</string>
<string name="descending">Descending</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<plurals name="folders_deleted">
<item quantity="one">1 フォルダーを削除しました</item>

View File

@ -26,6 +26,8 @@
<string name="date">Date</string>
<string name="ascending">Ascending</string>
<string name="descending">Descending</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<plurals name="folders_deleted">
<item quantity="one">1 mapp borttagen</item>

View File

@ -26,6 +26,8 @@
<string name="date">Date</string>
<string name="ascending">Ascending</string>
<string name="descending">Descending</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<plurals name="folders_deleted">
<item quantity="one">1 folder deleted</item>