1
1
* 2990_cleanup:
  Refresh po/*.po files.
  Rename functions:
  (dlg_overlap): rename to widget_overlapped()
  (dlg_replace_widget): rename to widget_replace()
  (dlg_widget_active): rename to widget_is_active()
  (mcview_ok_to_quit): move to actions_cmd.c and make static.
  (dlg_mouse_event): minor refactoring.
  (dlg_default_callback): get rid of extra type cast.
  WTree: fix double-click handling.
  Code reorganization and fixes around the vfs_path_as_str() function
  Ticket #3022: misc/mc.menu contains russian UTF-8 "Ó" instead of English "c".
  (vfs_path_as_string): clarify return value.
  Fix draw of tree mini-status.
  Ticket #2071: a bit cleanup of getting profile name.
  Ticket #2164: clarify cursor position in mcviewer.
  Ticket# 2990: prepare to 4.8.9 release.
Этот коммит содержится в:
Andrew Borodin 2013-06-28 09:22:25 +04:00
родитель 90209d3097 da8ce368d9
Коммит bf1aefea02
110 изменённых файлов: 1460 добавлений и 1426 удалений

Просмотреть файл

@ -270,16 +270,12 @@ vfs_timeout_handler (void)
/* --------------------------------------------------------------------------------------------- */
void
vfs_release_path (const char *dir)
vfs_release_path (const vfs_path_t * vpath)
{
vfs_path_t *vpath;
const vfs_path_element_t *path_element;
vpath = vfs_path_from_str (dir);
path_element = vfs_path_get_by_index (vpath, -1);
vfs_stamp_create (path_element->class, vfs_getid (vpath));
vfs_path_free (vpath);
}
/* --------------------------------------------------------------------------------------------- */

Просмотреть файл

@ -134,15 +134,13 @@ vfs_path_get_last_path_vfs (const vfs_path_t * vpath)
*
* @param vpath pointer to vfs_path_t object
*
* @return pointer to newly created string.
* @return pointer to constant string
*/
static inline char *
static inline const char *
vfs_path_as_str (const vfs_path_t * vpath)
{
if (vpath == NULL)
return NULL;
return vpath->str;
return (vpath == NULL ? NULL : vpath->str);
}
/* --------------------------------------------------------------------------------------------- */

Просмотреть файл

@ -253,7 +253,7 @@ char *vfs_translate_path_n (const char *path);
void vfs_stamp_path (const char *path);
void vfs_release_path (const char *dir);
void vfs_release_path (const vfs_path_t * vpath);
void vfs_fill_names (fill_names_f);

Просмотреть файл

@ -212,7 +212,7 @@ button_new (int y, int x, int action, button_flags_t flags, const char *text, bc
b->action = action;
b->flags = flags;
b->text = parse_hotkey (text);
init_widget (w, y, x, 1, button_get_len (b), button_callback, button_event);
widget_init (w, y, x, 1, button_get_len (b), button_callback, button_event);
b->selected = FALSE;
b->callback = callback;
widget_want_hotkey (w, TRUE);

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -249,7 +249,7 @@ buttonbar_new (gboolean visible)
bb = g_new0 (WButtonBar, 1);
w = WIDGET (bb);
init_widget (w, LINES - 1, 0, 1, COLS, buttonbar_callback, buttonbar_event);
widget_init (w, LINES - 1, 0, 1, COLS, buttonbar_callback, buttonbar_event);
w->pos_flags = WPOS_KEEP_HORZ | WPOS_KEEP_BOTTOM;
bb->visible = visible;

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -140,7 +140,7 @@ check_new (int y, int x, int state, const char *text)
c = g_new (WCheck, 1);
w = WIDGET (c);
c->text = parse_hotkey (text);
init_widget (w, y, x, 1, 4 + hotkey_width (c->text), check_callback, check_event);
widget_init (w, y, x, 1, 4 + hotkey_width (c->text), check_callback, check_event);
/* 4 is width of "[X] " */
c->state = state ? C_BOOL : 0;
widget_want_hotkey (w, TRUE);

Просмотреть файл

@ -3,12 +3,12 @@
Original idea and code: Oleg "Olegarch" Konovalov <olegarch@linuxinside.com>
Copyright (c) 2009, 2010, 2011
Copyright (c) 2009, 2010, 2011, 2013
The Free Software Foundation
Written by:
Daniel Borca <dborca@yahoo.com>, 2007
Andrew Borodin <aborodin@vmail.ru>, 2010
Andrew Borodin <aborodin@vmail.ru>, 2010, 2013
This file is part of the Midnight Commander.
@ -278,10 +278,10 @@ dialog_switch_process_pending (void)
dialog_switch_pending = FALSE;
h->state = DLG_SUSPENDED;
ret = run_dlg (h);
ret = dlg_run (h);
if (h->state == DLG_CLOSED)
{
destroy_dlg (h);
dlg_destroy (h);
/* return to panels */
if (mc_global.mc_run_mode == MC_RUN_FULL)
@ -318,8 +318,8 @@ dialog_switch_shutdown (void)
{
WDialog *dlg = DIALOG (mc_dialogs->data);
run_dlg (dlg);
destroy_dlg (dlg);
dlg_run (dlg);
dlg_destroy (dlg);
}
}

Просмотреть файл

@ -246,7 +246,7 @@ do_select_widget (WDialog * h, GList * w, select_dir_t dir)
}
while (h->current != w /* && (WIDGET (h->current->data)->options & W_DISABLED) == 0 */ );
if (dlg_overlap (w0, WIDGET (h->current->data)))
if (widget_overlapped (w0, WIDGET (h->current->data)))
{
send_message (h->current->data, NULL, MSG_DRAW, 0, NULL);
send_message (h->current->data, NULL, MSG_FOCUS, 0, NULL);
@ -361,14 +361,11 @@ dlg_mouse_event (WDialog * h, Gpm_Event * event)
{
Widget *wh = WIDGET (h);
GList *item;
GList *starting_widget = h->current;
int x = event->x;
int y = event->y;
GList *p, *first;
/* close the dialog by mouse click out of dialog area */
if (mouse_close_dialog && !h->fullscreen && ((event->buttons & GPM_B_LEFT) != 0) && ((event->type & GPM_DOWN) != 0) /* left click */
&& !((x > wh->x) && (x <= wh->x + wh->cols) && (y > wh->y) && (y <= wh->y + wh->lines)))
/* close the dialog by mouse left click out of dialog area */
if (mouse_close_dialog && !h->fullscreen && ((event->buttons & GPM_B_LEFT) != 0)
&& ((event->type & GPM_DOWN) != 0) && !mouse_global_in_widget (event, wh))
{
h->ret_value = B_CANCEL;
dlg_stop (h);
@ -384,24 +381,26 @@ dlg_mouse_event (WDialog * h, Gpm_Event * event)
return mou;
}
item = starting_widget;
first = h->current;
p = first;
do
{
Widget *widget = WIDGET (item->data);
Widget *w = WIDGET (p->data);
item = dlg_widget_prev (h, item);
p = dlg_widget_prev (h, p);
if ((widget->options & W_DISABLED) == 0 && widget->mouse != NULL)
if ((w->options & W_DISABLED) == 0 && w->mouse != NULL)
{
/* put global cursor position to the widget */
int ret;
ret = widget->mouse (event, widget);
ret = w->mouse (event, w);
if (ret != MOU_UNHANDLED)
return ret;
}
}
while (item != starting_widget);
while (p != first);
return MOU_UNHANDLED;
}
@ -527,7 +526,7 @@ dlg_key_event (WDialog * h, int d_key)
/* --------------------------------------------------------------------------------------------- */
static void
frontend_run_dlg (WDialog * h)
frontend_dlg_run (WDialog * h)
{
int d_key;
Gpm_Event event;
@ -751,7 +750,7 @@ dlg_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, v
according to flags (if any of flags require automatic
resizing, like DLG_CENTER, end after that reposition
controls in dialog according to flags of widget) */
dlg_set_size (h, WIDGET (h)->lines, WIDGET (h)->cols);
dlg_set_size (h, w->lines, w->cols);
return MSG_HANDLED;
default:
@ -764,7 +763,7 @@ dlg_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, v
/* --------------------------------------------------------------------------------------------- */
WDialog *
create_dlg (gboolean modal, int y1, int x1, int lines, int cols,
dlg_create (gboolean modal, int y1, int x1, int lines, int cols,
const int *colors, widget_cb_fn callback, mouse_h mouse_handler,
const char *help_ctx, const char *title, dlg_flags_t flags)
{
@ -773,7 +772,7 @@ create_dlg (gboolean modal, int y1, int x1, int lines, int cols,
new_d = g_new0 (WDialog, 1);
w = WIDGET (new_d);
init_widget (w, y1, x1, lines, cols, (callback != NULL) ? callback : dlg_default_callback,
widget_init (w, y1, x1, lines, cols, (callback != NULL) ? callback : dlg_default_callback,
mouse_handler);
widget_want_cursor (w, FALSE);
@ -1006,17 +1005,6 @@ dlg_focus (WDialog * h)
return FALSE;
}
/* --------------------------------------------------------------------------------------------- */
/** Return true if the windows overlap */
int
dlg_overlap (Widget * a, Widget * b)
{
return !((b->x >= a->x + a->cols)
|| (a->x >= b->x + b->cols) || (b->y >= a->y + a->lines) || (a->y >= b->y + b->lines));
}
/* --------------------------------------------------------------------------------------------- */
/** Find the widget with the given callback in the dialog h */
@ -1183,7 +1171,7 @@ dlg_stop (WDialog * h)
/** Init the process */
void
init_dlg (WDialog * h)
dlg_init (WDialog * h)
{
if (top_dlg != NULL && DIALOG (top_dlg->data)->modal)
h->modal = TRUE;
@ -1234,7 +1222,7 @@ dlg_process_event (WDialog * h, int key, Gpm_Event * event)
}
/* --------------------------------------------------------------------------------------------- */
/** Shutdown the run_dlg */
/** Shutdown the dlg_run */
void
dlg_run_done (WDialog * h)
@ -1258,10 +1246,10 @@ dlg_run_done (WDialog * h)
*/
int
run_dlg (WDialog * h)
dlg_run (WDialog * h)
{
init_dlg (h);
frontend_run_dlg (h);
dlg_init (h);
frontend_dlg_run (h);
dlg_run_done (h);
return h->ret_value;
}
@ -1269,7 +1257,7 @@ run_dlg (WDialog * h)
/* --------------------------------------------------------------------------------------------- */
void
destroy_dlg (WDialog * h)
dlg_destroy (WDialog * h)
{
/* if some widgets have history, save all history at one moment here */
dlg_save_history (h);
@ -1340,38 +1328,3 @@ dlg_get_title (const WDialog * h, size_t len)
}
/* --------------------------------------------------------------------------------------------- */
/** Replace widget old_w for widget new_w in the dialog */
void
dlg_replace_widget (Widget * old_w, Widget * new_w)
{
WDialog *h = old_w->owner;
gboolean should_focus = FALSE;
if (h->widgets == NULL)
return;
if (h->current == NULL)
h->current = h->widgets;
if (old_w == h->current->data)
should_focus = TRUE;
new_w->owner = h;
new_w->id = old_w->id;
if (should_focus)
h->current->data = new_w;
else
g_list_find (h->widgets, old_w)->data = new_w;
send_message (old_w, NULL, MSG_DESTROY, 0, NULL);
send_message (new_w, NULL, MSG_INIT, 0, NULL);
if (should_focus)
dlg_select_widget (new_w);
widget_redraw (new_w);
}
/* --------------------------------------------------------------------------------------------- */

Просмотреть файл

@ -29,7 +29,7 @@
/*** enums ***************************************************************************************/
/* Flags for create_dlg */
/* Flags for dlg_create */
typedef enum
{
DLG_NONE = 0, /* No options */
@ -87,7 +87,7 @@ struct WDialog
char *title; /* Title of the dialog */
/* Set and received by the user */
int ret_value; /* Result of run_dlg() */
int ret_value; /* Result of dlg_run() */
/* Internal flags */
dlg_state_t state;
@ -125,7 +125,7 @@ extern const global_keymap_t *dialog_map;
/*** declarations of public functions ************************************************************/
/* Creates a dialog head */
WDialog *create_dlg (gboolean modal, int y1, int x1, int lines, int cols,
WDialog *dlg_create (gboolean modal, int y1, int x1, int lines, int cols,
const int *colors, widget_cb_fn callback, mouse_h mouse_handler,
const char *help_ctx, const char *title, dlg_flags_t flags);
@ -143,9 +143,9 @@ void dlg_set_size (WDialog * h, int lines, int cols);
/* this function allows to set dialog position */
void dlg_set_position (WDialog * h, int y1, int x1, int y2, int x2);
void init_dlg (WDialog * h);
int run_dlg (WDialog * d);
void destroy_dlg (WDialog * h);
void dlg_init (WDialog * h);
int dlg_run (WDialog * d);
void dlg_destroy (WDialog * h);
void dlg_run_done (WDialog * h);
void dlg_save_history (WDialog * h);
@ -163,8 +163,6 @@ cb_ret_t dlg_default_callback (Widget * w, Widget * sender, widget_msg_t msg, in
/* Default paint routine for dialogs */
void dlg_default_repaint (WDialog * h);
void dlg_replace_widget (Widget * old, Widget * new);
int dlg_overlap (Widget * a, Widget * b);
void dlg_erase (WDialog * h);
void dlg_stop (WDialog * h);
@ -184,15 +182,8 @@ void do_refresh (void);
/* Used in load_prompt() */
void update_cursor (WDialog * h);
/* --------------------------------------------------------------------------------------------- */
/*** inline functions ****************************************************************************/
/* Return TRUE if the widget is active, FALSE otherwise */
static inline gboolean
dlg_widget_active (void *w)
{
return (w == WIDGET (w)->owner->current->data);
}
/* --------------------------------------------------------------------------------------------- */
static inline unsigned long
@ -201,4 +192,6 @@ dlg_get_current_widget_id (const struct WDialog *h)
return WIDGET (h->current->data)->id;
}
/* --------------------------------------------------------------------------------------------- */
#endif /* MC__DIALOG_H */

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -138,7 +138,7 @@ gauge_new (int y, int x, int cols, gboolean shown, int max, int current)
g = g_new (WGauge, 1);
w = WIDGET (g);
init_widget (w, y, x, 1, cols, gauge_callback, NULL);
widget_init (w, y, x, 1, cols, gauge_callback, NULL);
widget_want_cursor (w, FALSE);
widget_want_hotkey (w, FALSE);

Просмотреть файл

@ -105,7 +105,7 @@ groupbox_new (int y, int x, int height, int width, const char *title)
g = g_new (WGroupbox, 1);
w = WIDGET (g);
init_widget (w, y, x, height, width, groupbox_callback, NULL);
widget_init (w, y, x, height, width, groupbox_callback, NULL);
widget_want_cursor (w, FALSE);
widget_want_hotkey (w, FALSE);

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2011, 2012
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2011, 2012, 2013
This file is part of the Midnight Commander.
@ -320,7 +320,7 @@ history_show (GList ** history, Widget * widget, int current)
hist_data.maxlen = maxlen;
query_dlg =
create_dlg (TRUE, 0, 0, 4, 4, dialog_colors, history_dlg_callback, NULL,
dlg_create (TRUE, 0, 0, 4, 4, dialog_colors, history_dlg_callback, NULL,
"[History-query]", _("History"), DLG_COMPACT);
query_dlg->data = &hist_data;
@ -357,7 +357,7 @@ history_show (GList ** history, Widget * widget, int current)
listbox_select_entry (query_list, current);
}
if (run_dlg (query_dlg) != B_CANCEL)
if (dlg_run (query_dlg) != B_CANCEL)
{
char *q;
@ -380,7 +380,7 @@ history_show (GList ** history, Widget * widget, int current)
if (WIDGET (query_dlg)->y < widget->y)
z = g_list_reverse (z);
destroy_dlg (query_dlg);
dlg_destroy (query_dlg);
g_list_foreach (*history, (GFunc) g_free, NULL);
g_list_free (*history);

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -128,7 +128,7 @@ hline_new (int y, int x, int width)
l = g_new (WHLine, 1);
w = WIDGET (l);
init_widget (w, y, x, lines, width < 0 ? 1 : width, hline_callback, NULL);
widget_init (w, y, x, lines, width < 0 ? 1 : width, hline_callback, NULL);
l->text = NULL;
l->auto_adjust_cols = (width < 0);
l->transparent = FALSE;

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -1014,7 +1014,7 @@ input_new (int y, int x, const int *input_colors, int width, const char *def_tex
in = g_new (WInput, 1);
w = WIDGET (in);
init_widget (w, y, x, 1, width, input_callback, input_event);
widget_init (w, y, x, 1, width, input_callback, input_event);
w->options |= W_IS_INPUT;
w->set_options = input_set_options_callback;

Просмотреть файл

@ -9,6 +9,7 @@
Written by:
Jakub Jelinek, 1995
Slava Zanko <slavazanko@gmail.com>, 2013
Andrew Borodin <aborodin@vmail.ru>, 2013
This file is part of the Midnight Commander.
@ -1253,14 +1254,14 @@ complete_engine (WInput * in, int what_to_do)
min_end = end;
query_height = h;
query_width = w;
query_dlg = create_dlg (TRUE, y, x, query_height, query_width,
query_dlg = dlg_create (TRUE, y, x, query_height, query_width,
dialog_colors, query_callback, NULL,
"[Completion]", NULL, DLG_COMPACT);
query_list = listbox_new (1, 1, h - 2, w - 2, FALSE, NULL);
add_widget (query_dlg, query_list);
for (p = in->completions + 1; *p; p++)
listbox_add_item (query_list, LISTBOX_APPEND_AT_END, 0, *p, NULL);
run_dlg (query_dlg);
dlg_run (query_dlg);
q = NULL;
if (query_dlg->ret_value == B_ENTER)
{
@ -1271,7 +1272,7 @@ complete_engine (WInput * in, int what_to_do)
if (q || end != min_end)
input_free_completions (in);
i = query_dlg->ret_value; /* B_USER if user wants to start over again */
destroy_dlg (query_dlg);
dlg_destroy (query_dlg);
if (i == B_USER)
return 1;
}

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -142,7 +142,7 @@ label_new (int y, int x, const char *text)
l = g_new (WLabel, 1);
w = WIDGET (l);
init_widget (w, y, x, lines, cols, label_callback, NULL);
widget_init (w, y, x, lines, cols, label_callback, NULL);
l->text = g_strdup (text);
l->auto_adjust_cols = TRUE;

Просмотреть файл

@ -2,7 +2,7 @@
Widget based utility functions.
Copyright (C) 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2008, 2009, 2010, 2011
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -10,7 +10,7 @@
Radek Doulik, 1994, 1995
Jakub Jelinek, 1995
Andrej Borsenkow, 1995
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -112,7 +112,7 @@ create_listbox_window_centered (int center_y, int center_x, int lines, int cols,
listbox = g_new (Listbox, 1);
listbox->dlg =
create_dlg (TRUE, ypos, xpos, lines + space, cols + space,
dlg_create (TRUE, ypos, xpos, lines + space, cols + space,
listbox_colors, NULL, NULL, help, title, DLG_TRYUP);
listbox->list = listbox_new (2, 2, lines, cols, FALSE, NULL);
@ -137,9 +137,9 @@ run_listbox (Listbox * l)
{
int val = -1;
if (run_dlg (l->dlg) != B_CANCEL)
if (dlg_run (l->dlg) != B_CANCEL)
val = l->list->pos;
destroy_dlg (l->dlg);
dlg_destroy (l->dlg);
g_free (l);
return val;
}

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -527,7 +527,7 @@ listbox_new (int y, int x, int height, int width, gboolean deletable, lcback_fn
l = g_new (WListbox, 1);
w = WIDGET (l);
init_widget (w, y, x, height, width, listbox_callback, listbox_event);
widget_init (w, y, x, height, width, listbox_callback, listbox_event);
l->list = NULL;
l->top = l->pos = 0;

Просмотреть файл

@ -843,7 +843,7 @@ menubar_new (int y, int x, int cols, GList * menu)
menubar = g_new0 (WMenuBar, 1);
w = WIDGET (menubar);
init_widget (w, y, x, 1, cols, menubar_callback, menubar_event);
widget_init (w, y, x, 1, cols, menubar_callback, menubar_event);
menubar->is_visible = TRUE; /* by default */
widget_want_cursor (w, FALSE);

Просмотреть файл

@ -2,7 +2,7 @@
Widget based utility functions.
Copyright (C) 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
The Free Software Foundation, Inc.
Authors:
@ -10,7 +10,7 @@
Radek Doulik, 1994, 1995
Jakub Jelinek, 1995
Andrej Borsenkow, 1995
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2011, 2012
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2011, 2012, 2013
This file is part of the Midnight Commander.
@ -402,11 +402,11 @@ quick_dialog_skip (quick_dialog_t * quick_dlg, int nskip)
width2 = (quick_dlg->cols - 7) / 2;
if (quick_dlg->x == -1 || quick_dlg->y == -1)
dd = create_dlg (TRUE, 0, 0, y + 3, quick_dlg->cols,
dd = dlg_create (TRUE, 0, 0, y + 3, quick_dlg->cols,
dialog_colors, quick_dlg->callback, quick_dlg->mouse, quick_dlg->help,
quick_dlg->title, DLG_CENTER | DLG_TRYUP);
else
dd = create_dlg (TRUE, quick_dlg->y, quick_dlg->x, y + 3, quick_dlg->cols,
dd = dlg_create (TRUE, quick_dlg->y, quick_dlg->x, y + 3, quick_dlg->cols,
dialog_colors, quick_dlg->callback, quick_dlg->mouse, quick_dlg->help,
quick_dlg->title, DLG_NONE);
@ -568,7 +568,7 @@ quick_dialog_skip (quick_dialog_t * quick_dlg, int nskip)
dd->current = dd->widgets;
}
return_val = run_dlg (dd);
return_val = dlg_run (dd);
/* Get the data if we found something interesting */
if (return_val != B_CANCEL)
@ -601,7 +601,7 @@ quick_dialog_skip (quick_dialog_t * quick_dlg, int nskip)
}
}
destroy_dlg (dd);
dlg_destroy (dd);
/* destroy input labels created before */
for (i = 0; i < widgets->len; i++)

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2013
This file is part of the Midnight Commander.
@ -196,7 +196,7 @@ radio_new (int y, int x, int count, const char **texts)
wmax = max (width, wmax);
}
init_widget (w, y, x, count, 4 + wmax, radio_callback, radio_event);
widget_init (w, y, x, count, 4 + wmax, radio_callback, radio_event);
/* 4 is width of "(*) " */
r->state = 1;
r->pos = 0;

Просмотреть файл

@ -2,7 +2,7 @@
Widgets for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2009, 2010, 2011
2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012, 2013
The Free Software Foundation, Inc.
Authors:
@ -11,7 +11,7 @@
Jakub Jelinek, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2011, 2012, 2013
This file is part of the Midnight Commander.
@ -138,7 +138,7 @@ hotkey_draw (Widget * w, const hotkey_t hotkey, gboolean focused)
/* --------------------------------------------------------------------------------------------- */
void
init_widget (Widget * w, int y, int x, int lines, int cols,
widget_init (Widget * w, int y, int x, int lines, int cols,
widget_cb_fn callback, mouse_h mouse_handler)
{
w->x = x;
@ -266,6 +266,20 @@ widget_erase (Widget * w)
tty_fill_region (w->y, w->x, w->lines, w->cols, ' ');
}
/* --------------------------------------------------------------------------------------------- */
/**
* Check whether widget is active or not.
* @param w the widget
*
* @return TRUE if the widget is active, FALSE otherwise
*/
gboolean
widget_is_active (const void *w)
{
return (w == WIDGET (w)->owner->current->data);
}
/* --------------------------------------------------------------------------------------------- */
void
@ -281,8 +295,64 @@ widget_redraw (Widget * w)
}
/* --------------------------------------------------------------------------------------------- */
/**
* Replace widget in the dialog.
*
* @param old_w old widget that need to be replaced
* @param new_w new widget that will replace @old_w
*/
void
widget_replace (Widget * old_w, Widget * new_w)
{
WDialog *h = old_w->owner;
gboolean should_focus = FALSE;
if (h->widgets == NULL)
return;
if (h->current == NULL)
h->current = h->widgets;
if (old_w == h->current->data)
should_focus = TRUE;
new_w->owner = h;
new_w->id = old_w->id;
if (should_focus)
h->current->data = new_w;
else
g_list_find (h->widgets, old_w)->data = new_w;
send_message (old_w, NULL, MSG_DESTROY, 0, NULL);
send_message (new_w, NULL, MSG_INIT, 0, NULL);
if (should_focus)
dlg_select_widget (new_w);
widget_redraw (new_w);
}
/* --------------------------------------------------------------------------------------------- */
/**
* Check whether two widgets are overlapped or not.
* @param a 1st widget
* @param b 2nd widget
*
* @return TRUE if widgets are overlapped, FALSE otherwise.
*/
gboolean
widget_overlapped (const Widget * a, const Widget * b)
{
return !((b->x >= a->x + a->cols)
|| (a->x >= b->x + b->cols) || (b->y >= a->y + a->lines) || (a->y >= b->y + b->lines));
}
/* --------------------------------------------------------------------------------------------- */
/* get mouse pointer location within widget */
Gpm_Event
mouse_get_local (const Gpm_Event * global, const Widget * w)
{

Просмотреть файл

@ -132,7 +132,7 @@ int hotkey_width (const hotkey_t hotkey);
void hotkey_draw (Widget * w, const hotkey_t hotkey, gboolean focused);
/* widget initialization */
void init_widget (Widget * w, int y, int x, int lines, int cols,
void widget_init (Widget * w, int y, int x, int lines, int cols,
widget_cb_fn callback, mouse_h mouse_handler);
/* Default callback for widgets */
cb_ret_t widget_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm,
@ -144,12 +144,17 @@ void widget_set_size (Widget * widget, int y, int x, int lines, int cols);
void widget_selectcolor (Widget * w, gboolean focused, gboolean hotkey);
void widget_redraw (Widget * w);
void widget_erase (Widget * w);
gboolean widget_is_active (const void *w);
gboolean widget_overlapped (const Widget * a, const Widget * b);
void widget_replace (Widget * old, Widget * new);
/* get mouse pointer location within widget */
Gpm_Event mouse_get_local (const Gpm_Event * global, const Widget * w);
gboolean mouse_global_in_widget (const Gpm_Event * event, const Widget * w);
/* --------------------------------------------------------------------------------------------- */
/*** inline functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static inline cb_ret_t
send_message (void *w, void *sender, widget_msg_t msg, int parm, void *data)
@ -157,4 +162,6 @@ send_message (void *w, void *sender, widget_msg_t msg, int parm, void *data)
return WIDGET (w)->callback (WIDGET (w), WIDGET (sender), msg, parm, data);
}
/* --------------------------------------------------------------------------------------------- */
#endif /* MC__WIDGET_INTERNAL_H */

Просмотреть файл

@ -2,7 +2,7 @@
Widget based utility functions.
Copyright (C) 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
The Free Software Foundation, Inc.
Authors:
@ -10,7 +10,7 @@
Radek Doulik, 1994, 1995
Jakub Jelinek, 1995
Andrej Borsenkow, 1995
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2012
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2012, 2013
This file is part of the Midnight Commander.
@ -129,7 +129,7 @@ do_create_message (int flags, const char *title, const char *text)
/* do resize before initing and running */
send_message (d, NULL, MSG_RESIZE, 0, NULL);
init_dlg (d);
dlg_init (d);
g_free (p);
return d;
@ -149,7 +149,7 @@ fg_message (int flags, const char *title, const char *text)
d = do_create_message (flags, title, text);
tty_getch ();
dlg_run_done (d);
destroy_dlg (d);
dlg_destroy (d);
}
@ -306,7 +306,7 @@ query_dialog (const char *header, const char *text, int flags, int count, ...)
/* prepare dialog */
query_dlg =
create_dlg (TRUE, 0, 0, lines, cols, query_colors, query_default_callback, NULL,
dlg_create (TRUE, 0, 0, lines, cols, query_colors, query_default_callback, NULL,
"[QueryBox]", header, dlg_flags);
if (count > 0)
@ -342,7 +342,7 @@ query_dialog (const char *header, const char *text, int flags, int count, ...)
dlg_select_widget (defbutton);
/* run dialog and make result */
switch (run_dlg (query_dlg))
switch (dlg_run (query_dlg))
{
case B_CANCEL:
break;
@ -351,7 +351,7 @@ query_dialog (const char *header, const char *text, int flags, int count, ...)
}
/* free used memory */
destroy_dlg (query_dlg);
dlg_destroy (query_dlg);
}
else
{
@ -375,7 +375,7 @@ query_set_sel (int new_sel)
/* --------------------------------------------------------------------------------------------- */
/**
* Create message dialog. The caller must call dlg_run_done() and
* destroy_dlg() to dismiss it. Not safe to call from background.
* dlg_destroy() to dismiss it. Not safe to call from background.
*/
struct WDialog *

Просмотреть файл

@ -65,7 +65,7 @@ shell_patterns=0
= f \.c$ & t r
+ f \.c$ & t r & ! t t
с Compile and link current .c file
c Compile and link current .c file
make `basename %f .c` 2>/dev/null || cc -O -o `basename %f .c` %f
+ t r & ! t t

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Azerbaijani (http://www.transifex.com/projects/p/mc/language/"
@ -3961,6 +3961,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4025,17 +4036,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4050,7 +4050,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"%s arxivi açıla bilmir\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Павал Шаламіцкі <yehekim@gmail.com>\n"
"Language-Team: Belarusian (http://www.transifex.com/projects/p/mc/language/"
@ -4170,6 +4170,19 @@ msgstr "Памылка «Ext2lib»"
msgid "Invalid value"
msgstr "Хібнае значэньне"
msgid "File was modified. Save with exit?"
msgstr "Файл зьмяніўся. Ці захаваць і выйсьці?"
msgid "&Cancel quit"
msgstr "&Не выходзіць"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"«Міднайт Камандэр» заканчвае працаваць.\n"
"Ці захаваць зьменены файл?"
msgid "Cannot spawn child process"
msgstr "Немагчыма нарадзіць даччын працэс"
@ -4239,19 +4252,6 @@ msgstr ""
"Немагчыма захаваць файл:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Файл зьмяніўся. Ці захаваць і выйсьці?"
msgid "&Cancel quit"
msgstr "&Не выходзіць"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"«Міднайт Камандэр» заканчвае працаваць.\n"
"Ці захаваць зьменены файл?"
msgid "View: "
msgstr "Праглядаць: "
@ -4268,7 +4268,7 @@ msgstr "Немагчыма прагледзець: незвычайны файл
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Немагчыма адчыніць «%s»\n"

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Yasen Pramatarov <yasen@lindeas.com>\n"
"Language-Team: Bulgarian (http://www.transifex.com/projects/p/mc/language/"
@ -3975,6 +3975,17 @@ msgstr "Грешка в Ext2lib"
msgid "Invalid value"
msgstr "Неправилна стойност"
msgid "File was modified. Save with exit?"
msgstr "Файлът е променен. Да се запази ли при излизане?"
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4039,17 +4050,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr "Файлът е променен. Да се запази ли при излизане?"
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4064,7 +4064,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Не може да се отвори архива %s\n"

Просмотреть файл

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Daniel <danicases@gmail.com>\n"
"Language-Team: Catalan (http://www.transifex.com/projects/p/mc/language/"
@ -3988,6 +3988,17 @@ msgstr ""
msgid "Invalid value"
msgstr "Valor invàlid"
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4054,17 +4065,6 @@ msgstr ""
"No es pot desar el fitxer :\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr "Visualitza:"
@ -4081,7 +4081,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"No es pot obrir \"%s\"\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Czech (http://www.transifex.com/projects/p/mc/language/cs/)\n"
@ -4107,6 +4107,19 @@ msgstr "Chyba ext2lib"
msgid "Invalid value"
msgstr "Neplatná hodnota"
msgid "File was modified. Save with exit?"
msgstr "Soubor byl změněn, uložit při odchodu?"
msgid "&Cancel quit"
msgstr "&Zrušit odchod"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander se ukončuje.\n"
"Uložit upravený soubor?"
msgid "Cannot spawn child process"
msgstr "Nelze vytvořit proces potomka"
@ -4176,19 +4189,6 @@ msgstr ""
"Nemohu uložit soubor:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Soubor byl změněn, uložit při odchodu?"
msgid "&Cancel quit"
msgstr "&Zrušit odchod"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander se ukončuje.\n"
"Uložit upravený soubor?"
msgid "View: "
msgstr "Prohlížet: "
@ -4205,7 +4205,7 @@ msgstr "Nelze prohlížet: není to normální soubor"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Nelze otevřít „%s“\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Danish (http://www.transifex.com/projects/p/mc/language/da/)\n"
@ -4103,6 +4103,19 @@ msgstr "Ext2lib-fejl"
msgid "Invalid value"
msgstr "Ugyldig værdi"
msgid "File was modified. Save with exit?"
msgstr "Fil blev ændret. Gem under afslutning?"
msgid "&Cancel quit"
msgstr "&Afbryd afslut"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander er ved at lukke ned.\n"
"Gem ændret fil?"
msgid "Cannot spawn child process"
msgstr "Kan ikke spawn underproces"
@ -4172,19 +4185,6 @@ msgstr ""
"Kan ikke gemme fil:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Fil blev ændret. Gem under afslutning?"
msgid "&Cancel quit"
msgstr "&Afbryd afslut"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander er ved at lukke ned.\n"
"Gem ændret fil?"
msgid "View: "
msgstr "Vis: "
@ -4201,7 +4201,7 @@ msgstr "Kan ikke vise: Ikke en regulær fil"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Kan ikke åbne »%s«\n"

Просмотреть файл

@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-17 11:42+0000\n"
"Last-Translator: Fabian Affolter <fab@fedoraproject.org>\n"
"Language-Team: German (http://www.transifex.com/projects/p/mc/language/de/)\n"
@ -4129,6 +4129,19 @@ msgstr "Ext2lib-Fehler"
msgid "Invalid value"
msgstr "Ungültiger Wert"
msgid "File was modified. Save with exit?"
msgstr "Datei wurde geändert. Beim Beenden speichern?"
msgid "&Cancel quit"
msgstr "Doch nicht beenden"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander wird beendet.\n"
"Modifizierte Datei speichern?"
msgid "Cannot spawn child process"
msgstr "Kann Kindprozess nicht hervorbringen"
@ -4198,19 +4211,6 @@ msgstr ""
"Kann Datei nicht speichern:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Datei wurde geändert. Beim Beenden speichern?"
msgid "&Cancel quit"
msgstr "Doch nicht beenden"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander wird beendet.\n"
"Modifizierte Datei speichern?"
msgid "View: "
msgstr "Ansicht: "
@ -4227,7 +4227,7 @@ msgstr "Kann es nicht anzeigen: Keine normale Datei"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Kann \"%s\" nicht öffnen\n"

Просмотреть файл

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: German (Switzerland) (http://www.transifex.com/projects/p/mc/"
@ -3925,6 +3925,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3989,17 +4000,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4014,7 +4014,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Panos Bouklis <panos@echidna-band.com>\n"
"Language-Team: Greek (http://www.transifex.com/projects/p/mc/language/el/)\n"
@ -4062,6 +4062,19 @@ msgstr "Σφάλμα ext2lib"
msgid "Invalid value"
msgstr "Μη έγκυρη τιμή"
msgid "File was modified. Save with exit?"
msgstr "Το αρχείο τροποποιήθηκε. Αποθήκευση κατά την έξοδο;"
msgid "&Cancel quit"
msgstr "&Ακύρωση εξόδου"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Το Midnight Commander τερματίζεται.\n"
"Αποθήκευση τροποποιημένου αρχείου;"
msgid "Cannot spawn child process"
msgstr ""
@ -4131,19 +4144,6 @@ msgstr ""
"Αδυναμία αποθήκευσης αρχείου:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Το αρχείο τροποποιήθηκε. Αποθήκευση κατά την έξοδο;"
msgid "&Cancel quit"
msgstr "&Ακύρωση εξόδου"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Το Midnight Commander τερματίζεται.\n"
"Αποθήκευση τροποποιημένου αρχείου;"
msgid "View: "
msgstr "Προβολή:"
@ -4160,7 +4160,7 @@ msgstr "Αδυναμία προβολής: ασυνήθιστο αρχείο"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Αδυναμία ανοίγματος \"%s\"\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 13:34+0000\n"
"Last-Translator: Keith Bowes <zooplah@gmail.com>\n"
"Language-Team: Esperanto (http://www.transifex.com/projects/p/mc/language/"
@ -4173,6 +4173,19 @@ msgstr "Ext2lib: eraro"
msgid "Invalid value"
msgstr "Nevalida valoro"
msgid "File was modified. Save with exit?"
msgstr "Dosiero estis modifita. Ĉu konservi dum eliro?"
msgid "&Cancel quit"
msgstr "Ne &eliri"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander estas elirinta.\n"
"Ĉu konservi modifitan dosieron?"
msgid "Cannot spawn child process"
msgstr "Ne eblas krei idan procezon"
@ -4242,19 +4255,6 @@ msgstr ""
"Ne eblas konservi dosieron:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Dosiero estis modifita. Ĉu konservi dum eliro?"
msgid "&Cancel quit"
msgstr "Ne &eliri"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander estas elirinta.\n"
"Ĉu konservi modifitan dosieron?"
msgid "View: "
msgstr "Vidi: "
@ -4271,7 +4271,7 @@ msgstr "Ne eblas vidi: ne normala dosiero"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Ne eblas malfermi je \"%s\"\n"

Просмотреть файл

@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: David Martin <david.martin@telefonica.net>\n"
"Language-Team: Spanish (http://www.transifex.com/projects/p/mc/language/"
@ -4180,6 +4180,19 @@ msgstr "error Ext2lib"
msgid "Invalid value"
msgstr "Posición incorrecta"
msgid "File was modified. Save with exit?"
msgstr "El archivo fue modificado. ¿Desea guardarlo al salir?"
msgid "&Cancel quit"
msgstr "&Cancelar salida"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Saliendo de Midnight Commander.\n"
"¿Desea guardar el archivo modificado?"
msgid "Cannot spawn child process"
msgstr "Imposible ejecutar el proceso hijo"
@ -4249,19 +4262,6 @@ msgstr ""
"Imposible guardar el archivo:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "El archivo fue modificado. ¿Desea guardarlo al salir?"
msgid "&Cancel quit"
msgstr "&Cancelar salida"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Saliendo de Midnight Commander.\n"
"¿Desea guardar el archivo modificado?"
msgid "View: "
msgstr "Ver:"
@ -4278,7 +4278,7 @@ msgstr "Imposible ver: no es un archivo ordinario"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Imposible abrir «%s»\n"

Просмотреть файл

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2011-07-11 17:34+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3923,6 +3923,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3987,17 +3998,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4012,7 +4012,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Basque (http://www.transifex.com/projects/p/mc/language/eu/)\n"
@ -4141,6 +4141,19 @@ msgstr "Ext2lib akatsa"
msgid "Invalid value"
msgstr "Balio baliogabea"
msgid "File was modified. Save with exit?"
msgstr "Fitxategia aldatu da. Gorde irtetzerakoan?"
msgid "&Cancel quit"
msgstr "Irteera bertan behera &utzi"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander itzaltzen ari da.\n"
"Gorde aldatutako fitxategia?"
msgid "Cannot spawn child process"
msgstr "Ezin sortu ume prozesua"
@ -4210,19 +4223,6 @@ msgstr ""
"Fitxategia ezin gorde:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Fitxategia aldatu da. Gorde irtetzerakoan?"
msgid "&Cancel quit"
msgstr "Irteera bertan behera &utzi"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander itzaltzen ari da.\n"
"Gorde aldatutako fitxategia?"
msgid "View: "
msgstr "Ikusi:"
@ -4239,7 +4239,7 @@ msgstr "Ezin ikusi: ez da fitxategi arrunta"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"\"%s\" ezin ireki\n"

Просмотреть файл

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Sina Saharkhiz <sinas1991@gmail.com>\n"
"Language-Team: Persian (http://www.transifex.com/projects/p/mc/language/"
@ -3926,6 +3926,17 @@ msgstr ""
msgid "Invalid value"
msgstr "مقدار نامعتبر"
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3990,17 +4001,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4015,7 +4015,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Finnish (http://www.transifex.com/projects/p/mc/language/"
@ -3926,6 +3926,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3990,17 +4001,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4015,7 +4015,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3939,6 +3939,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4003,17 +4014,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4028,7 +4028,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Stéphane Aulery <lkppo@free.fr>\n"
"Language-Team: French (http://www.transifex.com/projects/p/mc/language/fr/)\n"
@ -4025,6 +4025,17 @@ msgstr " erreur Ext2lib"
msgid "Invalid value"
msgstr "valeur invalide "
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "&Annuler quitter"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4091,17 +4102,6 @@ msgstr ""
"Impossible d'enregistrer le fichier :\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "&Annuler quitter"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr "Vue : "
@ -4118,7 +4118,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Impossible d'ouvrir \"%s\"\n"

Просмотреть файл

@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-26 10:28+0000\n"
"Last-Translator: mbouzada <mbouzada@gmail.com>\n"
"Language-Team: Galician (http://www.transifex.com/projects/p/mc/language/"
@ -4183,6 +4183,19 @@ msgstr "Produciuse un erro de ext2lib"
msgid "Invalid value"
msgstr "Valor incorrecto"
msgid "File was modified. Save with exit?"
msgstr "O ficheiro foi modificado. Desexa gardalo ao saír?"
msgid "&Cancel quit"
msgstr "&Cancelar saída"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Saíndo de Midnight Commander.\n"
"Gardar o ficheiro modificado?"
msgid "Cannot spawn child process"
msgstr "Non é posíbel executar o proceso fillo"
@ -4252,19 +4265,6 @@ msgstr ""
"Non é posíbel gardar o ficheiro:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "O ficheiro foi modificado. Desexa gardalo ao saír?"
msgid "&Cancel quit"
msgstr "&Cancelar saída"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Saíndo de Midnight Commander.\n"
"Gardar o ficheiro modificado?"
msgid "View: "
msgstr "Vista: "
@ -4281,7 +4281,7 @@ msgstr "Non é posíbel ver: non é un ficheiro regular"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Non é posíbel abrir «%s»\n"

Просмотреть файл

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Croatian (http://www.transifex.com/projects/p/mc/language/"
@ -3931,6 +3931,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3995,17 +4006,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4020,7 +4020,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Rezső Páder <rezso@rezso.net>\n"
"Language-Team: Hungarian (http://www.transifex.com/projects/p/mc/language/"
@ -4177,6 +4177,19 @@ msgstr "Ext2lib-hiba"
msgid "Invalid value"
msgstr "Érvénytelen érték"
msgid "File was modified. Save with exit?"
msgstr "A fájl módosult. Menti kilépéskor?"
msgid "&Cancel quit"
msgstr "&Mégsem lép ki"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"A Midnight Commander kilép.\n"
"Módosított fájl mentése?"
msgid "Cannot spawn child process"
msgstr "Nem sikerült programot indítani"
@ -4246,19 +4259,6 @@ msgstr ""
"Az fájl nem menthető:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "A fájl módosult. Menti kilépéskor?"
msgid "&Cancel quit"
msgstr "&Mégsem lép ki"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"A Midnight Commander kilép.\n"
"Módosított fájl mentése?"
msgid "View: "
msgstr "Megnéz: "
@ -4275,7 +4275,7 @@ msgstr "Nem lehet megjeleníteni - speciális fájl."
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"A(z) \"%s\" fájl nem megnyitható \n"

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Martijn Dekker <mcdutchie@hotmail.com>\n"
"Language-Team: Interlingua (http://www.transifex.com/projects/p/mc/language/"
@ -3979,6 +3979,19 @@ msgstr "error de Ext2lib"
msgid "Invalid value"
msgstr "Valor invalide"
msgid "File was modified. Save with exit?"
msgstr "Le file ha essite modificate. Salveguardar ante exir?"
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander essera ora claudite.\n"
"Salveguardar le file modificate?"
msgid "Cannot spawn child process"
msgstr ""
@ -4043,19 +4056,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr "Le file ha essite modificate. Salveguardar ante exir?"
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander essera ora claudite.\n"
"Salveguardar le file modificate?"
msgid "View: "
msgstr "Vide:"
@ -4070,7 +4070,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Impossibile aperir le archivo %s\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Andika Triwidada <andika@gmail.com>\n"
"Language-Team: Indonesian (http://www.transifex.com/projects/p/mc/language/"
@ -3934,6 +3934,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3998,17 +4009,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4023,7 +4023,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Tak bisa membuka arsip cpio\n"

Просмотреть файл

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-05-03 00:01+0200\n"
"Last-Translator: Marco Ciampa <ciampix@libero.it>\n"
"Language-Team: Italian (http://www.transifex.com/projects/p/mc/language/"
@ -4178,6 +4178,19 @@ msgstr "Errore ext2lib"
msgid "Invalid value"
msgstr "Valore non valido"
msgid "File was modified. Save with exit?"
msgstr "Il file è stato modificato. Lo salvo uscendo?"
msgid "&Cancel quit"
msgstr "Annulla l'us&cita"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander si sta chiudendo.\n"
"Salvare il file modificato?"
msgid "Cannot spawn child process"
msgstr "Impossibile spawn del processo figlio"
@ -4247,19 +4260,6 @@ msgstr ""
"Impossibile salvare il file:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Il file è stato modificato. Lo salvo uscendo?"
msgid "&Cancel quit"
msgstr "Annulla l'us&cita"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander si sta chiudendo.\n"
"Salvare il file modificato?"
msgid "View: "
msgstr "Mostra: "
@ -4276,7 +4276,7 @@ msgstr "Visualizzazione impossibile: non è un semplice file"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Impossibile aprire il file \"%s\"\n"

Просмотреть файл

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2011-12-07 11:21+0000\n"
"Last-Translator: slavazanko <slavazanko@gmail.com>\n"
"Language-Team: Italian (Italy) (http://www.transifex.net/projects/p/mc/team/"
@ -3925,6 +3925,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3989,17 +4000,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4014,7 +4014,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Japanese (http://www.transifex.com/projects/p/mc/language/"
@ -3974,6 +3974,17 @@ msgstr ""
msgid "Invalid value"
msgstr "不正な値"
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4040,17 +4051,6 @@ msgstr ""
"ファイルの保存ができません:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4067,7 +4067,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"「%s」を開けません\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: George Machitidze <giomac@gmail.com>\n"
"Language-Team: Georgian (http://www.transifex.com/projects/p/mc/language/"
@ -3921,6 +3921,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3985,17 +3996,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4010,7 +4010,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Korean (http://www.transifex.com/projects/p/mc/language/ko/)\n"
@ -3968,6 +3968,17 @@ msgstr ""
msgid "Invalid value"
msgstr "잘못된 값"
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "끝내기 취소(&C)"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4032,17 +4043,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "끝내기 취소(&C)"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4057,7 +4057,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"%s 아카이브를 열 수 없습니다\n"

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Lithuanian (http://www.transifex.com/projects/p/mc/language/"
@ -3986,6 +3986,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "&Neišeiti"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4050,17 +4061,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "&Neišeiti"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4075,7 +4075,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Nepavyko atverti „%s“ archyvo\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3974,6 +3974,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4038,17 +4049,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4063,7 +4063,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Nevar atvērt %s arhīvu\n"

448
po/mc.pot

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3966,6 +3966,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4030,17 +4041,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4055,7 +4055,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
" %s-архивыг нээж чадсангүй\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3965,6 +3965,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4029,17 +4040,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4054,7 +4054,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Kunne ikke åpne %s arkiv\n"

Просмотреть файл

@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-31 16:08+0000\n"
"Last-Translator: Richard E. van der Luit <nippur@fedoraproject.org>\n"
"Language-Team: Dutch (http://www.transifex.com/projects/p/mc/language/nl/)\n"
@ -4169,6 +4169,19 @@ msgstr "Ext2lib fout"
msgid "Invalid value"
msgstr "Ongeldige waarde"
msgid "File was modified. Save with exit?"
msgstr "Bestand is gewijzigd. Opslaan met afsluiten?"
msgid "&Cancel quit"
msgstr "&Annuleer afsluiten"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander wordt afgesloten. \n"
"Gewijzigd bestand opslaan??"
msgid "Cannot spawn child process"
msgstr "Kan geen kindproces opstarten"
@ -4234,19 +4247,6 @@ msgid ""
"%s"
msgstr "Kon bestand %s niet opslaan"
msgid "File was modified. Save with exit?"
msgstr "Bestand is gewijzigd. Opslaan met afsluiten?"
msgid "&Cancel quit"
msgstr "&Annuleer afsluiten"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander wordt afgesloten. \n"
"Gewijzigd bestand opslaan??"
msgid "View: "
msgstr "bekijk :"
@ -4263,7 +4263,7 @@ msgstr "Kan het niet bekijken: geen normaal bestand"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Kan bestand %s niet openen\n"

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 18:27+0000\n"
"Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
"Language-Team: Polish (http://www.transifex.com/projects/p/mc/language/pl/)\n"
@ -4185,6 +4185,19 @@ msgstr "Błąd ext2lib"
msgid "Invalid value"
msgstr "Nieprawidłowa wartość"
msgid "File was modified. Save with exit?"
msgstr "Plik został zmodyfikowany. Zapisać przed zakończeniem?"
msgid "&Cancel quit"
msgstr "N&ie zamykaj"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Program Midnight Commander kończy działanie.\n"
"Zapisać zmodyfikowany plik?"
msgid "Cannot spawn child process"
msgstr "Nie można utworzyć procesu potomnego"
@ -4254,19 +4267,6 @@ msgstr ""
"Nie można zapisać pliku:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Plik został zmodyfikowany. Zapisać przed zakończeniem?"
msgid "&Cancel quit"
msgstr "N&ie zamykaj"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Program Midnight Commander kończy działanie.\n"
"Zapisać zmodyfikowany plik?"
msgid "View: "
msgstr "Podgląd: "
@ -4283,7 +4283,7 @@ msgstr "Nie można wyświetlić: nie jest zwykłym plikiem"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Nie można otworzyć \"%s\"\n"

Просмотреть файл

@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Gilberto J <gmj125@gmail.com>\n"
"Language-Team: Portuguese (http://www.transifex.com/projects/p/mc/language/"
@ -4177,6 +4177,19 @@ msgstr "Erro de Ext2lib"
msgid "Invalid value"
msgstr "Valor inválido"
msgid "File was modified. Save with exit?"
msgstr "Ficheiro foi modificado. Guardar ao sair?"
msgid "&Cancel quit"
msgstr "&Cancelar saída"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander está a terminar.\n"
"Guardar ficheiro modificado?"
msgid "Cannot spawn child process"
msgstr "Não é possível gerar processo child"
@ -4246,19 +4259,6 @@ msgstr ""
"Não é possível guardar ficheiro:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Ficheiro foi modificado. Guardar ao sair?"
msgid "&Cancel quit"
msgstr "&Cancelar saída"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander está a terminar.\n"
"Guardar ficheiro modificado?"
msgid "View: "
msgstr "Ver: "
@ -4275,7 +4275,7 @@ msgstr "Não é possível visualizar: não é um ficheiro regular"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Não é possível abrir \"%s\"\n"

Просмотреть файл

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Enrico Nicoletto <enrico.BR@gmx.co.uk>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/mc/"
@ -4089,6 +4089,19 @@ msgstr "erro de Ext2lib"
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr "Arquivo foi modificado. Salvar e sair?"
msgid "&Cancel quit"
msgstr "&Cancelar saida"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander está sendo finalizado.\n"
"Salvar arquivo modificado?"
msgid "Cannot spawn child process"
msgstr ""
@ -4153,19 +4166,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr "Arquivo foi modificado. Salvar e sair?"
msgid "&Cancel quit"
msgstr "&Cancelar saida"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander está sendo finalizado.\n"
"Salvar arquivo modificado?"
msgid "View: "
msgstr ""
@ -4180,7 +4180,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Impossível abrir arquivo %s\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Romanian (http://www.transifex.com/projects/p/mc/language/"
@ -3971,6 +3971,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4035,17 +4046,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4060,7 +4060,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
" Nu pot deschide arhiva %s\n"

Просмотреть файл

@ -18,15 +18,17 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-06-16 08:43+0000\n"
"Last-Translator: Andrew Borodin <aborodin@vmail.ru>\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/mc/language/ru/)\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/mc/language/"
"ru/)\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
msgid "Warning: cannot load codepages list"
msgstr "Внимание: невозможно загрузить список кодировок"
@ -115,7 +117,8 @@ msgid "Not implemented yet"
msgstr "Пока не реализовано"
msgid "Num of replace tokens not equal to num of found tokens"
msgstr "Количество шаблонных полей не соответствует количеству полей для замены"
msgstr ""
"Количество шаблонных полей не соответствует количеству полей для замены"
#, c-format
msgid "Invalid token number %d"
@ -613,7 +616,8 @@ msgid "Load definitions of key bindings from specified file"
msgstr "Чтение определений привязок клавиш из указанного файла"
msgid "Don't load definitions of key bindings from file, use defaults"
msgstr "Не загружать привязки клавиш из файла, использовать привязки по умолчанию"
msgstr ""
"Не загружать привязки клавиш из файла, использовать привязки по умолчанию"
msgid "Requests to run in black and white"
msgstr "Принудительно установить черно-белый режим"
@ -650,22 +654,26 @@ msgid ""
msgstr ""
"--colors КЛЮЧЕВОЕ_СЛОВО={ТЕКСТ},{ФОН},{АТРИБУТ}:КЛЮЧЕВОЕ_СЛОВО2=...\n"
"\n"
"{ТЕКСТ}, {ФОН} и {АТРИБУТ} можно опустить, чтобы использовать значения по умолчанию\n"
"{ТЕКСТ}, {ФОН} и {АТРИБУТ} можно опустить, чтобы использовать значения по "
"умолчанию\n"
"\n"
"Ключевые слова:\n"
" Общие: errors, disabled, reverse, gauge, header\n"
" input, inputmark, inputunchanged, commandlinemark\n"
" bbarhotkey, bbarbutton, statusbar\n"
" Отображение файлов: normal, selected, marked, markselect\n"
" Диалоги: dnormal, dfocus, dhotnormal, dhotfocus, errdhotnormal,\n"
" Диалоги: dnormal, dfocus, dhotnormal, dhotfocus, "
"errdhotnormal,\n"
" errdhotfocus\n"
" Меню: menunormal, menuhot, menusel, menuhotsel, menuinactive\n"
" Меню: menunormal, menuhot, menusel, menuhotsel, "
"menuinactive\n"
" Всплывающие меню: pmenunormal, pmenusel, pmenutitle\n"
" Редактор: editnormal, editbold, editmarked, editwhitespace,\n"
" editlinestate, editbg, editframe, editframeactive\n"
" editframedrag\n"
" Просмотрщик: viewbold, viewunderline, viewselected\n"
" Справка: helpnormal, helpitalic, helpbold, helplink, helpslink\n"
" Справка: helpnormal, helpitalic, helpbold, helplink, "
"helpslink\n"
#. TRANSLATORS: don't translate color names and attributes
msgid ""
@ -689,7 +697,8 @@ msgstr ""
" от color16 до color255 или от rgb000 до rgb555 и от gray0 до gray23\n"
"\n"
"Атрибуты:\n"
" bold, underline, reverse, blink; несколько атрибутов объединяются знаком \"+\"\n"
" bold, underline, reverse, blink; несколько атрибутов объединяются знаком "
"\"+\"\n"
msgid "Color options"
msgstr "Цветовые настройки"
@ -2239,7 +2248,9 @@ msgid ""
"The format of the %smc.ext file has changed with version 3.0. It seems that "
"the installation failed. Please fetch a fresh copy from the Midnight "
"Commander package."
msgstr "Формат %smc.ext изменён с версии 3.0. Возможно, произошёл сбой при установке. Пожалуйста, возьмите свежую копию из пакета Midnight Commander."
msgstr ""
"Формат %smc.ext изменён с версии 3.0. Возможно, произошёл сбой при "
"установке. Пожалуйста, возьмите свежую копию из пакета Midnight Commander."
#, c-format
msgid "%s file error"
@ -2249,7 +2260,9 @@ msgstr "ошибка файла %s"
msgid ""
"The format of the %s file has changed with version 3.0. You may either want "
"to copy it from %smc.ext or use that file as an example of how to write it."
msgstr "Формат файла %s изменён с версии 3.0. Вы можете либо скопировать его с %s/mc.ext, либо использовать этот файл как пример и написать свой."
msgstr ""
"Формат файла %s изменён с версии 3.0. Вы можете либо скопировать его с %s/mc."
"ext, либо использовать этот файл как пример и написать свой."
msgid "DialogTitle|Copy"
msgstr "Копирование"
@ -2319,7 +2332,8 @@ msgid ""
"\n"
"Option Stable Symlinks will be disabled"
msgstr ""
"Невозможно создать устойчивые симв. ссылки через нелокальные файловые системы:\n"
"Невозможно создать устойчивые симв. ссылки через нелокальные файловые "
"системы:\n"
"\n"
"Опция \"Устойчивые символические ссылки\" будет отменена"
@ -4179,6 +4193,19 @@ msgstr "Сбой Ext2lib"
msgid "Invalid value"
msgstr "Неверный адрес"
msgid "File was modified. Save with exit?"
msgstr "Файл был изменен. Сохранить при выходе?"
msgid "&Cancel quit"
msgstr "&Прервать выход"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander завершается.\n"
"Сохранить изменённый файл?"
msgid "Cannot spawn child process"
msgstr "Невозможно породить дочерний процесс"
@ -4248,19 +4275,6 @@ msgstr ""
"Невозможно сохранить файл:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Файл был изменен. Сохранить при выходе?"
msgid "&Cancel quit"
msgstr "&Прервать выход"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander завершается.\n"
"Сохранить изменённый файл?"
msgid "View: "
msgstr "Просмотр: "
@ -4277,7 +4291,7 @@ msgstr "Просмотр невозможен: необычный файл"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Невозможно открыть \"%s\"\n"

Просмотреть файл

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Jose Riha <jose1711@gmail.com>\n"
"Language-Team: Slovak (http://www.transifex.com/projects/p/mc/language/sk/)\n"
@ -3990,6 +3990,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "&Zrušiť ukončenie"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4054,17 +4065,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "&Zrušiť ukončenie"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4079,7 +4079,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Nebolo možné otvoriť archív %s\n"

Просмотреть файл

@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Slovenian (http://www.transifex.com/projects/p/mc/language/"
@ -3988,6 +3988,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4052,17 +4063,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4077,7 +4077,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Ne morem odpreti arhiva %s\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Serbian (http://www.transifex.com/projects/p/mc/language/"
@ -3975,6 +3975,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4039,17 +4050,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4064,7 +4064,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Не могу да отворим архиву врсте `%s'\n"

Просмотреть файл

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Cybjit <cybjit@gmail.com>\n"
"Language-Team: Swedish (http://www.transifex.com/projects/p/mc/language/"
@ -3966,6 +3966,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4030,17 +4041,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4055,7 +4055,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Kan inte öppna %s arkivet\n"

Просмотреть файл

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2011-12-07 11:21+0000\n"
"Last-Translator: slavazanko <slavazanko@gmail.com>\n"
"Language-Team: Swedish (Sweden) (http://www.transifex.net/projects/p/mc/team/"
@ -3925,6 +3925,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3989,17 +4000,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4014,7 +4014,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3925,6 +3925,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -3989,17 +4000,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4014,7 +4014,7 @@ msgstr ""
#, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Turkish (http://www.transifex.com/projects/p/mc/language/"
@ -3967,6 +3967,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4031,17 +4042,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4056,7 +4056,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"%s\n"

Просмотреть файл

@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: peinguin <pingvein@gmail.com>\n"
"Language-Team: Ukrainian (http://www.transifex.com/projects/p/mc/language/"
@ -4179,6 +4179,19 @@ msgstr "Сталася помилка Ext2lib"
msgid "Invalid value"
msgstr "Неправильне значення"
msgid "File was modified. Save with exit?"
msgstr "Файл змінено. Зберегти?"
msgid "&Cancel quit"
msgstr "&Не виходити"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Виконується вихід із Midnight Commander.\n"
"Зберегти змінений файл?"
msgid "Cannot spawn child process"
msgstr "Не вдалося створити процес-нащадок"
@ -4248,19 +4261,6 @@ msgstr ""
"Не вдалося зберегти файл:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "Файл змінено. Зберегти?"
msgid "&Cancel quit"
msgstr "&Не виходити"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Виконується вихід із Midnight Commander.\n"
"Зберегти змінений файл?"
msgid "View: "
msgstr "Перегляд:"
@ -4277,7 +4277,7 @@ msgstr "Не вдалося показати: не звичайний файл"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Не вдалося відкрити «%s»\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3964,6 +3964,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "&Dừng thoát"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4028,17 +4039,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr "&Dừng thoát"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4053,7 +4053,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Không mở được tập tin nén %s\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3947,6 +3947,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4011,17 +4022,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4036,7 +4036,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"Dji n' sai drovî li fitchî cpio\n"

Просмотреть файл

@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: Chinese (China) (http://www.transifex.com/projects/p/mc/"
@ -4126,6 +4126,19 @@ msgstr "Ext2lib 错误"
msgid "Invalid value"
msgstr "无效的值"
msgid "File was modified. Save with exit?"
msgstr "文件被修改,保存并退出?"
msgid "&Cancel quit"
msgstr "取消退出(&C)"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander就要被关闭了\n"
"要保存修改过的文件吗?"
msgid "Cannot spawn child process"
msgstr "无法生成子进程"
@ -4195,19 +4208,6 @@ msgstr ""
"不能保存文件:\n"
"%s"
msgid "File was modified. Save with exit?"
msgstr "文件被修改,保存并退出?"
msgid "&Cancel quit"
msgstr "取消退出(&C)"
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
"Midnight Commander就要被关闭了\n"
"要保存修改过的文件吗?"
msgid "View: "
msgstr "查看:"
@ -4224,7 +4224,7 @@ msgstr "无法查看:不是常规文件"
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"无法打开\"%s\"\n"

Просмотреть файл

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: http://www.midnight-commander.org/\n"
"POT-Creation-Date: 2013-06-15 10:56+0400\n"
"POT-Creation-Date: 2013-06-27 16:02+0400\n"
"PO-Revision-Date: 2013-03-13 08:51+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3960,6 +3960,17 @@ msgstr ""
msgid "Invalid value"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "Cannot spawn child process"
msgstr ""
@ -4024,17 +4035,6 @@ msgid ""
"%s"
msgstr ""
msgid "File was modified. Save with exit?"
msgstr ""
msgid "&Cancel quit"
msgstr ""
msgid ""
"Midnight Commander is being shut down.\n"
"Save modified file?"
msgstr ""
msgid "View: "
msgstr ""
@ -4049,7 +4049,7 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Cannot open \"%s\" in magic mode\n"
"Cannot open \"%s\" in parse mode\n"
"%s"
msgstr ""
"無法開啟 %s 檔案集\n"

Просмотреть файл

@ -5,7 +5,7 @@
Written by:
Daniel Borca <dborca@yahoo.com>, 2007
Slava Zanko <slavazanko@gmail.com>, 2010, 2013
Andrew Borodin <aborodin@vmail.ru>, 2010, 2012
Andrew Borodin <aborodin@vmail.ru>, 2010, 2012, 2013
Ilia Maslakov <il.smind@gmail.com>, 2010
This file is part of the Midnight Commander.
@ -3450,12 +3450,12 @@ diff_view (const char *file1, const char *file2, const char *label1, const char
/* Create dialog and widgets, put them on the dialog */
dview_dlg =
create_dlg (FALSE, 0, 0, LINES, COLS, NULL, dview_dialog_callback, NULL,
dlg_create (FALSE, 0, 0, LINES, COLS, NULL, dview_dialog_callback, NULL,
"[Diff Viewer]", NULL, DLG_WANT_TAB);
dview = g_new0 (WDiff, 1);
w = WIDGET (dview);
init_widget (w, 0, 0, LINES - 1, COLS, dview_callback, dview_event);
widget_init (w, 0, 0, LINES - 1, COLS, dview_callback, dview_event);
widget_want_cursor (w, FALSE);
add_widget (dview_dlg, dview);
@ -3470,10 +3470,10 @@ diff_view (const char *file1, const char *file2, const char *label1, const char
* be aware of it
*/
if (error == 0)
run_dlg (dview_dlg);
dlg_run (dview_dlg);
if ((error != 0) || (dview_dlg->state == DLG_CLOSED))
destroy_dlg (dview_dlg);
dlg_destroy (dview_dlg);
return error == 0 ? 1 : 0;
}

Просмотреть файл

@ -2260,7 +2260,7 @@ edit_init (WEdit * edit, int y, int x, int lines, int cols, const vfs_path_t * f
edit = g_malloc0 (sizeof (WEdit));
to_free = TRUE;
init_widget (WIDGET (edit), y, x, lines, cols, NULL, NULL);
widget_init (WIDGET (edit), y, x, lines, cols, NULL, NULL);
edit->fullscreen = TRUE;
edit_save_size (edit);
}

Просмотреть файл

@ -1,12 +1,12 @@
/*
Editor dialogs for high level editing commands
Copyright (C) 2009, 2011, 2012
Copyright (C) 2009, 2011, 2012, 2013
The Free Software Foundation, Inc.
Written by:
Slava Zanko <slavazanko@gmail.com>, 2009.
Andrew Borodin, <aborodin@vmail.ru>, 2012.
Slava Zanko <slavazanko@gmail.com>, 2009
Andrew Borodin, <aborodin@vmail.ru>, 2012, 2013
This file is part of the Midnight Commander.
@ -313,7 +313,7 @@ editcmd_dialog_raw_key_query (const char *heading, const char *query, gboolean c
w = max (w, wq + 3 * 2 + 1 + 2);
raw_dlg =
create_dlg (TRUE, 0, 0, cancel ? 7 : 5, w, dialog_colors, editcmd_dialog_raw_key_query_cb,
dlg_create (TRUE, 0, 0, cancel ? 7 : 5, w, dialog_colors, editcmd_dialog_raw_key_query_cb,
NULL, NULL, heading, DLG_CENTER | DLG_TRYUP | DLG_WANT_TAB);
add_widget (raw_dlg, label_new (y, 3, query));
@ -327,8 +327,8 @@ editcmd_dialog_raw_key_query (const char *heading, const char *query, gboolean c
WPOS_KEEP_TOP | WPOS_CENTER_HORZ, NULL);
}
w = run_dlg (raw_dlg);
destroy_dlg (raw_dlg);
w = dlg_run (raw_dlg);
dlg_destroy (raw_dlg);
return (cancel && (w == ESC_CHAR || w == B_CANCEL)) ? 0 : w;
}
@ -372,7 +372,7 @@ editcmd_dialog_completion_show (const WEdit * edit, int max_len, GString ** comp
/* create the dialog */
compl_dlg =
create_dlg (TRUE, start_y, start_x, compl_dlg_h, compl_dlg_w,
dlg_create (TRUE, start_y, start_x, compl_dlg_h, compl_dlg_w,
dialog_colors, NULL, NULL, "[Completion]", NULL, DLG_COMPACT);
/* create the listbox */
@ -386,14 +386,14 @@ editcmd_dialog_completion_show (const WEdit * edit, int max_len, GString ** comp
listbox_add_item (compl_list, LISTBOX_APPEND_AT_END, 0, (char *) compl[i]->str, NULL);
/* pop up the dialog and apply the choosen completion */
if (run_dlg (compl_dlg) == B_ENTER)
if (dlg_run (compl_dlg) == B_ENTER)
{
listbox_get_current (compl_list, &curr, NULL);
curr = g_strdup (curr);
}
/* destroy dialog before return */
destroy_dlg (compl_dlg);
dlg_destroy (compl_dlg);
return curr;
}
@ -438,7 +438,7 @@ editcmd_dialog_select_definition_show (WEdit * edit, char *match_expr, int max_l
start_y -= (offset + 1);
/* create the dialog */
def_dlg = create_dlg (TRUE, start_y, start_x, def_dlg_h, def_dlg_w,
def_dlg = dlg_create (TRUE, start_y, start_x, def_dlg_h, def_dlg_w,
dialog_colors, NULL, NULL, "[Definitions]", match_expr, DLG_COMPACT);
/* create the listbox */
@ -458,7 +458,7 @@ editcmd_dialog_select_definition_show (WEdit * edit, char *match_expr, int max_l
}
/* pop up the dialog and apply the choosen completion */
if (run_dlg (def_dlg) == B_ENTER)
if (dlg_run (def_dlg) == B_ENTER)
{
char *tmp_curr_def = (char *) curr_def;
int do_moveto = 0;
@ -516,7 +516,7 @@ editcmd_dialog_select_definition_show (WEdit * edit, char *match_expr, int max_l
}
/* destroy dialog before return */
destroy_dlg (def_dlg);
dlg_destroy (def_dlg);
}
/* --------------------------------------------------------------------------------------------- */

Просмотреть файл

@ -1209,7 +1209,7 @@ edit_files (const GList * files)
/* Create a new dialog and add it widgets to it */
edit_dlg =
create_dlg (FALSE, 0, 0, LINES, COLS, NULL, edit_dialog_callback, edit_dialog_event,
dlg_create (FALSE, 0, 0, LINES, COLS, NULL, edit_dialog_callback, edit_dialog_event,
"[Internal File Editor]", NULL, DLG_WANT_TAB);
edit_dlg->get_shortcut = edit_get_shortcut;
@ -1234,10 +1234,10 @@ edit_files (const GList * files)
}
if (ok)
run_dlg (edit_dlg);
dlg_run (edit_dlg);
if (!ok || edit_dlg->state == DLG_CLOSED)
destroy_dlg (edit_dlg);
dlg_destroy (edit_dlg);
return ok;
}

Просмотреть файл

@ -1,11 +1,12 @@
/*
Editor spell checker dialogs
Copyright (C) 2012
Copyright (C) 2012, 2013
The Free Software Foundation, Inc.
Written by:
Ilia Maslakov <il.smind@gmail.com>, 2012
Andrew Borodin <aborodin@vmail.ru>, 2013
This file is part of the Midnight Commander.
@ -108,7 +109,7 @@ spell_dialog_spell_suggest_show (WEdit * edit, const char *word, char **new_word
sug_dlg_w += max_btn_len;
sug_dlg_w = max (sug_dlg_w, word_label_len) + 1;
sug_dlg = create_dlg (TRUE, ypos, xpos, sug_dlg_h, sug_dlg_w,
sug_dlg = dlg_create (TRUE, ypos, xpos, sug_dlg_h, sug_dlg_w,
dialog_colors, NULL, NULL, "[ASpell]", _("Check word"), DLG_COMPACT);
add_widget (sug_dlg, label_new (1, 2, lang_label));
@ -127,7 +128,7 @@ spell_dialog_spell_suggest_show (WEdit * edit, const char *word, char **new_word
add_widget (sug_dlg, skip_btn);
add_widget (sug_dlg, cancel_button);
res = run_dlg (sug_dlg);
res = dlg_run (sug_dlg);
if (res == B_ENTER)
{
char *tmp = NULL;
@ -138,7 +139,7 @@ spell_dialog_spell_suggest_show (WEdit * edit, const char *word, char **new_word
*new_word = tmp;
}
destroy_dlg (sug_dlg);
dlg_destroy (sug_dlg);
g_free (lang_label);
g_free (word_label);

Просмотреть файл

@ -2,7 +2,7 @@
Chown-advanced command -- for the Midnight Commander
Copyright (C) 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2007, 2011
2005, 2007, 2011, 2012, 2013
The Free Software Foundation, Inc.
This file is part of the Midnight Commander.
@ -336,7 +336,7 @@ do_enter_key (WDialog * h, int f_pos)
chl_end = FALSE;
chl_dlg =
create_dlg (TRUE, lyy, lxx, 13, 17, dialog_colors, chl_callback, NULL,
dlg_create (TRUE, lyy, lxx, 13, 17, dialog_colors, chl_callback, NULL,
"[Advanced Chown]", title, DLG_COMPACT);
/* get new listboxes */
@ -366,7 +366,7 @@ do_enter_key (WDialog * h, int f_pos)
b_pos = chl_list->pos;
add_widget (chl_dlg, chl_list);
result = run_dlg (chl_dlg);
result = dlg_run (chl_dlg);
if (b_pos != chl_list->pos)
{
@ -416,7 +416,7 @@ do_enter_key (WDialog * h, int f_pos)
f_pos++;
}
/* Here we used to redraw the window */
destroy_dlg (chl_dlg);
dlg_destroy (chl_dlg);
}
while (chl_end);
}
@ -661,7 +661,7 @@ init_chown_advanced (void)
dlg_h += 2;
ch_dlg =
create_dlg (TRUE, 0, 0, dlg_h, dlg_w, dialog_colors, advanced_chown_callback, NULL,
dlg_create (TRUE, 0, 0, dlg_h, dlg_w, dialog_colors, advanced_chown_callback, NULL,
"[Advanced Chown]", _("Chown advanced command"), DLG_CENTER);
@ -842,7 +842,7 @@ chown_advanced_cmd (void)
if (mc_stat (vpath, sf_stat) != 0)
{ /* get status of file */
destroy_dlg (ch_dlg);
dlg_destroy (ch_dlg);
vfs_path_free (vpath);
break;
}
@ -857,7 +857,7 @@ chown_advanced_cmd (void)
chown_refresh ();
update_ownership ();
result = run_dlg (ch_dlg);
result = dlg_run (ch_dlg);
switch (result)
{
@ -891,7 +891,7 @@ chown_advanced_cmd (void)
do_file_mark (current_panel, current_file, 0);
need_update = TRUE;
}
destroy_dlg (ch_dlg);
dlg_destroy (ch_dlg);
vfs_path_free (vpath);
}
while (current_panel->marked && !end_chown);

Просмотреть файл

@ -59,7 +59,7 @@
#include "lib/util.h" /* Q_() */
#include "lib/widget.h"
#include "src/setup.h" /* For profile_name */
#include "src/setup.h"
#include "src/history.h" /* MC_HISTORY_ESC_TIMEOUT */
#include "src/execute.h" /* pause_after_run */
#ifdef ENABLE_BACKGROUND
@ -161,7 +161,7 @@ panel_listing_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm,
Widget *wi;
wi = dlg_find_by_id (h, panel_listing_types_id);
if (dlg_widget_active (wi))
if (widget_is_active (wi))
{
WInput *in;
@ -172,7 +172,7 @@ panel_listing_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm,
}
wi = dlg_find_by_id (h, panel_user_format_id);
if (dlg_widget_active (wi))
if (widget_is_active (wi))
{
h->ret_value = B_USER + 6;
dlg_stop (h);
@ -180,7 +180,7 @@ panel_listing_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm,
}
wi = dlg_find_by_id (h, mini_user_format_id);
if (dlg_widget_active (wi))
if (widget_is_active (wi))
{
h->ret_value = B_USER + 7;
dlg_stop (h);
@ -193,10 +193,10 @@ panel_listing_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm,
Widget *wi;
wi = dlg_find_by_id (h, panel_user_format_id);
if (dlg_widget_active (wi))
if (widget_is_active (wi))
{
wi = dlg_find_by_id (h, mini_user_format_id);
if (dlg_widget_active (wi))
if (widget_is_active (wi))
{
WRadio *r;
@ -301,15 +301,6 @@ tree_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *da
switch (msg)
{
case MSG_POST_KEY:
/* The enter key will be processed by the tree widget */
if (parm == '\n')
{
h->ret_value = B_ENTER;
dlg_stop (h);
}
return MSG_HANDLED;
case MSG_RESIZE:
{
Widget *bar;
@ -929,7 +920,7 @@ tree_box (const char *current_dir)
(void) current_dir;
/* Create the components */
dlg = create_dlg (TRUE, 0, 0, LINES - 9, COLS - 20, dialog_colors, tree_callback, NULL,
dlg = dlg_create (TRUE, 0, 0, LINES - 9, COLS - 20, dialog_colors, tree_callback, NULL,
"[Directory Tree]", _("Directory tree"), DLG_CENTER);
wd = WIDGET (dlg);
@ -942,14 +933,14 @@ tree_box (const char *current_dir)
WIDGET (bar)->x = 0;
WIDGET (bar)->y = LINES - 1;
if (run_dlg (dlg) == B_ENTER)
if (dlg_run (dlg) == B_ENTER)
{
const vfs_path_t *selected_name;
selected_name = tree_selected_name (mytree);
val = g_strdup (vfs_path_as_str (selected_name));
}
destroy_dlg (dlg);
dlg_destroy (dlg);
return val;
}
@ -1143,7 +1134,7 @@ jobs_cmd (void)
x += (int) n_but - 1;
cols = max (cols, x + 6);
jobs_dlg = create_dlg (TRUE, 0, 0, lines, cols, dialog_colors, NULL, NULL,
jobs_dlg = dlg_create (TRUE, 0, 0, lines, cols, dialog_colors, NULL, NULL,
"[Background jobs]", _("Background jobs"), DLG_CENTER);
bg_list = listbox_new (2, 2, lines - 6, cols - 6, FALSE, NULL);
@ -1161,8 +1152,8 @@ jobs_cmd (void)
x += job_but[i].len + 1;
}
(void) run_dlg (jobs_dlg);
destroy_dlg (jobs_dlg);
(void) dlg_run (jobs_dlg);
dlg_destroy (jobs_dlg);
}
#endif /* ENABLE_BACKGROUND */

Просмотреть файл

@ -2,7 +2,7 @@
Chmod command -- for the Midnight Commander
Copyright (C) 1994, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007,
2008, 2009, 2010, 2011
2008, 2009, 2010, 2011, 2013
The Free Software Foundation, Inc.
This file is part of the Midnight Commander.
@ -312,7 +312,7 @@ init_chmod (const char *fname, const struct stat *sf_stat)
}
ch_dlg =
create_dlg (TRUE, 0, 0, lines, cols, dialog_colors,
dlg_create (TRUE, 0, 0, lines, cols, dialog_colors,
chmod_callback, NULL, "[Chmod]", _("Chmod command"), DLG_CENTER);
add_widget (ch_dlg, groupbox_new (PY, PX, check_perm_num + 2, perm_gb_len, _("Permission")));
@ -489,7 +489,7 @@ chmod_cmd (void)
ch_dlg = init_chmod (fname, &sf_stat);
/* do action */
result = run_dlg (ch_dlg);
result = dlg_run (ch_dlg);
switch (result)
{
@ -552,7 +552,7 @@ chmod_cmd (void)
vfs_path_free (vpath);
destroy_dlg (ch_dlg);
dlg_destroy (ch_dlg);
}
while (current_panel->marked != 0 && !end_chmod);

Просмотреть файл

@ -2,7 +2,7 @@
Chown command -- for the Midnight Commander
Copyright (C) 1994, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2007, 2011, 2012
2007, 2011, 2012, 2013
The Free Software Foundation, Inc.
This file is part of the Midnight Commander.
@ -212,7 +212,7 @@ init_chown (void)
lines = GH + 4 + (single_set ? 2 : 4);
ch_dlg =
create_dlg (TRUE, 0, 0, lines, cols, dialog_colors, chown_callback, NULL, "[Chown]",
dlg_create (TRUE, 0, 0, lines, cols, dialog_colors, chown_callback, NULL, "[Chown]",
_("Chown command"), DLG_CENTER);
add_widget (ch_dlg, groupbox_new (2, 3, GH, GW, _("User name")));
@ -354,7 +354,7 @@ chown_cmd (void)
vpath = vfs_path_from_str (fname);
if (mc_stat (vpath, &sf_stat) != 0)
{ /* get status of file */
destroy_dlg (ch_dlg);
dlg_destroy (ch_dlg);
vfs_path_free (vpath);
break;
}
@ -371,7 +371,7 @@ chown_cmd (void)
chown_label (3, buffer);
chown_label (4, string_perm (sf_stat.st_mode));
switch (run_dlg (ch_dlg))
switch (dlg_run (ch_dlg))
{
case B_CANCEL:
end_chown = 1;
@ -445,7 +445,7 @@ chown_cmd (void)
need_update = 1;
}
destroy_dlg (ch_dlg);
dlg_destroy (ch_dlg);
}
while (current_panel->marked && !end_chown);

Просмотреть файл

@ -557,7 +557,6 @@ do_load_dir (const vfs_path_t * vpath, dir_list * list, sortfn * sort, gboolean
int status, link_to_dir, stale_link;
int next_free = 0;
struct stat st;
const char *vpath_str;
/* ".." (if any) must be the first entry in the list */
if (!set_zero_dir (list))
@ -576,10 +575,14 @@ do_load_dir (const vfs_path_t * vpath, dir_list * list, sortfn * sort, gboolean
tree_store_start_check (vpath);
vpath_str = vfs_path_as_str (vpath);
/* Do not add a ".." entry to the root directory */
if ((vpath_str[0] == PATH_SEP) && (vpath_str[1] == '\0'))
next_free--;
{
const char *vpath_str;
vpath_str = vfs_path_as_str (vpath);
/* Do not add a ".." entry to the root directory */
if ((vpath_str[0] == PATH_SEP) && (vpath_str[1] == '\0'))
next_free--;
}
while ((dp = mc_readdir (dirp)) != NULL)
{

Просмотреть файл

@ -197,12 +197,12 @@ static FileProgressStatus transform_error = FILE_CONT;
/* --------------------------------------------------------------------------------------------- */
static char *
transform_source (FileOpContext * ctx, const char *source)
transform_source (FileOpContext * ctx, const vfs_path_t * source_vpath)
{
char *s, *q;
char *fnsource;
s = g_strdup (source);
s = g_strdup (vfs_path_as_str (source_vpath));
/* We remove \n from the filename since regex routines would use \n as an anchor */
/* this is just to be allowed to maniupulate file names with \n on it */
@ -2511,7 +2511,7 @@ compute_dir_size_create_ui (gboolean allow_skip)
ui = g_new (ComputeDirSizeUI, 1);
ui_width = max (COLS / 2, b_width + 6);
ui->dlg = create_dlg (TRUE, 0, 0, 8, ui_width, dialog_colors, NULL, NULL, NULL,
ui->dlg = dlg_create (TRUE, 0, 0, 8, ui_width, dialog_colors, NULL, NULL, NULL,
_("Directory scanning"), DLG_CENTER);
ui->dirname = label_new (2, 3, "");
@ -2528,8 +2528,8 @@ compute_dir_size_create_ui (gboolean allow_skip)
}
/* We will manage the dialog without any help,
that's why we have to call init_dlg */
init_dlg (ui->dlg);
that's why we have to call dlg_init */
dlg_init (ui->dlg);
return ui;
}
@ -2546,7 +2546,7 @@ compute_dir_size_destroy_ui (ComputeDirSizeUI * ui)
/* close and destroy dialog */
dlg_run_done (ui->dlg);
destroy_dlg (ui->dlg);
dlg_destroy (ui->dlg);
g_free (ui);
}
}
@ -2886,7 +2886,7 @@ panel_operate (void *source_panel, FileOperation operation, gboolean force_singl
}
else
{
temp = transform_source (ctx, vfs_path_as_str (source_with_vpath));
temp = transform_source (ctx, source_with_vpath);
if (temp == NULL)
value = transform_error;
else
@ -2997,7 +2997,7 @@ panel_operate (void *source_panel, FileOperation operation, gboolean force_singl
}
else
{
temp = transform_source (ctx, vfs_path_as_str (source_with_vpath));
temp = transform_source (ctx, source_with_vpath);
if (temp == NULL)
value = transform_error;
else

Просмотреть файл

@ -535,7 +535,7 @@ overwrite_query_dialog (FileOpContext * ctx, enum OperationMode mode)
/* FIXME - missing help node */
ui->replace_dlg =
create_dlg (TRUE, 0, 0, rd_ylen, rd_xlen, alarm_colors, NULL, NULL, "[Replace]", title,
dlg_create (TRUE, 0, 0, rd_ylen, rd_xlen, alarm_colors, NULL, NULL, "[Replace]", title,
DLG_CENTER);
/* prompt */
@ -588,8 +588,8 @@ overwrite_query_dialog (FileOpContext * ctx, enum OperationMode mode)
label_set_text (LABEL (label1), str_trunc (stripped_name, rd_xlen - 8));
dlg_set_size (ui->replace_dlg, y + 3, rd_xlen);
dlg_select_by_id (ui->replace_dlg, yes_id);
result = run_dlg (ui->replace_dlg);
destroy_dlg (ui->replace_dlg);
result = dlg_run (ui->replace_dlg);
dlg_destroy (ui->replace_dlg);
g_free (widgets_len);
g_free (stripped_name_orig);
@ -732,7 +732,7 @@ file_op_context_create_ui (FileOpContext * ctx, gboolean with_eta,
ui->showing_bps = with_eta;
ui->op_dlg =
create_dlg (TRUE, 0, 0, dlg_height, dlg_width, dialog_colors, NULL, NULL, NULL,
dlg_create (TRUE, 0, 0, dlg_height, dlg_width, dialog_colors, NULL, NULL, NULL,
op_names[ctx->operation], DLG_CENTER);
ui->file_label[0] = label_new (y++, x, "");
@ -826,8 +826,8 @@ file_op_context_create_ui (FileOpContext * ctx, gboolean with_eta,
dlg_select_widget (progress_buttons[0].w);
/* We will manage the dialog without any help, that's why
we have to call init_dlg */
init_dlg (ui->op_dlg);
we have to call dlg_init */
dlg_init (ui->op_dlg);
}
/* --------------------------------------------------------------------------------------------- */
@ -840,7 +840,7 @@ file_op_context_destroy_ui (FileOpContext * ctx)
FileOpContextUI *ui = (FileOpContextUI *) ctx->ui;
dlg_run_done (ui->op_dlg);
destroy_dlg (ui->op_dlg);
dlg_destroy (ui->op_dlg);
g_free (ui);
ctx->ui = NULL;
}

Просмотреть файл

@ -72,7 +72,7 @@ get_absolute_name (const vfs_path_t * vpath)
/* --------------------------------------------------------------------------------------------- */
static int
my_mkdir_rec (char *s, mode_t mode)
my_mkdir_rec (const char *s, mode_t mode)
{
char *p, *q;
int result;
@ -91,12 +91,10 @@ my_mkdir_rec (char *s, mode_t mode)
}
/* FIXME: should check instead if s is at the root of that filesystem */
if (!vfs_file_is_local (s_vpath))
{
if (!vfs_file_is_local (s_vpath))
{
vfs_path_free (s_vpath);
return -1;
}
vfs_path_free (s_vpath);
return -1;
}
if (!strcmp (s, PATH_SEP_STR))

Просмотреть файл

@ -8,6 +8,7 @@
Written by:
Miguel de Icaza, 1995
Slava Zanko <slavazanko@gmail.com>, 2013
Andrew Borodin <aborodin@vmail.ru>, 2013
This file is part of the Midnight Commander.
@ -599,7 +600,7 @@ find_parameters (char **start_dir, ssize_t * start_dir_len,
disable = !options.content_use;
find_dlg =
create_dlg (TRUE, 0, 0, lines, cols, dialog_colors, find_parm_callback, NULL, "[Find File]",
dlg_create (TRUE, 0, 0, lines, cols, dialog_colors, find_parm_callback, NULL, "[Find File]",
_("Find File"), DLG_CENTER);
x1 = 3;
@ -705,7 +706,7 @@ find_parameters (char **start_dir, ssize_t * start_dir_len,
find_par_start:
dlg_select_widget (in_name);
switch (run_dlg (find_dlg))
switch (dlg_run (find_dlg))
{
case B_CANCEL:
return_value = FALSE;
@ -802,7 +803,7 @@ find_parameters (char **start_dir, ssize_t * start_dir_len,
}
}
destroy_dlg (find_dlg);
dlg_destroy (find_dlg);
return return_value;
}
@ -1576,7 +1577,7 @@ setup_gui (void)
cols = COLS - 16;
find_dlg =
create_dlg (TRUE, 0, 0, lines, cols, dialog_colors, find_callback, NULL, "[Find File]",
dlg_create (TRUE, 0, 0, lines, cols, dialog_colors, find_callback, NULL, "[Find File]",
_("Find File"), DLG_CENTER);
find_calc_button_locations (find_dlg, TRUE);
@ -1641,7 +1642,7 @@ run_process (void)
resuming = 0;
widget_want_idle (WIDGET (find_dlg), TRUE);
ret = run_dlg (find_dlg);
ret = dlg_run (find_dlg);
mc_search_free (search_file_handle);
search_file_handle = NULL;
@ -1657,7 +1658,7 @@ static void
kill_gui (void)
{
widget_want_idle (WIDGET (find_dlg), FALSE);
destroy_dlg (find_dlg);
dlg_destroy (find_dlg);
}
/* --------------------------------------------------------------------------------------------- */

Просмотреть файл

@ -2,7 +2,7 @@
Directory hotlist -- for the Midnight Commander
Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
The Free Software Foundation, Inc.
Written by:
@ -10,7 +10,7 @@
Janne Kukonlehto, 1995
Andrej Borsenkow, 1996
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2012
Andrew Borodin <aborodin@vmail.ru>, 2012, 2013
Janne did the original Hotlist code, Andrej made the groupable
hotlist; the move hotlist and revamped the file format and made
@ -356,11 +356,11 @@ hotlist_button_callback (WButton * button, int action)
listbox_get_current (l_hotlist, NULL, (void **) &item);
init_movelist (item);
hotlist_state.moving = TRUE;
ret = run_dlg (movelist_dlg);
ret = dlg_run (movelist_dlg);
hotlist_state.moving = FALSE;
listbox_get_current (l_movelist, NULL, (void **) &moveto_item);
moveto_group = current_group;
destroy_dlg (movelist_dlg);
dlg_destroy (movelist_dlg);
current_group = saved;
if (ret == B_CANCEL)
return 0;
@ -740,7 +740,7 @@ init_hotlist (hotlist_t list_type)
}
hotlist_dlg =
create_dlg (TRUE, 0, 0, lines, cols, dialog_colors, hotlist_callback, NULL, help_node,
dlg_create (TRUE, 0, 0, lines, cols, dialog_colors, hotlist_callback, NULL, help_node,
title, DLG_CENTER);
y = UY;
@ -807,7 +807,7 @@ init_movelist (struct hotlist *item)
hdr = g_strdup_printf (_("Moving %s"), item->label);
movelist_dlg =
create_dlg (TRUE, 0, 0, lines, cols, dialog_colors, hotlist_callback, NULL, "[Hotlist]",
dlg_create (TRUE, 0, 0, lines, cols, dialog_colors, hotlist_callback, NULL, "[Hotlist]",
hdr, DLG_CENTER);
g_free (hdr);
@ -848,7 +848,7 @@ init_movelist (struct hotlist *item)
static void
hotlist_done (void)
{
destroy_dlg (hotlist_dlg);
dlg_destroy (hotlist_dlg);
l_hotlist = NULL;
if (FALSE)
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
@ -1602,7 +1602,7 @@ hotlist_show (hotlist_t list_type)
tty_setcolor (SELECTED_COLOR);
hotlist_state.running = TRUE;
res = run_dlg (hotlist_dlg);
res = dlg_run (hotlist_dlg);
hotlist_state.running = FALSE;
save_hotlist ();

Просмотреть файл

@ -275,7 +275,7 @@ info_hook (void *data)
other_widget = get_panel_widget (get_current_index ());
if (!other_widget)
return;
if (dlg_overlap (WIDGET (info), other_widget))
if (widget_overlapped (WIDGET (info), other_widget))
return;
info->ready = 1;
@ -326,7 +326,7 @@ info_new (int y, int x, int lines, int cols)
info = g_new (struct WInfo, 1);
w = WIDGET (info);
init_widget (w, y, x, lines, cols, info_callback, NULL);
widget_init (w, y, x, lines, cols, info_callback, NULL);
/* We do not want the cursor */
widget_want_cursor (w, FALSE);

Просмотреть файл

@ -515,7 +515,7 @@ init_layout (void)
width = max (l1 * 2 + 7, b);
layout_dlg =
create_dlg (TRUE, 0, 0, 15, width, dialog_colors, layout_callback, NULL, "[Layout]",
dlg_create (TRUE, 0, 0, 15, width, dialog_colors, layout_callback, NULL, "[Layout]",
_("Layout"), DLG_CENTER);
#define XTRACT(i) *check_options[i].variable, check_options[i].text
@ -608,7 +608,13 @@ restore_into_right_dir_panel (int idx, Widget * from_widget)
const char *p_name = get_nth_panel_name (idx);
if (last_was_panel)
new_widget = panel_new_with_dir (p_name, saved_dir);
{
vfs_path_t *saved_dir_vpath;
saved_dir_vpath = vfs_path_from_str (saved_dir);
new_widget = panel_new_with_dir (p_name, saved_dir_vpath);
vfs_path_free (saved_dir_vpath);
}
else
new_widget = panel_new (p_name);
@ -640,7 +646,7 @@ layout_box (void)
layout_dlg = init_layout ();
if (run_dlg (layout_dlg) == B_ENTER)
if (dlg_run (layout_dlg) == B_ENTER)
{
size_t i;
@ -663,7 +669,7 @@ layout_box (void)
layout_do_change = TRUE;
}
destroy_dlg (layout_dlg);
dlg_destroy (layout_dlg);
if (layout_do_change)
layout_change ();
}
@ -1032,7 +1038,7 @@ set_display_type (int num, panel_view_mode_t type)
dlg_save_history (midnight_dlg);
}
dlg_replace_widget (old_widget, new_widget);
widget_replace (old_widget, new_widget);
}
if (type == view_listing)
@ -1128,9 +1134,9 @@ swap_panels (void)
panel_re_sort (current_panel);
}
if (dlg_widget_active (panels[0].widget))
if (widget_is_active (panels[0].widget))
dlg_select_widget (panels[1].widget);
else if (dlg_widget_active (panels[1].widget))
else if (widget_is_active (panels[1].widget))
dlg_select_widget (panels[0].widget);
}
else

Просмотреть файл

@ -2,7 +2,7 @@
Directory panel listing format editor -- for the Midnight Commander
Copyright (C) 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
2006, 2007, 2011
2006, 2007, 2011, 2013
The Free Software Foundation, Inc.
Written by:
@ -198,7 +198,7 @@ init_listmode (char *oldlistformat)
do_refresh ();
listmode_dlg =
create_dlg (TRUE, 0, 0, 22, 74, dialog_colors, NULL, NULL, listmode_section,
dlg_create (TRUE, 0, 0, 22, 74, dialog_colors, NULL, NULL, listmode_section,
"Listing format edit", DLG_CENTER | DLG_REVERSE);
add_widget (listmode_dlg, groupbox_new (UY, UX, 4, 63, "General options"));
@ -273,7 +273,7 @@ init_listmode (char *oldlistformat)
static void
listmode_done (WDialog * h)
{
destroy_dlg (h);
dlg_destroy (h);
if (0)
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
repaint_screen ();
@ -327,7 +327,7 @@ listmode_edit (char *oldlistformat)
listmode_dlg = init_listmode (s);
g_free (s);
if (run_dlg (listmode_dlg) == B_ENTER)
if (dlg_run (listmode_dlg) == B_ENTER)
{
newformat = collect_new_format ();
}

Просмотреть файл

@ -9,7 +9,7 @@
Miguel de Icaza, 1994, 1995, 1996, 1997
Janne Kukonlehto, 1994, 1995
Norbert Warmuth, 1997
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010
Andrew Borodin <aborodin@vmail.ru>, 2009, 2010, 2012, 2013
Slava Zanko <slavazanko@gmail.com>, 2013
This file is part of the Midnight Commander.
@ -683,47 +683,25 @@ create_panels (void)
/* --------------------------------------------------------------------------------------------- */
static void
put_current_path (void)
midnight_put_panel_path (WPanel * panel)
{
vfs_path_t *cwd_vpath;
const char *cwd_vpath_str;
if (!command_prompt)
return;
#ifdef HAVE_CHARSET
cwd_vpath = remove_encoding_from_path (current_panel->cwd_vpath);
cwd_vpath = remove_encoding_from_path (panel->cwd_vpath);
#else
cwd_vpath = vfs_path_clone (current_panel->cwd_vpath);
cwd_vpath = vfs_path_clone (panel->cwd_vpath);
#endif
command_insert (cmdline, vfs_path_as_str (cwd_vpath), FALSE);
if (cwd_vpath->str[strlen (vfs_path_as_str (cwd_vpath)) - 1] != PATH_SEP)
command_insert (cmdline, PATH_SEP_STR, FALSE);
cwd_vpath_str = vfs_path_as_str (cwd_vpath);
vfs_path_free (cwd_vpath);
}
command_insert (cmdline, cwd_vpath_str, FALSE);
/* --------------------------------------------------------------------------------------------- */
static void
put_other_path (void)
{
vfs_path_t *cwd_vpath;
if (get_other_type () != view_listing)
return;
if (!command_prompt)
return;
#ifdef HAVE_CHARSET
cwd_vpath = remove_encoding_from_path (other_panel->cwd_vpath);
#else
cwd_vpath = vfs_path_clone (other_panel->cwd_vpath);
#endif
command_insert (cmdline, vfs_path_as_str (cwd_vpath), FALSE);
if (cwd_vpath->str[strlen (vfs_path_as_str (cwd_vpath)) - 1] != PATH_SEP)
if (cwd_vpath_str[strlen (cwd_vpath_str) - 1] != PATH_SEP)
command_insert (cmdline, PATH_SEP_STR, FALSE);
vfs_path_free (cwd_vpath);
@ -944,7 +922,7 @@ create_panels_and_run_mc (void)
midnight_set_buttonbar (the_bar);
/* Run the Midnight Commander if no file was specified in the command line */
run_dlg (midnight_dlg);
dlg_run (midnight_dlg);
}
/* --------------------------------------------------------------------------------------------- */
@ -1130,7 +1108,7 @@ midnight_execute_cmd (Widget * sender, unsigned long command)
copy_cmd ();
break;
case CK_PutCurrentPath:
put_current_path ();
midnight_put_panel_path (current_panel);
break;
case CK_PutCurrentLink:
put_current_link ();
@ -1139,7 +1117,8 @@ midnight_execute_cmd (Widget * sender, unsigned long command)
put_current_tagged ();
break;
case CK_PutOtherPath:
put_other_path ();
if (get_other_type () == view_listing)
midnight_put_panel_path (other_panel);
break;
case CK_PutOtherLink:
put_other_link ();
@ -1466,7 +1445,7 @@ midnight_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void
/* Ctrl-Shift-Enter */
if (parm == (KEY_M_CTRL | KEY_M_SHIFT | '\n'))
{
put_current_path ();
midnight_put_panel_path (current_panel);
put_prog_name ();
return MSG_HANDLED;
}
@ -1739,7 +1718,7 @@ do_nc (void)
edit_stack_init ();
#endif
midnight_dlg = create_dlg (FALSE, 0, 0, LINES, COLS, midnight_colors, midnight_callback,
midnight_dlg = dlg_create (FALSE, 0, 0, LINES, COLS, midnight_colors, midnight_callback,
midnight_event, "[main]", NULL, DLG_NONE);
/* Check if we were invoked as an editor or file viewer */
@ -1760,7 +1739,7 @@ do_nc (void)
ret = TRUE;
/* destroy_dlg destroys even current_panel->cwd_vpath, so we have to save a copy :) */
/* dlg_destroy destroys even current_panel->cwd_vpath, so we have to save a copy :) */
if (mc_args__last_wd_file != NULL && vfs_current_is_local ())
last_wd_string = g_strdup (vfs_path_as_str (current_panel->cwd_vpath));
@ -1774,7 +1753,7 @@ do_nc (void)
mc_global.midnight_shutdown = TRUE;
dialog_switch_shutdown ();
done_mc ();
destroy_dlg (midnight_dlg);
dlg_destroy (midnight_dlg);
current_panel = NULL;
#ifdef USE_INTERNAL_EDIT

Просмотреть файл

@ -2972,17 +2972,20 @@ panel_set_sort_type_by_id (WPanel * panel, const char *name)
*/
static const char *
get_parent_dir_name (const char *cwd, const char *lwd)
get_parent_dir_name (const vfs_path_t * cwd_vpath, const vfs_path_t * lwd_vpath)
{
size_t llen, clen;
const char *p;
const char *p, *cwd, *lwd;
llen = strlen (lwd);
clen = strlen (cwd);
llen = vfs_path_len (lwd_vpath);
clen = vfs_path_len (cwd_vpath);
if (llen <= clen)
return NULL;
cwd = vfs_path_as_str (cwd_vpath);
lwd = vfs_path_as_str (lwd_vpath);
p = g_strrstr (lwd, VFS_PATH_URL_DELIMITER);
if (p == NULL)
@ -3044,21 +3047,18 @@ _do_panel_cd (WPanel * panel, const vfs_path_t * new_dir_vpath, enum cd_enum cd_
}
if (mc_chdir (new_dir_vpath) == -1)
{
panel_set_cwd (panel, vfs_path_as_str (panel->cwd_vpath));
return FALSE;
}
/* Success: save previous directory, shutdown status of previous dir */
olddir_vpath = vfs_path_clone (panel->cwd_vpath);
panel_set_lwd (panel, vfs_path_as_str (panel->cwd_vpath));
panel_set_lwd (panel, panel->cwd_vpath);
input_free_completions (cmdline);
vfs_path_free (panel->cwd_vpath);
vfs_setup_cwd ();
panel->cwd_vpath = vfs_path_clone (vfs_get_raw_current_dir ());
vfs_release_path (vfs_path_as_str (olddir_vpath));
vfs_release_path (olddir_vpath);
subshell_chdir (panel->cwd_vpath);
@ -3069,9 +3069,7 @@ _do_panel_cd (WPanel * panel, const vfs_path_t * new_dir_vpath, enum cd_enum cd_
do_load_dir (panel->cwd_vpath, &panel->dir, panel->sort_info.sort_field->sort_routine,
panel->sort_info.reverse, panel->sort_info.case_sensitive,
panel->sort_info.exec_first, panel->filter);
try_to_select (panel,
get_parent_dir_name (vfs_path_as_str (panel->cwd_vpath),
vfs_path_as_str (olddir_vpath)));
try_to_select (panel, get_parent_dir_name (panel->cwd_vpath, olddir_vpath));
load_hint (0);
panel->dirty = 1;
@ -3591,7 +3589,7 @@ panel_event (Gpm_Event * event, void *data)
Widget *w = WIDGET (data);
const int lines = llines (panel);
const gboolean is_active = dlg_widget_active (panel);
const gboolean is_active = widget_is_active (panel);
const gboolean mouse_down = (event->type & GPM_DOWN) != 0;
Gpm_Event local;
@ -3926,6 +3924,34 @@ panel_save_curent_file_to_clip_file (const gchar * event_group_name, const gchar
return TRUE;
}
/* --------------------------------------------------------------------------------------------- */
static vfs_path_t *
panel_recursive_cd_to_parent (const vfs_path_t * vpath)
{
vfs_path_t *cwd_vpath;
cwd_vpath = vfs_path_clone (vpath);
while (mc_chdir (cwd_vpath) < 0)
{
const char *panel_cwd_path;
vfs_path_t *tmp_vpath;
/* check if path contains only '/' */
panel_cwd_path = vfs_path_as_str (cwd_vpath);
if (panel_cwd_path[0] == PATH_SEP && panel_cwd_path[1] == '\0')
return NULL;
tmp_vpath = vfs_path_vtokens_get (cwd_vpath, 0, -1);
vfs_path_free (cwd_vpath);
cwd_vpath = vfs_path_build_filename (PATH_SEP_STR, vfs_path_as_str (tmp_vpath), NULL);
vfs_path_free (tmp_vpath);
}
return cwd_vpath;
}
/* --------------------------------------------------------------------------------------------- */
/*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */
@ -3968,10 +3994,13 @@ panel_clean_dir (WPanel * panel)
*/
void
panel_set_cwd (WPanel * panel, const char *path_str)
panel_set_cwd (WPanel * panel, const vfs_path_t * vpath)
{
vfs_path_free (panel->cwd_vpath);
panel->cwd_vpath = vfs_path_from_str (path_str);
if (vpath != panel->cwd_vpath) /* check if new vpath is not the panel->cwd_vpath object */
{
vfs_path_free (panel->cwd_vpath);
panel->cwd_vpath = vfs_path_clone (vpath);
}
}
/* --------------------------------------------------------------------------------------------- */
@ -3983,10 +4012,13 @@ panel_set_cwd (WPanel * panel, const char *path_str)
*/
void
panel_set_lwd (WPanel * panel, const char *path_str)
panel_set_lwd (WPanel * panel, const vfs_path_t * vpath)
{
vfs_path_free (panel->lwd_vpath);
panel->lwd_vpath = vfs_path_from_str (path_str);
if (vpath != panel->lwd_vpath) /* check if new vpath is not the panel->lwd_vpath object */
{
vfs_path_free (panel->lwd_vpath);
panel->lwd_vpath = vfs_path_clone (vpath);
}
}
/* --------------------------------------------------------------------------------------------- */
@ -4013,7 +4045,7 @@ panel_new (const char *panel_name)
*/
WPanel *
panel_new_with_dir (const char *panel_name, const char *wpath)
panel_new_with_dir (const char *panel_name, const vfs_path_t * vpath)
{
WPanel *panel;
Widget *w;
@ -4024,14 +4056,14 @@ panel_new_with_dir (const char *panel_name, const char *wpath)
panel = g_new0 (WPanel, 1);
w = WIDGET (panel);
/* No know sizes of the panel at startup */
init_widget (w, 0, 0, 0, 0, panel_callback, panel_event);
widget_init (w, 0, 0, 0, 0, panel_callback, panel_event);
/* We do not want the cursor */
widget_want_cursor (w, FALSE);
if (wpath != NULL)
if (vpath != NULL)
{
curdir = _vfs_get_cwd ();
panel_set_cwd (panel, wpath);
panel_set_cwd (panel, vpath);
}
else
{
@ -4039,7 +4071,7 @@ panel_new_with_dir (const char *panel_name, const char *wpath)
panel->cwd_vpath = vfs_path_clone (vfs_get_raw_current_dir ());
}
panel_set_lwd (panel, ".");
panel_set_lwd (panel, vfs_get_raw_current_dir ());
panel->hist_name = g_strconcat ("Dir Hist ", panel_name, (char *) NULL);
/* directories history will be get later */
@ -4120,11 +4152,11 @@ panel_new_with_dir (const char *panel_name, const char *wpath)
/* Restore old right path */
if (curdir != NULL)
{
vfs_path_t *vpath;
vfs_path_t *tmp_vpath;
vpath = vfs_path_from_str (curdir);
err = mc_chdir (vpath);
vfs_path_free (vpath);
tmp_vpath = vfs_path_from_str (curdir);
err = mc_chdir (tmp_vpath);
vfs_path_free (tmp_vpath);
}
g_free (curdir);
@ -4137,45 +4169,27 @@ void
panel_reload (WPanel * panel)
{
struct stat current_stat;
gboolean ok;
vfs_path_t *cwd_vpath;
ok = (panels_options.fast_reload
&& stat (vfs_path_as_str (panel->cwd_vpath), &current_stat) == 0
&& current_stat.st_ctime == panel->dir_stat.st_ctime
&& current_stat.st_mtime == panel->dir_stat.st_mtime);
if (ok)
if (panels_options.fast_reload && stat (vfs_path_as_str (panel->cwd_vpath), &current_stat) == 0
&& current_stat.st_ctime == panel->dir_stat.st_ctime
&& current_stat.st_mtime == panel->dir_stat.st_mtime)
return;
do
cwd_vpath = panel_recursive_cd_to_parent (panel->cwd_vpath);
vfs_path_free (panel->cwd_vpath);
if (cwd_vpath == NULL)
{
char *last_slash;
const char *panel_cwd_path;
if (mc_chdir (panel->cwd_vpath) != -1)
break;
panel_cwd_path = vfs_path_as_str (panel->cwd_vpath);
if (panel_cwd_path[0] == PATH_SEP && panel_cwd_path[1] == '\0')
{
panel_clean_dir (panel);
panel->count = set_zero_dir (&panel->dir) ? 1 : 0;
return;
}
last_slash = strrchr (panel_cwd_path, PATH_SEP);
vfs_path_free (panel->cwd_vpath);
if (last_slash == NULL || last_slash == panel_cwd_path)
panel->cwd_vpath = vfs_path_from_str (PATH_SEP_STR);
else
{
*last_slash = '\0';
panel->cwd_vpath = vfs_path_clone (panel->cwd_vpath);
}
memset (&(panel->dir_stat), 0, sizeof (panel->dir_stat));
show_dir (panel);
panel->cwd_vpath = vfs_path_from_str (PATH_SEP_STR);
panel_clean_dir (panel);
panel->count = set_zero_dir (&panel->dir) ? 1 : 0;
return;
}
while (TRUE);
panel->cwd_vpath = cwd_vpath;
memset (&(panel->dir_stat), 0, sizeof (panel->dir_stat));
show_dir (panel);
panel->count =
do_reload_dir (panel->cwd_vpath, &panel->dir, panel->sort_info.sort_field->sort_routine,

Просмотреть файл

@ -152,7 +152,7 @@ extern mc_fhl_t *mc_filehighlight;
/*** declarations of public functions ************************************************************/
WPanel *panel_new (const char *panel_name);
WPanel *panel_new_with_dir (const char *panel_name, const char *dr);
WPanel *panel_new_with_dir (const char *panel_name, const vfs_path_t * vpath);
void panel_clean_dir (WPanel * panel);
void panel_reload (WPanel * panel);
@ -186,8 +186,8 @@ const panel_field_t *panel_get_field_by_title (const char *);
const panel_field_t *panel_get_field_by_title_hotkey (const char *);
gsize panel_get_num_of_user_possible_fields (void);
const char **panel_get_user_possible_fields (gsize *);
void panel_set_cwd (WPanel * panel, const char *path_str);
void panel_set_lwd (WPanel * panel, const char *path_str);
void panel_set_cwd (WPanel * panel, const vfs_path_t * vpath);
void panel_set_lwd (WPanel * panel, const vfs_path_t * vpath);
void panel_init (void);
void panel_deinit (void);

Просмотреть файл

@ -170,7 +170,7 @@ init_panelize (void)
panelize_cols = max (panelize_cols, blen + 4);
panelize_dlg =
create_dlg (TRUE, 0, 0, 20, panelize_cols, dialog_colors, panelize_callback, NULL,
dlg_create (TRUE, 0, 0, 20, panelize_cols, dialog_colors, panelize_callback, NULL,
"[External panelize]", _("External panelize"), DLG_CENTER);
/* add listbox to the dialogs */
@ -216,7 +216,7 @@ init_panelize (void)
static void
panelize_done (void)
{
destroy_dlg (panelize_dlg);
dlg_destroy (panelize_dlg);
repaint_screen ();
}
@ -376,9 +376,13 @@ do_external_panelize (char *command)
current_panel->count = next_free;
if (list->list[0].fname[0] == PATH_SEP)
{
vfs_path_t *vpath_root;
int ret;
panel_set_cwd (current_panel, PATH_SEP_STR);
ret = chdir (PATH_SEP_STR);
vpath_root = vfs_path_from_str (PATH_SEP_STR);
panel_set_cwd (current_panel, vpath_root);
ret = mc_chdir (vpath_root);
vfs_path_free (vpath_root);
(void) ret;
}
}
@ -535,7 +539,7 @@ external_panelize (void)
/* display file info */
tty_setcolor (SELECTED_COLOR);
run_dlg (panelize_dlg);
dlg_run (panelize_dlg);
switch (panelize_dlg->ret_value)
{
@ -560,7 +564,8 @@ external_panelize (void)
if (target != NULL && *target)
{
char *cmd = g_strdup (target);
destroy_dlg (panelize_dlg);
dlg_destroy (panelize_dlg);
do_external_panelize (cmd);
g_free (cmd);
repaint_screen ();

Просмотреть файл

@ -572,36 +572,30 @@ tree_move_to_bottom (WTree * tree)
/* --------------------------------------------------------------------------------------------- */
/** Handle mouse click */
static void
tree_mouse_click (WTree * tree, int y)
{
if (tree->tree_shown[y])
{
tree->selected_ptr = tree->tree_shown[y];
tree->topdiff = y;
}
show_tree (tree);
}
/* --------------------------------------------------------------------------------------------- */
static void
tree_chdir_sel (WTree * tree)
{
if (!tree->is_panel)
return;
if (tree->is_panel)
{
change_panel ();
change_panel ();
if (do_cd (tree->selected_ptr->name, cd_exact))
select_item (current_panel);
else
message (D_ERROR, MSG_ERROR, _("Cannot chdir to \"%s\"\n%s"),
vfs_path_as_str (tree->selected_ptr->name), unix_error_string (errno));
if (do_cd (tree->selected_ptr->name, cd_exact))
select_item (current_panel);
widget_redraw (WIDGET (current_panel));
change_panel ();
show_tree (tree);
}
else
message (D_ERROR, MSG_ERROR, _("Cannot chdir to \"%s\"\n%s"),
tree->selected_ptr->name->str, unix_error_string (errno));
{
WDialog *h = WIDGET (tree)->owner;
change_panel ();
show_tree (tree);
h->ret_value = B_ENTER;
dlg_stop (h);
}
}
/* --------------------------------------------------------------------------------------------- */
@ -653,11 +647,14 @@ tree_event (Gpm_Event * event, void *data)
tree_move_forward (tree, tlines (tree) - 1);
show_tree (tree);
}
else
else if ((local.type & (GPM_UP | GPM_DOUBLE)) == (GPM_UP | GPM_DOUBLE))
{
tree_mouse_click (tree, local.y);
if ((local.type & (GPM_UP | GPM_DOUBLE)) == (GPM_UP | GPM_DOUBLE))
tree_chdir_sel (tree);
if (tree->tree_shown[local.y] != NULL)
{
tree->selected_ptr = tree->tree_shown[local.y];
tree->topdiff = local.y;
}
tree_chdir_sel (tree);
}
return MOU_NORMAL;
@ -1173,11 +1170,16 @@ tree_frame (WDialog * h, WTree * tree)
tty_printf (" %s ", title);
if (panels_options.show_mini_info)
widget_move (w, tlines (tree) + 1, 0);
tty_print_alt_char (ACS_LTEE, FALSE);
widget_move (w, tlines (tree) + 1, w->cols - 1);
tty_print_alt_char (ACS_RTEE, FALSE);
tty_draw_hline (w->y + tlines (tree) + 1, w->x + 1, ACS_HLINE, w->cols - 2);
{
int y;
y = w->lines - 3;
widget_move (w, y, 0);
tty_print_alt_char (ACS_LTEE, FALSE);
widget_move (w, y, w->cols - 1);
tty_print_alt_char (ACS_RTEE, FALSE);
tty_draw_hline (w->y + y, w->x + 1, ACS_HLINE, w->cols - 2);
}
}
}
@ -1258,7 +1260,7 @@ tree_new (int y, int x, int lines, int cols, gboolean is_panel)
tree = g_new (WTree, 1);
w = WIDGET (tree);
init_widget (w, y, x, lines, cols, tree_callback, tree_event);
widget_init (w, y, x, lines, cols, tree_callback, tree_event);
tree->is_panel = is_panel;
tree->selected_ptr = 0;

Просмотреть файл

@ -17,6 +17,7 @@
Norbert Warmuth, 1997
Miguel de Icaza, 1996, 1999
Slava Zanko <slavazanko@gmail.com>, 2013
Andrew Borodin <aborodin@vmail.ru>, 2013
This file is part of the Midnight Commander.
@ -58,7 +59,7 @@
#include "lib/hook.h"
#include "lib/util.h"
#include "src/setup.h"
#include "src/setup.h" /* setup_init() */
#include "treestore.h"
@ -99,8 +100,7 @@ static size_t
str_common (const vfs_path_t * s1_vpath, const vfs_path_t * s2_vpath)
{
size_t result = 0;
char *s1;
char *s2;
const char *s1, *s2;
s1 = vfs_path_as_str (s1_vpath);
s2 = vfs_path_as_str (s2_vpath);
@ -138,8 +138,7 @@ static int
pathcmp (const vfs_path_t * p1_vpath, const vfs_path_t * p2_vpath)
{
int ret_val;
char *p1;
char *p2;
const char *p1, *p2;
p1 = vfs_path_as_str (p1_vpath);
p2 = vfs_path_as_str (p2_vpath);
@ -536,7 +535,7 @@ remove_entry (tree_entry * entry)
/* --------------------------------------------------------------------------------------------- */
static void
process_special_dirs (GList ** special_dirs, char *file)
process_special_dirs (GList ** special_dirs, const char *file)
{
gchar **buffers, **start_buff;
mc_config_t *cfg;
@ -572,10 +571,13 @@ should_skip_directory (const vfs_path_t * vpath)
if (!loaded)
{
loaded = TRUE;
setup_init ();
const char *profile_name;
profile_name = setup_init ();
process_special_dirs (&special_dirs, profile_name);
process_special_dirs (&special_dirs, global_profile_name);
loaded = TRUE;
}
for (l = special_dirs; l != NULL; l = g_list_next (l))

Просмотреть файл

@ -2,7 +2,7 @@
Hypertext file browser.
Copyright (C) 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2011
2005, 2006, 2007, 2011, 2013
The Free Software Foundation, Inc.
This file is part of the Midnight Commander.
@ -1047,7 +1047,7 @@ mousedispatch_new (int y, int x, int yl, int xl)
Widget *w;
w = g_new (Widget, 1);
init_widget (w, y, x, yl, xl, md_callback, help_event);
widget_init (w, y, x, yl, xl, md_callback, help_event);
return w;
}
@ -1120,7 +1120,7 @@ help_interactive_display (const gchar * event_group_name, const gchar * event_na
help_lines = min (LINES - 4, max (2 * LINES / 3, 18));
whelp =
create_dlg (TRUE, 0, 0, help_lines + 4, HELP_WINDOW_WIDTH + 4,
dlg_create (TRUE, 0, 0, help_lines + 4, HELP_WINDOW_WIDTH + 4,
help_colors, help_callback, NULL, "[Help]", _("Help"),
DLG_TRYUP | DLG_CENTER | DLG_WANT_TAB);
@ -1154,9 +1154,9 @@ help_interactive_display (const gchar * event_group_name, const gchar * event_na
buttonbar_set_label (help_bar, 9, "", help_map, NULL);
buttonbar_set_label (help_bar, 10, Q_ ("ButtonBar|Quit"), help_map, NULL);
run_dlg (whelp);
dlg_run (whelp);
interactive_display_finish ();
destroy_dlg (whelp);
dlg_destroy (whelp);
return TRUE;
}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше