Skip to content

Commit f85f7fe

Browse files
committed
Merge branch '3205_eta'
* 3205_eta: (29 commits) Update po/*.po files. doc: update EN and RU man pages. Calculate pauses in file operations. File copy/move: make ETA accurate. (calc_copy_file_progress): clarify calculation of BPSes and ETAs. (panel_operate): use intermediate variable for better indentation. (copy_file_file): clarify handling of mc_open() errors. (copy_file_file): fix handling of mc_open() error. (calc_copy_file_progress): rename from copy_file_file_display_progress(). (file_progress_show_total): add 'tv_current' argument. (file_progress_show_total): use 'copied_bytes' to show numeric value. (file_progress_show_count): remove 'done' and 'total' arguments. (erase_dir_iff_empty): remove 'count' argument. (file_op_context_t): rename members. (copy_file_file): reduce variable scope, change order of progress update. (file_op_context_t): reorder members. Move content of src/filemanager/fileopctx.[ch] to src/filemanager/filegui.[ch]. (file_op_total_context_t): remove. All members were moved to file_op_context_t. (file_op_total_context_t): rename members. (copy_file_file_display_progress): remove dead code. ...
2 parents c5b8b69 + 883aec7 commit f85f7fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2406
-1785
lines changed

doc/man/mc.1.in

Lines changed: 85 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,48 +2556,102 @@ cancel the Chattr command.
25562556
.SH "File Operations"
25572557
When you copy, move or delete files, Midnight Commander shows the
25582558
file operations dialog. It shows the files currently being processed
2559-
and uses up to three progress bars. The file bar indicates the
2559+
and uses up to two progress bars. The file bytes bar indicates the
25602560
percentage of the current file that has been processed so far. The
2561-
count bar shows how many of the tagged files have been handled. The
2562-
bytes bar indicates the percentage of the total size of the tagged files
2563-
that has been handled. If the verbose option is off, the file and bytes
2564-
bars are not shown.
2561+
total bytes bar indicates the percentage of the total size of the tagged
2562+
files that has been handled. Ccounters that show how many of the tagged
2563+
files have been handled are displayed. If the
2564+
.I Verbose
2565+
option is off, the file bytes bar and total bytes bar are not shown.
25652566
.PP
2566-
There are two buttons at the bottom of the dialog. Pressing the Skip
2567-
button will skip the rest of the current file. Pressing the Abort
2568-
button will abort the whole operation, the rest of the files are
2569-
skipped.
2567+
There are three buttons at the bottom of the dialog:
2568+
.TP
2569+
.B [Skip]
2570+
button to skip the rest of the current file.
2571+
.TP
2572+
.B [Suspend]
2573+
button to suspend the file operation and button transforms to the
2574+
.B [Continue]
2575+
one which continue the suspended operation.
2576+
.TP
2577+
.B [Abort]
2578+
button to abort the whole operation, the rest of the files are skipped.
25702579
.PP
25712580
There are three other dialogs which you can run into during the file
25722581
operations.
25732582
.PP
2574-
The error dialog informs about error conditions and has four choices.
2575-
Normally you select either the
2576-
.I [Ignore]
2577-
button to ignore this error, or the
2578-
.I [Ignore all]
2579-
button to ignore this and all future errors, or the
2580-
.I [Abort]
2581-
button to abort the operation altogether. You can also select the
2582-
.I [Retry]
2583-
button if you fixed the problem from another terminal.
2583+
The error dialog informs about error conditions and has four choices:
2584+
.TP
2585+
.B [Ignore]
2586+
button to ignore this error.
2587+
.TP
2588+
.B [Ignore all]
2589+
button to ignore this and all future errors.
2590+
.TP
2591+
.B [Abort]
2592+
button to abort the operation altogether.
2593+
.TP
2594+
.B [Retry]
2595+
button to continue if you fixed the problem from another terminal.
25842596
.PP
25852597
The replace dialog is shown when you attempt to copy or move a file on
25862598
the top of an existing file. The dialog shows the dates and sizes of
2587-
the both files. Press the Yes button to overwrite the file, the No
2588-
button to skip the file, the All button to overwrite all the files, the
2589-
None button to never overwrite and the Update button to overwrite if the
2590-
source file is newer than the target file. You can abort the whole
2591-
operation by pressing the Abort button.
2599+
the both files. There are folloing buttons in this dialog:
2600+
.TP
2601+
.B [Yes]
2602+
button to overwrite the file.
2603+
.TP
2604+
.B [No]
2605+
button to skip the file.
2606+
.TP
2607+
.B [Append]
2608+
button to append the source file to the target one.
2609+
.TP
2610+
.B [Reget]
2611+
button to append the rest of the source file to the target one.
2612+
This button is displayed only if the size of the target file
2613+
is non-zero and less than the size of the source file.
2614+
.TP
2615+
.B [All]
2616+
button to overwrite all the files.
2617+
.TP
2618+
.B [Older]
2619+
button to overwrite if the source file is newer than the target file.
2620+
.TP
2621+
.B [None]
2622+
button to never overwrite files
2623+
.TP
2624+
.B [Smaller]
2625+
button to overwrite if the source file size is less than the target one.
2626+
.TP
2627+
.B [Size differs]
2628+
button to overwrite files with different sizes.
2629+
.TP
2630+
.B [Abort]
2631+
button to abort the whole operation.
2632+
.PP
2633+
If the
2634+
.B Don't overwrite with zero length file
2635+
checkbox is on, the zero\-sized source files don't overwrite the
2636+
non\-zero\-sized target files.
25922637
.PP
25932638
The recursive delete dialog is shown when you try to delete a directory
2594-
which is not empty. Press the Yes button to delete the directory
2595-
recursively, the No button to skip the directory, the All button to
2596-
delete all the directories and the None button to skip all the non\-empty
2597-
directories. You can abort the whole operation by pressing the Abort
2598-
button. If you selected the Yes or All button you will be asked for a
2599-
confirmation. Type "yes" only if you are really sure you want to do the
2600-
recursive delete.
2639+
which is not empty. There are folloing buttons in this dialog:
2640+
.TP
2641+
.B [Yes]
2642+
button to delete the directory recursively.
2643+
.TP
2644+
.B [No]
2645+
button to skip the directory.
2646+
.TP
2647+
.B [All]
2648+
button to delete all the directories.
2649+
.TP
2650+
.B [None]
2651+
button to skip all the non\-empty directories.
2652+
.TP
2653+
.B [Abort]
2654+
button to abort the whole operation.
26012655
.PP
26022656
If you have tagged files and perform an operation on them only the files
26032657
on which the operation succeeded are untagged. Failed and skipped files

doc/man/ru/mc.1.in

Lines changed: 66 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,99 +2901,116 @@ chattr \- команде изменения атрибутов файлов и
29012901
файлов, Midnight Commander отображает на экране диалоговое окно, в
29022902
котором показано, какой(ие) файл(ы) в данный момент обрабатывается и как
29032903
идет процесс обработки. Для отображения процесса обработки на экран
2904-
выводится до трёх диаграмм\-полосок (progress bars). Первая (file bar)
2905-
показывает, какая часть текущего файла обработана (например,
2906-
скопирована). Вторая (count bar) показывает, какая доля помеченных файлов
2907-
обработана на текущий момент. Третья (bytes bar) показывает долю
2908-
выполненных работ (в процентах от суммарного объема помеченных файлов).
2909-
Если выключена опция
2904+
выводится до двух диаграмм\-полосок (progress bars). Первая показывает,
2905+
какая часть текущего файла обработана (например, скопирована). Вторая
2906+
показывает долю выполненных работ (в процентах от суммарного объема
2907+
помеченных файлов). Если выключена опция
29102908
.I "Детали операций"
29112909
(см.
29122910
.\"LINK2"
29132911
Настройки/Конфигурация\&.
29142912
.\"Configuration"
2915-
), две последних диаграммы не отображаются.
2913+
), вторая диаграмма не отображаются.
29162914
.PP
2917-
В нижней части этого диалогового окна имеются две кнопки. Нажатие на
2918-
кнопку
2915+
В нижней части этого диалогового окна имеются три кнопки:
2916+
.TP
29192917
.B [Пропустить]
2920-
приведёт к тому, что будет пропущена обработка текущего файла. Нажатие
2921-
на кнопку
2918+
прерывает обработку текущего файла.
2919+
.TP
2920+
.B [Приостановить]
2921+
приостанавливает выполнение операции и при нажатии превращается в кнопку
2922+
.BR [Продолжить] ,
2923+
при нажатии на которую выполнение операции продолжится.
2924+
.TP
29222925
.B [Прервать]
29232926
прерывает выполнение заданной операции, все оставшиеся файлы будут пропущены.
29242927
.PP
29252928
В процессе выполнения файловых операций вы можете увидеть окна ещё трёх
29262929
видов.
29272930
.PP
2928-
Окно ошибок информирует об ошибке и предлагает четыре варианта продолжения.
2929-
Обычно вы выбираете либо вариант
2931+
Окно ошибок информирует об ошибке и предлагает четыре варианта продолжения:
2932+
.TP
29302933
.B [Игнорировать]
2931-
для того, чтобы пропустить ошибку файловой операции, либо
2934+
проигнорировать текущую ошибку файловой операции.
2935+
.TP
29322936
.B [Игнорировать всё]
2933-
для того, чтобы пропустить эту и все последующие ошибки файловой операции, либо
2934-
.BR [Прервать] ,
2935-
чтобы вообще отменить выполнение заданной операции. Третий вариант,
2936-
.BR [Повторить] ,
2937-
выбирается тогда, когда вам удалось устранить причину сбоя (например,
2938-
воспользовавшись другим терминалом).
2937+
игнорировать эту и все последующие ошибки файловой операции.
2938+
.TP
2939+
.B [Прервать]
2940+
отменить выполнение заданной операции.
2941+
.TP
2942+
.B [Повторить]
2943+
продолжить выполнение операции, когда вам удалось устранить причину
2944+
сбоя (например, воспользовавшись другим терминалом).
29392945
.PP
29402946
Окно подтверждения перезаписи появляется тогда, когда вы пытаетесь
29412947
переписать существующий файл. В этом окне отображаются время создания и
2942-
размер файла\-источника и файла\-приёмника (то есть перезаписываемого
2943-
файла, который фактически будет уничтожен). Ниже выведены два вопроса.
2944-
На первый вопрос ("Переписать этот файл?") предлагается три варианта
2945-
ответа:
2948+
размеры файла\-источника и файла\-приёмника. Ннже находится вопрос "Переписать
2949+
этот файл?" и предлагается четыре варианта ответа:
29462950
.TP
2947-
.B [Д]
2948-
согласиться;
2951+
.B [Да]
2952+
переписать текущий файл.
29492953
.TP
29502954
.B [Нет]
2951-
отказаться, то есть пропустить перезапись текущего файла;
2955+
пропустить перезапись текущего файла.
29522956
.TP
29532957
.B [Дописать в конец]
29542958
дописать содержимое файла\-источника в конец файла\-приёмника.
2959+
.TP
2960+
.B [Докачать]
2961+
дописать оставшуюся часть файла\-источника в конец файла\-приёмника.
2962+
Эта кнопка появляется только в том случае, если размер файла\-приёмника
2963+
не нулевой и меньше размера файла\-источника.
29552964
.PP
29562965
Выбор одного из вариантов ответа на второй вопрос ("Переписать все
29572966
файлы?") позволяет принять одно решение по всем выбранным для обработки
29582967
файлам (чтобы окно запроса не появлялось каждый раз). Предлагается четыре
29592968
варианта решения:
29602969
.TP
29612970
.B [Все]
2962-
перезаписались без дополнительных вопросов все выбранные файлы;
2971+
перезаписать без дополнительных вопросов все выбранные файлы.
29632972
.TP
2964-
.B [Устаревшие]
2965-
перезапишутся (затрутся) только файлы, которые созданы раньше
2966-
файла\-источника;
2973+
.B [Старше]
2974+
перезапиcать (затереть) только те файлы, которые созданы раньше
2975+
файла\-источника.
29672976
.TP
29682977
.B [Ни одного]
29692978
не перезаписывать файлы (но если не существует файла\-приёмника, то
2970-
копирование источника будет произведено);
2979+
копирование источника будет произведено).
2980+
.TP
2981+
.B [Меньше]
2982+
перезапиcать (затереть) только те файлы, размеры которых меньше
2983+
размеров соответствующих файлов\-источников.
2984+
.TP
2985+
.B [Различающиеся по длине]
2986+
перезапиcать (затереть) только те файлы, размеры которых отличаются
2987+
от размеров соответствующих файлов\-источников.
29712988
.TP
2972-
.I [Различающиеся по длине]
2973-
Вы можете отказаться от выполнения операции, если нажмете кнопку
29742989
.B [Прервать]
2975-
в нижней части окна запроса. Выбор экранной кнопки производится
2976-
.B клавишами\-стрелками
2977-
или клавишей
2978-
.BR Tab .
2990+
прервать выполнение операции.
2991+
.PP
2992+
Если перекючатель
2993+
.B Не перезаписывать файлами нулевой длины
2994+
включен, то файлы\-источники с нулевыми размерами не будут перезаписывать
2995+
файлы\-приёмники с ненулевымы размерами.
29792996
.PP
29802997
Окно запроса на рекурсивное удаление появляется в том случае, если вы
2981-
пытаетесь удалить непустой каталог. По кнопке
2998+
пытаетесь удалить непустой каталог. В этом диалоге имеются следующие кнопки:
2999+
.TP
29823000
.B [Да]
29833001
каталог будет удален вместе со всеми файлами.
3002+
.TP
29843003
.B [Нет]
2985-
означает отказ от удаления каталога.
2986-
.B [Всё] надо выбирать, если вы отметили группу подкаталогов для удаления и
2987-
уверены в своём выборе,
3004+
отказ от удаления каталога.
3005+
.TP
3006+
.B [Всё]
3007+
удалить все помеченные каталоги.
3008+
.TP
29883009
.B [Ни одного]
2989-
\- чтобы пропустить все непустые каталоги из числа помеченных.
3010+
пропустить все непустые каталоги из числа помеченных.
3011+
.TP
29903012
.B [Прервать]
2991-
означает отказ от выполнения операции удаления. Выбирайте
2992-
.B [Да]
2993-
или
2994-
.B [Всё]
2995-
только в том случае, если вы действительно уверены в том, что хотите удалить
2996-
каталог со всеми вложенными подкаталогами.
3013+
отказ от выполнения операции удаления.
29973014
.PP
29983015
Если вы пометили для обработки группу файлов, то после выполнения
29993016
операции будет снята отметка только с тех файлов, которые успешно

po/af.po

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Midnight Commander\n"
99
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
10-
"POT-Creation-Date: 2024-10-05 15:11+0300\n"
10+
"POT-Creation-Date: 2024-11-12 12:10+0300\n"
1111
"PO-Revision-Date: 2010-12-29 10:19+0000\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: Afrikaans (http://app.transifex.com/mc/mc/language/af/)\n"
@@ -893,6 +893,9 @@ msgstr ""
893893
msgid "Diff:"
894894
msgstr ""
895895

896+
msgid "File name is empty!"
897+
msgstr ""
898+
896899
#, c-format
897900
msgid "\"%s\" is a directory"
898901
msgstr ""
@@ -2145,7 +2148,7 @@ msgstr ""
21452148

21462149
#, c-format
21472150
msgid ""
2148-
"Cannot get flags of \"%s\"\n"
2151+
"Cannot get ext2 attributes of \"%s\"\n"
21492152
"%s"
21502153
msgstr ""
21512154

@@ -2496,7 +2499,7 @@ msgid ""
24962499
"are the same file"
24972500
msgstr ""
24982501

2499-
msgid "Ski&p all"
2502+
msgid "Ignore a&ll"
25002503
msgstr ""
25012504

25022505
#, c-format
@@ -2572,13 +2575,13 @@ msgstr ""
25722575

25732576
#, c-format
25742577
msgid ""
2575-
"Cannot get attributes of source file \"%s\"\n"
2578+
"Cannot get ext2 attributes of source file \"%s\"\n"
25762579
"%s"
25772580
msgstr ""
25782581

25792582
#, c-format
25802583
msgid ""
2581-
"Cannot set attributes of target file \"%s\"\n"
2584+
"Cannot set ext2 attributes of target file \"%s\"\n"
25822585
"%s"
25832586
msgstr ""
25842587

@@ -2671,7 +2674,7 @@ msgstr ""
26712674

26722675
#, c-format
26732676
msgid ""
2674-
"Cannot set attributes for target file \"%s\"\n"
2677+
"Cannot set ext2 attributes for target file \"%s\"\n"
26752678
"%s"
26762679
msgstr ""
26772680

@@ -2683,7 +2686,7 @@ msgstr ""
26832686

26842687
#, c-format
26852688
msgid ""
2686-
"Cannot get attributes of source directory \"%s\"\n"
2689+
"Cannot get ext2 attributes of source directory \"%s\"\n"
26872690
"%s"
26882691
msgstr ""
26892692

0 commit comments

Comments
 (0)