Skip to content

Commit

Permalink
Update error "File already exists" wording
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Sep 12, 2024
1 parent aefaf1c commit 82e522b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object ErrorCode {
ApiErrorCode(CATEGORY_ALREADY_EXISTS, R.string.errorCategoryAlreadyExists),
ApiErrorCode(COLLABORATIVE_FOLDER_ALREADY_EXISTS_FOR_FILE, R.string.anErrorHasOccurred),
ApiErrorCode(CONFLICT_ERROR, R.string.errorConflict),
ApiErrorCode(DESTINATION_ALREADY_EXISTS, R.string.errorFileCreate),
ApiErrorCode(DESTINATION_ALREADY_EXISTS, R.string.errorFileAlreadyExists),
ApiErrorCode(NO_DRIVE, R.string.noDriveTitle),
ApiErrorCode(SHARE_LINK_ALREADY_EXISTS, R.string.errorShareLink),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class AddFileBottomSheetDialog : BottomSheetDialogFragment() {
showSnackbar(getString(R.string.modalCreateFileSucces, createFile.name), showAboveFab = true)
apiResponse.data?.let { file -> requireContext().openOnlyOfficeActivity(file) }
} else {
showSnackbar(R.string.errorFileCreate, showAboveFab = true)
showSnackbar(R.string.errorFileAlreadyExists, showAboveFab = true)
}
mainViewModel.refreshActivities.value = true
dialog.dismiss()
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@
<string name="errorCategoryAlreadyExists">Eine Kategorie mit dem gleichen Namen existiert bereits</string>
<string name="errorConflict">An dieser Stelle existiert bereits ein Element mit demselben Namen</string>
<string name="errorDelete">Fehler beim Löschen</string>
<string name="errorDestinationAlreadyExists">Das Ziel existiert bereits</string>
<string name="errorDeviceStorage">Unzureichend verfügbarer Telefonspeicher</string>
<string name="errorDuplicate">Fehler beim Duplizieren</string>
<string name="errorFileCreate">Fehler bei der Erstellung der Datei. Überprüfen Sie den Namen der Datei und Ihre Rechte am Ordner.</string>
<string name="errorFileAlreadyExists">Datei oder Ordner existiert bereits</string>
<string name="errorFileLocked">Diese Datei ist bereits von einem Benutzer geöffnet und kann nicht verändert werden</string>
<string name="errorFilesLimitExceeded">Limit der Dateien im Ordner erreicht</string>
<string name="errorGetBookmarkURL">Link nicht wiederherstellbar</string>
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@
<string name="errorCategoryAlreadyExists">Una categoría con el mismo nombre ya existe</string>
<string name="errorConflict">Ya existe un elemento con el mismo nombre en esta ubicación</string>
<string name="errorDelete">Error al eliminar</string>
<string name="errorDestinationAlreadyExists">El destino ya existe</string>
<string name="errorDeviceStorage">Insuficiente almacenamiento telefónico disponible</string>
<string name="errorDuplicate">Error al duplicar</string>
<string name="errorFileCreate">Error al crear el archivo. Comprueba el nombre del archivo y tus derechos sobre la carpeta.</string>
<string name="errorFileAlreadyExists">Archivo o carpeta ya existente</string>
<string name="errorFileLocked">El archivo está actualmente abierto por un usuario y no puede ser modificado</string>
<string name="errorFilesLimitExceeded">Límite de archivos alcanzado en la carpeta</string>
<string name="errorGetBookmarkURL">Enlace no recuperable</string>
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@
<string name="errorCategoryAlreadyExists">Une catégorie avec le même nom existe déjà</string>
<string name="errorConflict">Un élément du même nom existe déjà à cet emplacement</string>
<string name="errorDelete">Erreur lors de la suppression</string>
<string name="errorDestinationAlreadyExists">La destination existe déjà</string>
<string name="errorDeviceStorage">Stockage disponible du téléphone insuffisant</string>
<string name="errorDuplicate">Erreur lors de la duplication</string>
<string name="errorFileCreate">Erreur lors de la création du fichier. Vérifiez le nom du fichier et vos droits sur le dossier.</string>
<string name="errorFileAlreadyExists">Le fichier ou le dossier existe déjà</string>
<string name="errorFileLocked">Le fichier est actuellement ouvert par un utilisateur et ne peut être modifié</string>
<string name="errorFilesLimitExceeded">Limite de fichiers dans le dossier atteinte</string>
<string name="errorGetBookmarkURL">Lien non récupérable</string>
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@
<string name="errorCategoryAlreadyExists">Esiste già una categoria con lo stesso nome</string>
<string name="errorConflict">Un elemento con lo stesso nome esiste già in questa posizione</string>
<string name="errorDelete">Errore durante l’eliminazione</string>
<string name="errorDestinationAlreadyExists">La destinazione è già esistente</string>
<string name="errorDeviceStorage">Insufficiente memoria telefonica disponibile</string>
<string name="errorDuplicate">Errore durante la duplicazione</string>
<string name="errorFileCreate">Errore durante la creazione del file. Verifica il nome del file e i tuoi diritti sulla cartella.</string>
<string name="errorFileAlreadyExists">Il file o la cartella esiste già</string>
<string name="errorFileLocked">Il file è attualmente aperto da un utente e non può essere modificato</string>
<string name="errorFilesLimitExceeded">Limite file raggiunto nella cartella</string>
<string name="errorGetBookmarkURL">Link non recuperabile</string>
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,9 @@
<string name="errorCategoryAlreadyExists">A category with the same name already exists</string>
<string name="errorConflict">An element with the same name already exists in this location</string>
<string name="errorDelete">Deletion error</string>
<string name="errorDestinationAlreadyExists">Destination already exists</string>
<string name="errorDeviceStorage">Insufficient phone storage</string>
<string name="errorDuplicate">Duplication error</string>
<string name="errorFileCreate">Error when creating file. Check the name of the file and your rights to the folder.</string>
<string name="errorFileAlreadyExists">File or folder already exists</string>
<string name="errorFileLocked">This file is currently opened by another user and cannot be modified</string>
<string name="errorFilesLimitExceeded">Limit of files in folder reached</string>
<string name="errorGetBookmarkURL">Non-recoverable link</string>
Expand Down

0 comments on commit 82e522b

Please sign in to comment.