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); final TextView dirPath = (TextView) renameDirView.findViewById(R.id.directory_path);
dirPath.setText(dir.getParent() + "/"); dirPath.setText(dir.getParent() + "/");
builder.setPositiveButton(android.R.string.ok, null); builder.setPositiveButton(R.string.ok, null);
builder.setNegativeButton(android.R.string.cancel, null); builder.setNegativeButton(R.string.cancel, null);
final AlertDialog alertDialog = builder.create(); final AlertDialog alertDialog = builder.create();
alertDialog.show(); alertDialog.show();

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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