use our own strings for OK and Cancel

This commit is contained in:
tibbi 2016-08-21 20:36:47 +02:00
parent d9eb8fbbfb
commit 88092d8582
5 changed files with 16 additions and 8 deletions

View file

@ -208,8 +208,8 @@ public class ItemsFragment extends android.support.v4.app.Fragment
final AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setTitle(getResources().getString(R.string.create_new));
builder.setView(newItemView);
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.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
@ -345,8 +345,8 @@ public class ItemsFragment extends android.support.v4.app.Fragment
final AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setTitle(getResources().getString(renameString));
builder.setView(renameView);
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.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
@ -394,8 +394,8 @@ public class ItemsFragment extends android.support.v4.app.Fragment
final AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setTitle(getResources().getString(copyString));
builder.setView(copyView);
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);
mCopyDialog = builder.create();
mCopyDialog.show();
@ -510,8 +510,8 @@ public class ItemsFragment extends android.support.v4.app.Fragment
final AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setTitle(getResources().getString(R.string.select_destination));
builder.setView(pickerView);
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

@ -25,6 +25,8 @@
<string name="copy_failed">Impossibile copiare i file</string>
<string name="copying">Copia in corso</string>
<string name="initial_breadcrumb">home</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<plurals name="items_deleted">
<item quantity="one">1 elemento eliminato</item>

View file

@ -25,6 +25,8 @@
<string name="copy_failed">ファイルをコピーできませんでした</string>
<string name="copying">コピー中</string>
<string name="initial_breadcrumb">ホーム</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<plurals name="items_deleted">
<item quantity="one">1 アイテムを削除しました</item>

View file

@ -25,6 +25,8 @@
<string name="copy_failed">Kunde inte kopiera filen</string>
<string name="copying">Kopierar</string>
<string name="initial_breadcrumb">home</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<plurals name="items_deleted">
<item quantity="one">1 objekt borttagen</item>

View file

@ -25,6 +25,8 @@
<string name="copy_failed">Could not copy the files</string>
<string name="copying">Copying</string>
<string name="initial_breadcrumb">home</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<plurals name="items_deleted">
<item quantity="one">1 item deleted</item>