Skip to content

Commit 88092d8

Browse files
committed
use our own strings for OK and Cancel
1 parent d9eb8fb commit 88092d8

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

app/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ public void fabClicked(View view) {
208208
final AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
209209
builder.setTitle(getResources().getString(R.string.create_new));
210210
builder.setView(newItemView);
211-
builder.setPositiveButton(android.R.string.ok, null);
212-
builder.setNegativeButton(android.R.string.cancel, null);
211+
builder.setPositiveButton(R.string.ok, null);
212+
builder.setNegativeButton(R.string.cancel, null);
213213

214214
final AlertDialog alertDialog = builder.create();
215215
alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
@@ -345,8 +345,8 @@ private void displayRenameDialog() {
345345
final AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
346346
builder.setTitle(getResources().getString(renameString));
347347
builder.setView(renameView);
348-
builder.setPositiveButton(android.R.string.ok, null);
349-
builder.setNegativeButton(android.R.string.cancel, null);
348+
builder.setPositiveButton(R.string.ok, null);
349+
builder.setNegativeButton(R.string.cancel, null);
350350

351351
final AlertDialog alertDialog = builder.create();
352352
alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
@@ -394,8 +394,8 @@ private void displayCopyDialog() {
394394
final AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
395395
builder.setTitle(getResources().getString(copyString));
396396
builder.setView(copyView);
397-
builder.setPositiveButton(android.R.string.ok, null);
398-
builder.setNegativeButton(android.R.string.cancel, null);
397+
builder.setPositiveButton(R.string.ok, null);
398+
builder.setNegativeButton(R.string.cancel, null);
399399

400400
mCopyDialog = builder.create();
401401
mCopyDialog.show();
@@ -510,8 +510,8 @@ public void breadcrumbClicked(int id) {
510510
final AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
511511
builder.setTitle(getResources().getString(R.string.select_destination));
512512
builder.setView(pickerView);
513-
builder.setPositiveButton(android.R.string.ok, null);
514-
builder.setNegativeButton(android.R.string.cancel, null);
513+
builder.setPositiveButton(R.string.ok, null);
514+
builder.setNegativeButton(R.string.cancel, null);
515515

516516
final AlertDialog alertDialog = builder.create();
517517
alertDialog.show();

app/src/main/res/values-it/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<string name="copy_failed">Impossibile copiare i file</string>
2626
<string name="copying">Copia in corso</string>
2727
<string name="initial_breadcrumb">home</string>
28+
<string name="ok">OK</string>
29+
<string name="cancel">Cancel</string>
2830

2931
<plurals name="items_deleted">
3032
<item quantity="one">1 elemento eliminato</item>

app/src/main/res/values-ja/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<string name="copy_failed">ファイルをコピーできませんでした</string>
2626
<string name="copying">コピー中</string>
2727
<string name="initial_breadcrumb">ホーム</string>
28+
<string name="ok">OK</string>
29+
<string name="cancel">Cancel</string>
2830

2931
<plurals name="items_deleted">
3032
<item quantity="one">1 アイテムを削除しました</item>

app/src/main/res/values-sv/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<string name="copy_failed">Kunde inte kopiera filen</string>
2626
<string name="copying">Kopierar</string>
2727
<string name="initial_breadcrumb">home</string>
28+
<string name="ok">OK</string>
29+
<string name="cancel">Cancel</string>
2830

2931
<plurals name="items_deleted">
3032
<item quantity="one">1 objekt borttagen</item>

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<string name="copy_failed">Could not copy the files</string>
2626
<string name="copying">Copying</string>
2727
<string name="initial_breadcrumb">home</string>
28+
<string name="ok">OK</string>
29+
<string name="cancel">Cancel</string>
2830

2931
<plurals name="items_deleted">
3032
<item quantity="one">1 item deleted</item>

0 commit comments

Comments
 (0)