Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
feat(frontend:files): add new translations and improve text viewer with updated read-only state handling and line wrapping
johavene90c91ec48e0
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.htmlindex 7dc7fca3..615c3ae7 100644--- a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html@@ -29,7 +29,6 @@<fa-icon [icon]="icons.faFloppyDisk"></fa-icon>}</button>-<buttonbtnCheckbox[ngModel]="lineWrapping()"diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.tsindex d0ca8f81..567b5d20 100644--- a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts@@ -29,7 +29,6 @@ import { FilesUploadService } from '../../services/files-upload.service'`.code-editor {height: calc(100% - 40px);- font-size: 0.8rem;}.cm-focused {@@ -83,16 +82,13 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {onKeyDown(event: KeyboardEvent) {// ESCif (event.key === 'Escape' || event.key === 'Esc') {- event.stopPropagation()event.preventDefault()- if (this.isSearchPanelOpen) {+ if (this.isSearchPanelOpen()) {+ event.stopPropagation()this.toggleSearch()- } else if (!this.isModified()) {- if (this.isModified()) {- // show dialog alert- } else {- this.layout.closeDialog()- }+ } else if (this.isModified()) {+ event.stopPropagation()+ // Show dialog alert}return}@@ -126,8 +122,8 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {toggleReadonly() {this.isReadonly.set(!this.isReadonly())+ // Reset search state when open to enable/disable the replace functionif (this.isSearchPanelOpen()) {- // reset search state when open to enable/disable the replace functionsetTimeout(() => {this.toggleSearch()this.toggleSearch()@@ -168,8 +164,6 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {}ngOnDestroy() {- if (this.subscription) {- this.subscription.unsubscribe()- }+ this.subscription.unsubscribe()}}diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.jsonindex 4d5f1cd7..500261e8 100644--- a/frontend/src/i18n/de.json+++ b/frontend/src/i18n/de.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Vorhandene Datei(en) überschreiben","Replace Existing File": "Vorhandene Datei ersetzen","Do you want to replace the existing file(s)?": "Möchten Sie die vorhandene(n) Datei(en) ersetzen?",- "RenameFileToExisting": "Möchten Sie <b>{{ old }}</b> in <b>{{ new }}</b> umbenennen?"+ "RenameFileToExisting": "Möchten Sie <b>{{ old }}</b> in <b>{{ new }}</b> umbenennen?",+ "Save": "Speichern",+ "Line Wrap": "Zeilenumbruch",+ "Read-only": "Schreibgeschützt",+ "Read-write": "Lesen/Schreiben"}\ No newline at end of filediff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.jsonindex 3ff8f5dc..67887b5d 100644--- a/frontend/src/i18n/es.json+++ b/frontend/src/i18n/es.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Sobrescribir archivo(s) existente(s)","Replace Existing File": "Reemplazar archivo existente","Do you want to replace the existing file(s)?": "¿Desea reemplazar el/los archivo(s) existente(s)?",- "RenameFileToExisting": "¿Desea renombrar <b>{{ old }}</b> a <b>{{ new }}</b>?"+ "RenameFileToExisting": "¿Desea renombrar <b>{{ old }}</b> a <b>{{ new }}</b>?",+ "Save": "Guardar",+ "Line Wrap": "Ajuste de línea",+ "Read-only": "Solo lectura",+ "Read-write": "Lectura y escritura"}\ No newline at end of filediff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.jsonindex 1b765a60..a657ffc8 100644--- a/frontend/src/i18n/fr.json+++ b/frontend/src/i18n/fr.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Écraser le(s) fichier(s) existant(s)","Replace Existing File": "Remplacer le fichier existant","Do you want to replace the existing file(s)?": "Voulez-vous remplacer le(s) fichier(s) existant(s) ?",- "RenameFileToExisting": "Souhaitez-vous renommer <b>{{ old }}</b> en <b>{{ new }}</b> ?"+ "RenameFileToExisting": "Souhaitez-vous renommer <b>{{ old }}</b> en <b>{{ new }}</b> ?",+ "Save": "Enregistrer",+ "Line Wrap": "Retour à la ligne automatique",+ "Read-only": "Lecture seule",+ "Read-write": "Lecture-écriture"}diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.jsonindex f0a1a466..6fe977bd 100644--- a/frontend/src/i18n/hi.json+++ b/frontend/src/i18n/hi.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "मौजूदा फ़ाइल(ों) को अधिलेखित करें","Replace Existing File": "मौजूदा फ़ाइल प्रतिस्थापित करें","Do you want to replace the existing file(s)?": "क्या आप मौजूदा फ़ाइल(ों) को बदलना चाहते हैं?",- "RenameFileToExisting": "क्या आप <b>{{ old }}</b> का नाम बदलकर <b>{{ new }}</b> करना चाहते हैं?"+ "RenameFileToExisting": "क्या आप <b>{{ old }}</b> का नाम बदलकर <b>{{ new }}</b> करना चाहते हैं?",+ "Save": "सहेजें",+ "Line Wrap": "लाइन रैप",+ "Read-only": "केवल-पढ़ने योग्य",+ "Read-write": "पढ़ने-लिखने योग्य"}\ No newline at end of filediff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.jsonindex 3b1ad001..e33728bc 100644--- a/frontend/src/i18n/it.json+++ b/frontend/src/i18n/it.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Sovrascrivere il/i file esistente/i","Replace Existing File": "Sostituire il file esistente","Do you want to replace the existing file(s)?": "Vuoi sostituire il/i file esistente/i?",- "RenameFileToExisting": "Vuoi rinominare <b>{{ old }}</b> in <b>{{ new }}</b>?"+ "RenameFileToExisting": "Vuoi rinominare <b>{{ old }}</b> in <b>{{ new }}</b>?",+ "Save": "Salva",+ "Line Wrap": "A capo automatico",+ "Read-only": "Sola lettura",+ "Read-write": "Lettura e scrittura"}\ No newline at end of filediff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.jsonindex aa36a2a9..f5dfe4fa 100644--- a/frontend/src/i18n/ja.json+++ b/frontend/src/i18n/ja.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "既存のファイルを上書き","Replace Existing File": "既存のファイルを置き換える","Do you want to replace the existing file(s)?": "既存のファイルを置き換えますか?",- "RenameFileToExisting": "<b>{{ old }}</b> の名前を <b>{{ new }}</b> に変更しますか?"+ "RenameFileToExisting": "<b>{{ old }}</b> の名前を <b>{{ new }}</b> に変更しますか?",+ "Save": "保存",+ "Line Wrap": "折り返し",+ "Read-only": "読み取り専用",+ "Read-write": "読み書き可能"}diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.jsonindex 2b811e80..25b24a28 100644--- a/frontend/src/i18n/ko.json+++ b/frontend/src/i18n/ko.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "기존 파일 덮어쓰기","Replace Existing File": "기존 파일 교체","Do you want to replace the existing file(s)?": "기존 파일을 교체하시겠습니까?",- "RenameFileToExisting": "<b>{{ old }}</b>의 이름을 <b>{{ new }}</b>(으)로 변경하시겠습니까?"+ "RenameFileToExisting": "<b>{{ old }}</b>의 이름을 <b>{{ new }}</b>(으)로 변경하시겠습니까?",+ "Save": "저장",+ "Line Wrap": "자동 줄 바꿈",+ "Read-only": "읽기 전용",+ "Read-write": "읽기/쓰기"}diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.jsonindex 6674edbf..31e48f61 100644--- a/frontend/src/i18n/pl.json+++ b/frontend/src/i18n/pl.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Nadpisać istniejący(e) plik(i)","Replace Existing File": "Zastąpić istniejący plik","Do you want to replace the existing file(s)?": "Czy chcesz zastąpić istniejący(e) plik(i)?",- "RenameFileToExisting": "Czy chcesz zmienić nazwę <b>{{ old }}</b> na <b>{{ new }}</b>?"+ "RenameFileToExisting": "Czy chcesz zmienić nazwę <b>{{ old }}</b> na <b>{{ new }}</b>?",+ "Save": "Zapisz",+ "Line Wrap": "Zawijanie wierszy",+ "Read-only": "Tylko do odczytu",+ "Read-write": "Odczyt i zapis"}diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.jsonindex 5253306c..9ac970ad 100644--- a/frontend/src/i18n/pt-BR.json+++ b/frontend/src/i18n/pt-BR.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Sobrescrever arquivo(s) existente(s)","Replace Existing File": "Substituir o arquivo existente","Do you want to replace the existing file(s)?": "Deseja substituir o(s) arquivo(s) existente(s)?",- "RenameFileToExisting": "Deseja renomear <b>{{ old }}</b> para <b>{{ new }}</b>?"+ "RenameFileToExisting": "Deseja renomear <b>{{ old }}</b> para <b>{{ new }}</b>?",+ "Save": "Salvar",+ "Line Wrap": "Quebra de linha automática",+ "Read-only": "Somente leitura",+ "Read-write": "Leitura e escrita"}diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.jsonindex 928336e0..71fe62db 100644--- a/frontend/src/i18n/pt.json+++ b/frontend/src/i18n/pt.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Sobrescrever arquivo(s) existente(s)","Replace Existing File": "Substituir arquivo existente","Do you want to replace the existing file(s)?": "Deseja substituir o(s) arquivo(s) existente(s)?",- "RenameFileToExisting": "Deseja renomear <b>{{ old }}</b> para <b>{{ new }}</b>?"+ "RenameFileToExisting": "Deseja renomear <b>{{ old }}</b> para <b>{{ new }}</b>?",+ "Save": "Salvar",+ "Line Wrap": "Quebra de linha automática",+ "Read-only": "Somente leitura",+ "Read-write": "Leitura e escrita"}\ No newline at end of filediff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.jsonindex 8500012c..0227777f 100644--- a/frontend/src/i18n/ru.json+++ b/frontend/src/i18n/ru.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Перезаписать существующие файл(ы)","Replace Existing File": "Заменить существующий файл","Do you want to replace the existing file(s)?": "Вы хотите заменить существующие файл(ы)?",- "RenameFileToExisting": "Переименовать <b>{{ old }}</b> в <b>{{ new }}</b>?"+ "RenameFileToExisting": "Переименовать <b>{{ old }}</b> в <b>{{ new }}</b>?",+ "Save": "Сохранить",+ "Line Wrap": "Перенос строк",+ "Read-only": "Только чтение",+ "Read-write": "Чтение и запись"}\ No newline at end of filediff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.jsonindex 0c973a2d..5af65049 100644--- a/frontend/src/i18n/tr.json+++ b/frontend/src/i18n/tr.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "Mevcut dosya(ları) üzerine yaz","Replace Existing File": "Mevcut dosyayı değiştir","Do you want to replace the existing file(s)?": "Mevcut dosya(ları) değiştirmek istiyor musunuz?",- "RenameFileToExisting": "<b>{{ old }}</b> dosyasını <b>{{ new }}</b> olarak yeniden adlandırmak istiyor musunuz?"+ "RenameFileToExisting": "<b>{{ old }}</b> dosyasını <b>{{ new }}</b> olarak yeniden adlandırmak istiyor musunuz?",+ "Save": "Kaydet",+ "Line Wrap": "Satır kaydırma",+ "Read-only": "Salt okunur",+ "Read-write": "Okuma/Yazma"}diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.jsonindex 113cf36b..31a00f0e 100644--- a/frontend/src/i18n/zh.json+++ b/frontend/src/i18n/zh.json@@ -599,5 +599,9 @@"Overwrite Existing File(s)": "覆盖现有文件","Replace Existing File": "替换现有文件","Do you want to replace the existing file(s)?": "是否要替换现有文件?",- "RenameFileToExisting": "您确定要将 <b>{{ old }}</b> 重命名为 <b>{{ new }}</b> 吗?"+ "RenameFileToExisting": "您确定要将 <b>{{ old }}</b> 重命名为 <b>{{ new }}</b> 吗?",+ "Save": "保存",+ "Line Wrap": "自动换行",+ "Read-only": "只读",+ "Read-write": "读写"}\ No newline at end of file