diff --git a/flutter/lib/desktop/pages/file_manager_page.dart b/flutter/lib/desktop/pages/file_manager_page.dart index f55619ddf..a225b55b0 100644 --- a/flutter/lib/desktop/pages/file_manager_page.dart +++ b/flutter/lib/desktop/pages/file_manager_page.dart @@ -48,6 +48,8 @@ class _FileManagerPageState extends State final _locationStatusRemote = LocationStatus.bread.obs; final _locationNodeLocal = FocusNode(debugLabel: "locationNodeLocal"); final _locationNodeRemote = FocusNode(debugLabel: "locationNodeRemote"); + final _locationBarKeyLocal = GlobalKey(debugLabel: "locationBarKeyLocal"); + final _locationBarKeyRemote = GlobalKey(debugLabel: "locationBarKeyRemote"); final _searchTextLocal = "".obs; final _searchTextRemote = "".obs; final _breadCrumbScrollerLocal = ScrollController(); @@ -63,11 +65,15 @@ class _FileManagerPageState extends State return isLocal ? _breadCrumbScrollerLocal : _breadCrumbScrollerRemote; } + GlobalKey getLocationBarKey(bool isLocal) { + return isLocal ? _locationBarKeyLocal : _locationBarKeyRemote; + } + late FFI _ffi; FileModel get model => _ffi.fileModel; - SelectedItems getSelectedItem(bool isLocal) { + SelectedItems getSelectedItems(bool isLocal) { return isLocal ? _localSelectedItems : _remoteSelectedItems; } @@ -133,7 +139,7 @@ class _FileManagerPageState extends State Widget menu({bool isLocal = false}) { var menuPos = RelativeRect.fill; - final items = [ + final List> items = [ MenuEntrySwitch( switchType: SwitchType.scheckbox, text: translate("Show Hidden Files"), @@ -146,6 +152,18 @@ class _FileManagerPageState extends State padding: kDesktopMenuPadding, dismissOnClicked: true, ), + MenuEntryButton( + childBuilder: (style) => Text(translate("Select All"), style: style), + proc: () => setState(() => getSelectedItems(isLocal) + .selectAll(model.getCurrentDir(isLocal).entries)), + padding: kDesktopMenuPadding, + dismissOnClicked: true), + MenuEntryButton( + childBuilder: (style) => + Text(translate("Unselect All"), style: style), + proc: () => setState(() => getSelectedItems(isLocal).clear()), + padding: kDesktopMenuPadding, + dismissOnClicked: true) ]; return Listener( @@ -273,11 +291,10 @@ class _FileManagerPageState extends State return DataRow( key: ValueKey(entry.name), onSelectChanged: (s) { - _onSelectedChanged(getSelectedItem(isLocal), filteredEntries, + _onSelectedChanged(getSelectedItems(isLocal), filteredEntries, entry, isLocal); - setState(() {}); }, - selected: getSelectedItem(isLocal).contains(entry), + selected: getSelectedItems(isLocal).contains(entry), cells: [ DataCell( Container( @@ -287,7 +304,11 @@ class _FileManagerPageState extends State message: entry.name, child: Row(children: [ Icon( - entry.isFile ? Icons.feed_outlined : Icons.folder, + entry.isFile + ? Icons.feed_outlined + : entry.isDrive + ? Icons.computer + : Icons.folder, size: 20, color: Theme.of(context) .iconTheme @@ -300,7 +321,7 @@ class _FileManagerPageState extends State ]), )), onTap: () { - final items = getSelectedItem(isLocal); + final items = getSelectedItems(isLocal); // handle double click if (_checkDoubleClick(entry)) { @@ -486,6 +507,7 @@ class _FileManagerPageState extends State final locationStatus = isLocal ? _locationStatusLocal : _locationStatusRemote; final locationFocus = isLocal ? _locationNodeLocal : _locationNodeRemote; + final selectedItems = getSelectedItems(isLocal); return Container( child: Column( children: [ @@ -534,6 +556,7 @@ class _FileManagerPageState extends State icon: const Icon(Icons.arrow_back), splashRadius: 20, onPressed: () { + selectedItems.clear(); model.goBack(isLocal: isLocal); }, ), @@ -541,6 +564,7 @@ class _FileManagerPageState extends State icon: const Icon(Icons.arrow_upward), splashRadius: 20, onPressed: () { + selectedItems.clear(); model.goToParentDirectory(isLocal: isLocal); }, ), @@ -609,6 +633,7 @@ class _FileManagerPageState extends State }), IconButton( onPressed: () { + breadCrumbScrollToEnd(isLocal); model.refresh(isLocal: isLocal); }, splashRadius: 20, @@ -673,13 +698,13 @@ class _FileManagerPageState extends State splashRadius: 20, icon: const Icon(Icons.create_new_folder_outlined)), IconButton( - onPressed: () async { - final items = isLocal - ? _localSelectedItems - : _remoteSelectedItems; - await (model.removeAction(items, isLocal: isLocal)); - items.clear(); - }, + onPressed: validItems(selectedItems) + ? () async { + await (model.removeAction(selectedItems, + isLocal: isLocal)); + selectedItems.clear(); + } + : null, splashRadius: 20, icon: const Icon(Icons.delete_forever_outlined)), menu(isLocal: isLocal), @@ -687,11 +712,12 @@ class _FileManagerPageState extends State ), ), TextButton.icon( - onPressed: () { - final items = getSelectedItem(isLocal); - model.sendFiles(items, isRemote: !isLocal); - items.clear(); - }, + onPressed: validItems(selectedItems) + ? () { + model.sendFiles(selectedItems, isRemote: !isLocal); + selectedItems.clear(); + } + : null, icon: Transform.rotate( angle: isLocal ? 0 : pi, child: const Icon( @@ -707,6 +733,14 @@ class _FileManagerPageState extends State )); } + bool validItems(SelectedItems items) { + if (items.length > 0) { + // exclude DirDrive type + return items.items.any((item) => !item.isDrive); + } + return false; + } + @override bool get wantKeepAlive => true; @@ -742,8 +776,7 @@ class _FileManagerPageState extends State } openDirectory(path, isLocal: isLocal); }); - breadCrumbScrollToEnd(isLocal); - final locationBarKey = GlobalKey(debugLabel: "locationBarKey"); + final locationBarKey = getLocationBarKey(isLocal); return items.isEmpty ? Offstage() @@ -780,11 +813,13 @@ class _FileManagerPageState extends State final List menuItems; if (peerPlatform == "windows") { menuItems = []; - final loadingTag = - _ffi.dialogManager.showLoading("Waiting"); + var loadingTag = ""; + if (!isLocal) { + loadingTag = _ffi.dialogManager.showLoading("Waiting"); + } try { final fd = - await model.fetchDirectory("/", isLocal, false); + await model.fetchDirectory("/", isLocal, isLocal); for (var entry in fd.entries) { menuItems.add(MenuEntryButton( childBuilder: (TextStyle? style) => Text( @@ -793,12 +828,14 @@ class _FileManagerPageState extends State ), proc: () { openDirectory(entry.name, isLocal: isLocal); - Get.back(); - })); + }, + dismissOnClicked: true)); menuItems.add(MenuEntryDivider()); } } finally { - _ffi.dialogManager.dismissByTag(loadingTag); + if (!isLocal) { + _ffi.dialogManager.dismissByTag(loadingTag); + } } } else { menuItems = [ @@ -809,8 +846,8 @@ class _FileManagerPageState extends State ), proc: () { openDirectory('/', isLocal: isLocal); - Get.back(); - }), + }, + dismissOnClicked: true), MenuEntryDivider() ]; } diff --git a/flutter/lib/models/file_model.dart b/flutter/lib/models/file_model.dart index d60858c6e..a95e44ddf 100644 --- a/flutter/lib/models/file_model.dart +++ b/flutter/lib/models/file_model.dart @@ -1031,7 +1031,9 @@ class Entry { bool get isFile => entryType > 3; - bool get isDirectory => entryType <= 3; + bool get isDirectory => entryType < 3; + + bool get isDrive => entryType == 3; DateTime lastModified() { return DateTime.fromMillisecondsSinceEpoch(modifiedTime * 1000); @@ -1169,6 +1171,11 @@ class SelectedItems { _items.clear(); _isLocal = null; } + + void selectAll(List entries) { + _items.clear(); + _items.addAll(entries); + } } // code from file_manager pkg after edit diff --git a/src/lang/cn.rs b/src/lang/cn.rs index cf2575a7f..32e30f81c 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "删除"), ("Properties", "属性"), ("Multi Select", "多选"), + ("Select All", "全选"), + ("Unselect All", "取消全选"), ("Empty Directory", "空文件夹"), ("Not an empty directory", "这不是一个空文件夹"), ("Are you sure you want to delete this file?", "是否删除此文件?"), diff --git a/src/lang/cs.rs b/src/lang/cs.rs index 162fdc1ed..6610c312b 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Smazat"), ("Properties", "Vlastnosti"), ("Multi Select", "Vícenásobný výběr"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Prázdná složka"), ("Not an empty directory", "Neprázdná složka"), ("Are you sure you want to delete this file?", "Opravdu chcete tento soubor vymazat?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Dobrá kvalita obrazu"), ("Balanced", "Vyvážené"), ("Optimize reaction time", "Optimalizovat pro co nejnižší prodlevu odezvy"), - ("Custom", "Uživatelsky určené"), + ("Custom", ""), ("Show remote cursor", "Zobrazovat ukazatel myši z protějšku"), ("Show quality monitor", ""), ("Disable clipboard", "Vypnout schránku"), diff --git a/src/lang/da.rs b/src/lang/da.rs index df9929d1f..3bf05a3d6 100644 --- a/src/lang/da.rs +++ b/src/lang/da.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Slet"), ("Properties", "Egenskaber"), ("Multi Select", "Flere valg"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Tom bibliotek"), ("Not an empty directory", "Intet tomt bibliotek"), ("Are you sure you want to delete this file?", "Er du sikker på, at du vil slette denne fil?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "God billedkvalitet"), ("Balanced", "Afbalanceret"), ("Optimize reaction time", "Optimeret responstid"), - ("Custom", "Brugerdefineret"), + ("Custom", ""), ("Show remote cursor", "Vis fjernbetjeningskontrolleret markør"), ("Show quality monitor", ""), ("Disable clipboard", "Deaktiver udklipsholder"), @@ -193,7 +195,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Reboot required", "Genstart krævet"), ("Unsupported display server ", "Ikke-understøttet displayserver"), ("x11 expected", "X11 Forventet"), - ("Port", ""), + ("Port", "Port"), ("Settings", "Indstillinger"), ("Username", " Brugernavn"), ("Invalid port", "Ugyldig port"), @@ -274,7 +276,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("android_stop_service_tip", "Ved at lukke tjenesten lukkes alle fremstillede forbindelser automatisk."), ("android_version_audio_tip", "Den aktuelle Android -version understøtter ikke lydoptagelse, skal du opdatere om Android 10 eller højere."), ("android_start_service_tip", "Tryk på [Start Service] eller åbn autorisationen [skærmoptagelse] for at starte skærmudgivelsen."), - ("Account", ""), + ("Account", "Konto"), ("Overwrite", "Overskriv"), ("This file exists, skip or overwrite this file?", "Denne fil findes, springer over denne fil eller overskriver?"), ("Quit", "Afslut"), diff --git a/src/lang/de.rs b/src/lang/de.rs index b0f6d0ba3..095206f8e 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Löschen"), ("Properties", "Eigenschaften"), ("Multi Select", "Mehrfachauswahl"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Leerer Ordner"), ("Not an empty directory", "Ordner ist nicht leer"), ("Are you sure you want to delete this file?", "Sind Sie sicher, dass Sie diese Datei löschen wollen?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Qualität"), ("Balanced", "Ausgeglichen"), ("Optimize reaction time", "Geschwindigkeit"), - ("Custom", "Benutzerdefiniert"), + ("Custom", ""), ("Show remote cursor", "Entfernten Cursor anzeigen"), ("Show quality monitor", "Qualitätsüberwachung anzeigen"), ("Disable clipboard", "Zwischenablage deaktivieren"), diff --git a/src/lang/eo.rs b/src/lang/eo.rs index ca0f12bcd..1b2a391d9 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", ""), ("Properties", ""), ("Multi Select", ""), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", ""), ("Not an empty directory", ""), ("Are you sure you want to delete this file?", "Ĉu vi vere volas forigi tiun dosieron?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Bona bilda kvalito"), ("Balanced", "Normala bilda kvalito"), ("Optimize reaction time", "Optimigi reakcia tempo"), - ("Custom", "Personigi bilda kvalito"), + ("Custom", ""), ("Show remote cursor", "Montri foran kursoron"), ("Show quality monitor", ""), ("Disable clipboard", "Malebligi poŝon"), diff --git a/src/lang/es.rs b/src/lang/es.rs index 3be5f920e..ef90bb711 100644 --- a/src/lang/es.rs +++ b/src/lang/es.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Borrar"), ("Properties", "Propiedades"), ("Multi Select", "Selección múltiple"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Directorio vacío"), ("Not an empty directory", "No es un directorio vacío"), ("Are you sure you want to delete this file?", "Estás seguro de que quieres eliminar este archivo?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Buena calidad de imagen"), ("Balanced", "Equilibrado"), ("Optimize reaction time", "Optimizar el tiempo de reacción"), - ("Custom", "Personalizado"), + ("Custom", ""), ("Show remote cursor", "Mostrar cursor remoto"), ("Show quality monitor", "Mostrar calidad del monitor"), ("Disable clipboard", "Deshabilitar portapapeles"), diff --git a/src/lang/fr.rs b/src/lang/fr.rs index 484c415fc..8b6420823 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Supprimer"), ("Properties", "Propriétés"), ("Multi Select", "Choix multiple"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Répertoire vide"), ("Not an empty directory", "Pas un répertoire vide"), ("Are you sure you want to delete this file?", "Voulez-vous vraiment supprimer ce fichier?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Bonne qualité d'image"), ("Balanced", "Qualité d'image normale"), ("Optimize reaction time", "Optimiser le temps de réaction"), - ("Custom", "Qualité d'image personnalisée"), + ("Custom", ""), ("Show remote cursor", "Afficher le curseur distant"), ("Show quality monitor", ""), ("Disable clipboard", "Désactiver le presse-papier"), diff --git a/src/lang/hu.rs b/src/lang/hu.rs index c2d5903e1..bbc0594a5 100644 --- a/src/lang/hu.rs +++ b/src/lang/hu.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Törlés"), ("Properties", "Tulajdonságok"), ("Multi Select", "Több fájl kiválasztása"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Üres Könyvtár"), ("Not an empty directory", "Nem egy üres könyvtár"), ("Are you sure you want to delete this file?", "Biztosan törölni szeretnéd ezt a fájlt?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Jó képminőség"), ("Balanced", "Balanszolt"), ("Optimize reaction time", "Válaszidő optimializálása"), - ("Custom", "Egyedi"), + ("Custom", ""), ("Show remote cursor", "Távoli kurzor mutatása"), ("Show quality monitor", "Minőségi monitor mutatása"), ("Disable clipboard", "Vágólap Kikapcsolása"), diff --git a/src/lang/id.rs b/src/lang/id.rs index 33aae1579..fd0b3bbf8 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Hapus"), ("Properties", "Properti"), ("Multi Select", "Pilih Beberapa"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Folder Kosong"), ("Not an empty directory", "Folder tidak kosong"), ("Are you sure you want to delete this file?", "Apakah anda yakin untuk menghapus file ini?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Kualitas Gambar Baik"), ("Balanced", "Seimbang"), ("Optimize reaction time", "Optimalkan waktu reaksi"), - ("Custom", "Custom"), + ("Custom", ""), ("Show remote cursor", "Tampilkan remote kursor"), ("Show quality monitor", ""), ("Disable clipboard", "Matikan papan klip"), diff --git a/src/lang/it.rs b/src/lang/it.rs index 5b37e9291..bf2c76fe8 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Eliminare"), ("Properties", "Proprietà"), ("Multi Select", "Selezione multipla"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Directory vuota"), ("Not an empty directory", "Non una directory vuota"), ("Are you sure you want to delete this file?", "Vuoi davvero eliminare questo file?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Buona qualità immagine"), ("Balanced", "Bilanciato"), ("Optimize reaction time", "Ottimizza il tempo di reazione"), - ("Custom", "Personalizzato"), + ("Custom", ""), ("Show remote cursor", "Mostra il cursore remoto"), ("Show quality monitor", ""), ("Disable clipboard", "Disabilita appunti"), diff --git a/src/lang/ja.rs b/src/lang/ja.rs index 593ef0186..38e4c0c7d 100644 --- a/src/lang/ja.rs +++ b/src/lang/ja.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "削除"), ("Properties", "プロパティ"), ("Multi Select", "複数選択"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "空のディレクトリ"), ("Not an empty directory", "空ではないディレクトリ"), ("Are you sure you want to delete this file?", "本当にこのファイルを削除しますか?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "画質優先"), ("Balanced", "バランス"), ("Optimize reaction time", "速度優先"), - ("Custom", "カスタム"), + ("Custom", ""), ("Show remote cursor", "リモート側のカーソルを表示"), ("Show quality monitor", "品質モニターを表示"), ("Disable clipboard", "クリップボードを無効化"), diff --git a/src/lang/ko.rs b/src/lang/ko.rs index 1b668462e..740465323 100644 --- a/src/lang/ko.rs +++ b/src/lang/ko.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "삭제"), ("Properties", "속성"), ("Multi Select", "다중 선택"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "빈 디렉터리"), ("Not an empty directory", "디렉터리가 비어있지 않습니다"), ("Are you sure you want to delete this file?", "정말로 해당 파일을 삭제하시겠습니까?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "최적 이미지 품질"), ("Balanced", "균형"), ("Optimize reaction time", "반응 시간 최적화"), - ("Custom", "커스텀"), + ("Custom", ""), ("Show remote cursor", "원격 커서 보이기"), ("Show quality monitor", "품질 모니터 띄우기"), ("Disable clipboard", "클립보드 비활성화"), diff --git a/src/lang/kz.rs b/src/lang/kz.rs index e55b0a3e3..a4f25dbf8 100644 --- a/src/lang/kz.rs +++ b/src/lang/kz.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Жою"), ("Properties", "Қасиеттер"), ("Multi Select", "Көптік таңдау"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Бос Бума"), ("Not an empty directory", "Бос бума емес"), ("Are you sure you want to delete this file?", "Бұл файылды жоюға сенімдісіз бе?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Жақсы сурет сапасы"), ("Balanced", "Теңдестірілген"), ("Optimize reaction time", "Реакция уақытын оңтайландыру"), - ("Custom", "Теңшеулі"), + ("Custom", ""), ("Show remote cursor", "Қашықтағы курсорды көрсету"), ("Show quality monitor", "Сапа мониторын көрсету"), ("Disable clipboard", "Көшіру-тақтасын өшіру"), diff --git a/src/lang/pl.rs b/src/lang/pl.rs index 16f1a5ff3..e46796148 100644 --- a/src/lang/pl.rs +++ b/src/lang/pl.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Usuń"), ("Properties", "Właściwości"), ("Multi Select", "Wielokrotny wybór"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Pusty katalog"), ("Not an empty directory", "Katalog nie jest pusty"), ("Are you sure you want to delete this file?", "Czy na pewno chcesz usunąć ten plik?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Dobra jakość obrazu"), ("Balanced", "Zrównoważony"), ("Optimize reaction time", "Zoptymalizuj czas reakcji"), - ("Custom", "Niestandardowy"), + ("Custom", ""), ("Show remote cursor", "Pokazuj zdalny kursor"), ("Show quality monitor", "Pokazuj jakość monitora"), ("Disable clipboard", "Wyłącz schowek"), diff --git a/src/lang/pt_PT.rs b/src/lang/pt_PT.rs index ea90329a5..69b61d622 100644 --- a/src/lang/pt_PT.rs +++ b/src/lang/pt_PT.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Apagar"), ("Properties", "Propriedades"), ("Multi Select", "Selecção Múltipla"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Directório Vazio"), ("Not an empty directory", "Directório não está vazio"), ("Are you sure you want to delete this file?", "Tem certeza que deseja apagar este ficheiro?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Qualidade visual boa"), ("Balanced", "Equilibrada"), ("Optimize reaction time", "Optimizar tempo de reacção"), - ("Custom", "Personalizado"), + ("Custom", ""), ("Show remote cursor", "Mostrar cursor remoto"), ("Show quality monitor", ""), ("Disable clipboard", "Desabilitar área de transferência"), diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index 8a6280aed..e93cbef33 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Apagar"), ("Properties", "Propriedades"), ("Multi Select", "Seleção Múltipla"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Diretório Vazio"), ("Not an empty directory", "Diretório não está vazio"), ("Are you sure you want to delete this file?", "Tem certeza que deseja apagar este arquivo?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Qualidade visual boa"), ("Balanced", "Balanceada"), ("Optimize reaction time", "Otimizar tempo de reação"), - ("Custom", "Personalizado"), + ("Custom", ""), ("Show remote cursor", "Mostrar cursor remoto"), ("Show quality monitor", ""), ("Disable clipboard", "Desabilitar área de transferência"), diff --git a/src/lang/ru.rs b/src/lang/ru.rs index 5fe9c89ec..eccc28602 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Удалить"), ("Properties", "Свойства"), ("Multi Select", "Многоэлементный выбор"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Пустая папка"), ("Not an empty directory", "Папка не пуста"), ("Are you sure you want to delete this file?", "Вы уверены, что хотите удалить этот файл?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Хорошее качество изображения"), ("Balanced", "Сбалансированный"), ("Optimize reaction time", "Оптимизировать время реакции"), - ("Custom", "Пользовательский"), + ("Custom", ""), ("Show remote cursor", "Показать удаленный курсор"), ("Show quality monitor", "Показать качество"), ("Disable clipboard", "Отключить буфер обмена"), diff --git a/src/lang/sk.rs b/src/lang/sk.rs index 23c8b7220..20e096f0e 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Zmazať"), ("Properties", "Vlastnosti"), ("Multi Select", "Viacnásobný výber"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Prázdny adresár"), ("Not an empty directory", "Nie prázdny adresár"), ("Are you sure you want to delete this file?", "Ste si istý, že chcete zmazať tento súbor?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Dobrá kvalita obrazu"), ("Balanced", "Vyvážené"), ("Optimize reaction time", "Optimalizované pre čas odozvy"), - ("Custom", "Vlastné"), + ("Custom", ""), ("Show remote cursor", "Zobrazovať vzdialený ukazovateľ myši"), ("Show quality monitor", ""), ("Disable clipboard", "Vypnúť schránku"), diff --git a/src/lang/template.rs b/src/lang/template.rs index 6d549b02a..87dcc3a48 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -29,8 +29,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Enable TCP Tunneling", ""), ("IP Whitelisting", ""), ("ID/Relay Server", ""), - ("Import server configuration successfully", ""), ("Import Server Conf", ""), + ("Import server configuration successfully", ""), ("Invalid server configuration", ""), ("Clipboard is empty", ""), ("Stop service", ""), @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", ""), ("Properties", ""), ("Multi Select", ""), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", ""), ("Not an empty directory", ""), ("Are you sure you want to delete this file?", ""), diff --git a/src/lang/tr.rs b/src/lang/tr.rs index 1cf50b2ca..f8d8b5fff 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Sil"), ("Properties", "Özellikler"), ("Multi Select", "Çoklu Seçim"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Boş Klasör"), ("Not an empty directory", "Klasör boş değil"), ("Are you sure you want to delete this file?", "Bu dosyayı silmek istediğinize emin misiniz?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "İyi görüntü kalitesi"), ("Balanced", "Dengelenmiş"), ("Optimize reaction time", "Tepki süresini optimize et"), - ("Custom", "Özel"), + ("Custom", ""), ("Show remote cursor", "Uzaktaki fare imlecini göster"), ("Show quality monitor", ""), ("Disable clipboard", "Hafızadaki kopyalanmışları engelle"), diff --git a/src/lang/tw.rs b/src/lang/tw.rs index 91d0ab169..0c085775e 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "刪除"), ("Properties", "屬性"), ("Multi Select", "多選"), + ("Select All", "全選"), + ("Unselect All", "取消全選"), ("Empty Directory", "空文件夾"), ("Not an empty directory", "不是一個空文件夾"), ("Are you sure you want to delete this file?", "您確定要刪除此檔案嗎?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "畫面品質良好"), ("Balanced", "平衡"), ("Optimize reaction time", "回應速度最佳化"), - ("Custom", "自訂"), + ("Custom", "自定義"), ("Show remote cursor", "顯示遠端游標"), ("Show quality monitor", "顯示質量監測"), ("Disable clipboard", "停用剪貼簿"), diff --git a/src/lang/ua.rs b/src/lang/ua.rs index 528b919b8..8d3451db0 100644 --- a/src/lang/ua.rs +++ b/src/lang/ua.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Видалити"), ("Properties", "Властивості"), ("Multi Select", "Багатоелементний вибір"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Порожня папка"), ("Not an empty directory", "Папка не порожня"), ("Are you sure you want to delete this file?", "Ви впевнені, що хочете видалити цей файл?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Хороша якість зображення"), ("Balanced", "Збалансований"), ("Optimize reaction time", "Оптимізувати час реакції"), - ("Custom", "Користувацький"), + ("Custom", ""), ("Show remote cursor", "Показати віддалений курсор"), ("Show quality monitor", "Показати якість"), ("Disable clipboard", "Відключити буфер обміну"), diff --git a/src/lang/vn.rs b/src/lang/vn.rs index 7f368126f..81428a8ec 100644 --- a/src/lang/vn.rs +++ b/src/lang/vn.rs @@ -87,6 +87,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Delete", "Xóa"), ("Properties", "Thuộc tính"), ("Multi Select", "Chọn nhiều"), + ("Select All", ""), + ("Unselect All", ""), ("Empty Directory", "Thư mục rỗng"), ("Not an empty directory", "Không phải thư mục rỗng"), ("Are you sure you want to delete this file?", "Bạn chắc bạn có muốn xóa tệp tin này không?"), @@ -112,7 +114,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Good image quality", "Chất lượng hình ảnh tốt"), ("Balanced", "Cân bằng"), ("Optimize reaction time", "Thời gian phản ứng tối ưu"), - ("Custom", "Custom"), + ("Custom", ""), ("Show remote cursor", "Hiển thị con trỏ từ máy từ xa"), ("Show quality monitor", "Hiện thị chất lượng của màn hình"), ("Disable clipboard", "Tắt clipboard"),