Skip to content

Commit ab0d6f5

Browse files
committed
Fix i18n of copy/move/delete progress window title.
If copy/move/delete operation runs from check_for_default(), tree_copy(), tree_rmdir() before first call of panel_operate(), the progree window title isn't translated. * (file_op_context_new): move i18n of dialog titles here... * (panel_operate): ...from here. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
1 parent 737de08 commit ab0d6f5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/filemanager/file.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3506,14 +3506,6 @@ panel_operate (void *source_panel, FileOperation operation, gboolean force_singl
35063506

35073507
gboolean do_bg = FALSE; // do background operation?
35083508

3509-
static gboolean i18n_flag = FALSE;
3510-
if (!i18n_flag)
3511-
{
3512-
for (i = G_N_ELEMENTS (op_names); i-- != 0;)
3513-
op_names[i] = Q_ (op_names[i]);
3514-
i18n_flag = TRUE;
3515-
}
3516-
35173509
linklist = free_linklist (linklist);
35183510
dest_dirs = free_linklist (dest_dirs);
35193511

src/filemanager/filegui.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,14 @@ file_op_context_new (FileOperation op)
777777
{
778778
file_op_context_t *ctx;
779779

780+
static gboolean i18n_flag = FALSE;
781+
if (!i18n_flag)
782+
{
783+
for (int i = G_N_ELEMENTS (op_names); i-- != 0;)
784+
op_names[i] = Q_ (op_names[i]);
785+
i18n_flag = TRUE;
786+
}
787+
780788
ctx = g_new0 (file_op_context_t, 1);
781789
ctx->operation = op;
782790
ctx->preserve = TRUE;

0 commit comments

Comments
 (0)