Răsfoiți Sursa

Use our own translation for "OK"

I missed this in the PR that it came with, but I guess it'll be useful if we go multiplatform.
arkon 1 an în urmă
părinte
comite
f344831d58
17 a modificat fișierele cu 21 adăugiri și 21 ștergeri
  1. 1 1
      app/src/main/java/eu/kanade/presentation/browse/ExtensionDetailsScreen.kt
  2. 3 3
      app/src/main/java/eu/kanade/presentation/category/components/CategoryDialogs.kt
  3. 1 1
      app/src/main/java/eu/kanade/presentation/history/components/HistoryDialogs.kt
  4. 1 1
      app/src/main/java/eu/kanade/presentation/library/DeleteLibraryMangaDialog.kt
  5. 1 1
      app/src/main/java/eu/kanade/presentation/manga/ChapterSettingsDialog.kt
  6. 1 1
      app/src/main/java/eu/kanade/presentation/manga/components/MangaDialogs.kt
  7. 1 1
      app/src/main/java/eu/kanade/presentation/more/settings/screen/ClearDatabaseScreen.kt
  8. 1 1
      app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsAdvancedScreen.kt
  9. 2 2
      app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsBackupScreen.kt
  10. 1 1
      app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsLibraryScreen.kt
  11. 1 1
      app/src/main/java/eu/kanade/presentation/more/settings/widget/EditTextPreferenceWidget.kt
  12. 1 1
      app/src/main/java/eu/kanade/presentation/more/settings/widget/MultiSelectListPreferenceWidget.kt
  13. 1 1
      app/src/main/java/eu/kanade/presentation/more/settings/widget/TriStateListDialog.kt
  14. 2 2
      app/src/main/java/eu/kanade/presentation/track/TrackInfoDialogSelector.kt
  15. 1 1
      app/src/main/java/eu/kanade/presentation/updates/UpdatesDialog.kt
  16. 1 1
      app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
  17. 1 1
      app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageDialog.kt

+ 1 - 1
app/src/main/java/eu/kanade/presentation/browse/ExtensionDetailsScreen.kt

@@ -415,7 +415,7 @@ private fun NsfwWarningDialog(
         },
         confirmButton = {
             TextButton(onClick = onClickConfirm) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
         onDismissRequest = onClickConfirm,

+ 3 - 3
app/src/main/java/eu/kanade/presentation/category/components/CategoryDialogs.kt

@@ -113,7 +113,7 @@ fun CategoryRenameDialog(
                     onDismissRequest()
                 },
             ) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
         dismissButton = {
@@ -163,7 +163,7 @@ fun CategoryDeleteDialog(
                 onDelete()
                 onDismissRequest()
             },) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
         dismissButton = {
@@ -233,7 +233,7 @@ fun ChangeCategoryDialog(
                         )
                     },
                 ) {
-                    Text(text = stringResource(android.R.string.ok))
+                    Text(text = stringResource(R.string.action_ok))
                 }
             }
         },

+ 1 - 1
app/src/main/java/eu/kanade/presentation/history/components/HistoryDialogs.kt

@@ -91,7 +91,7 @@ fun HistoryDeleteAllDialog(
                 onDelete()
                 onDismissRequest()
             },) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
         dismissButton = {

+ 1 - 1
app/src/main/java/eu/kanade/presentation/library/DeleteLibraryMangaDialog.kt

@@ -53,7 +53,7 @@ fun DeleteLibraryMangaDialog(
                     )
                 },
             ) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
         title = {

+ 1 - 1
app/src/main/java/eu/kanade/presentation/manga/ChapterSettingsDialog.kt

@@ -209,7 +209,7 @@ private fun SetAsDefaultDialog(
                     onDismissRequest()
                 },
             ) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
     )

+ 1 - 1
app/src/main/java/eu/kanade/presentation/manga/components/MangaDialogs.kt

@@ -26,7 +26,7 @@ fun DeleteChaptersDialog(
                     onConfirm()
                 },
             ) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
         title = {

+ 1 - 1
app/src/main/java/eu/kanade/presentation/more/settings/screen/ClearDatabaseScreen.kt

@@ -83,7 +83,7 @@ class ClearDatabaseScreen : Screen() {
                                     }
                                 },
                             ) {
-                                Text(text = stringResource(android.R.string.ok))
+                                Text(text = stringResource(R.string.action_ok))
                             }
                         },
                         dismissButton = {

+ 1 - 1
app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsAdvancedScreen.kt

@@ -387,7 +387,7 @@ object SettingsAdvancedScreen : SearchableSettings {
                             uriHandler.openUri("https://shizuku.rikka.app/download")
                         },
                     ) {
-                        Text(text = stringResource(android.R.string.ok))
+                        Text(text = stringResource(R.string.action_ok))
                     }
                 },
             )

+ 2 - 2
app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsBackupScreen.kt

@@ -196,7 +196,7 @@ object SettingsBackupScreen : SearchableSettings {
                         onConfirm(flag)
                     },
                 ) {
-                    Text(text = stringResource(android.R.string.ok))
+                    Text(text = stringResource(R.string.action_ok))
                 }
             },
         )
@@ -249,7 +249,7 @@ object SettingsBackupScreen : SearchableSettings {
                         },
                         confirmButton = {
                             TextButton(onClick = onDismissRequest) {
-                                Text(text = stringResource(android.R.string.ok))
+                                Text(text = stringResource(R.string.action_ok))
                             }
                         },
                     )

+ 1 - 1
app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsLibraryScreen.kt

@@ -373,7 +373,7 @@ object SettingsLibraryScreen : SearchableSettings {
             },
             confirmButton = {
                 TextButton(onClick = { onValueChanged(leadValue, followValue) }) {
-                    Text(text = stringResource(android.R.string.ok))
+                    Text(text = stringResource(R.string.action_ok))
                 }
             },
         )

+ 1 - 1
app/src/main/java/eu/kanade/presentation/more/settings/widget/EditTextPreferenceWidget.kt

@@ -83,7 +83,7 @@ fun EditTextPreferenceWidget(
                         }
                     },
                 ) {
-                    Text(text = stringResource(android.R.string.ok))
+                    Text(text = stringResource(R.string.action_ok))
                 }
             },
             dismissButton = {

+ 1 - 1
app/src/main/java/eu/kanade/presentation/more/settings/widget/MultiSelectListPreferenceWidget.kt

@@ -96,7 +96,7 @@ fun MultiSelectListPreferenceWidget(
                         isDialogShown = false
                     },
                 ) {
-                    Text(text = stringResource(android.R.string.ok))
+                    Text(text = stringResource(R.string.action_ok))
                 }
             },
             dismissButton = {

+ 1 - 1
app/src/main/java/eu/kanade/presentation/more/settings/widget/TriStateListDialog.kt

@@ -137,7 +137,7 @@ fun <T> TriStateListDialog(
                     onValueChanged(included, excluded)
                 },
             ) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
     )

+ 2 - 2
app/src/main/java/eu/kanade/presentation/track/TrackInfoDialogSelector.kt

@@ -174,7 +174,7 @@ fun TrackDateSelector(
                         Text(text = stringResource(android.R.string.cancel))
                     }
                     TextButton(onClick = { onConfirm(pickerState.selectedDateMillis!!) }) {
-                        Text(text = stringResource(android.R.string.ok))
+                        Text(text = stringResource(R.string.action_ok))
                     }
                 }
             }
@@ -212,7 +212,7 @@ private fun BaseSelector(
                     Text(text = stringResource(android.R.string.cancel))
                 }
                 TextButton(onClick = onConfirm) {
-                    Text(text = stringResource(android.R.string.ok))
+                    Text(text = stringResource(R.string.action_ok))
                 }
             }
         },

+ 1 - 1
app/src/main/java/eu/kanade/presentation/updates/UpdatesDialog.kt

@@ -22,7 +22,7 @@ fun UpdatesDeleteConfirmationDialog(
                 onConfirm()
                 onDismissRequest()
             },) {
-                Text(text = stringResource(android.R.string.ok))
+                Text(text = stringResource(R.string.action_ok))
             }
         },
         dismissButton = {

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt

@@ -254,7 +254,7 @@ class MainActivity : BaseActivity() {
                     },
                     confirmButton = {
                         TextButton(onClick = { showChangelog = false }) {
-                            Text(text = stringResource(android.R.string.ok))
+                            Text(text = stringResource(R.string.action_ok))
                         }
                     },
                 )

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageDialog.kt

@@ -89,7 +89,7 @@ private fun SetCoverDialog(
         },
         confirmButton = {
             TextButton(onClick = onConfirm) {
-                Text(stringResource(android.R.string.ok))
+                Text(stringResource(R.string.action_ok))
             }
         },
         dismissButton = {