1999-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>

* treestore.c (tree_store_load): Do not load non-local file
	systems
	(tree_store_save): Do not save non-local file systems
This commit is contained in:
Miguel de Icaza 1999-04-09 03:03:42 +00:00
parent 22fab3851b
commit cca4a69dcf
3 changed files with 100 additions and 84 deletions

132
po/mc.pot
View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-04-06 14:18-0500\n" "POT-Creation-Date: 1999-04-06 23:00-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -36,125 +36,125 @@ msgstr ""
msgid " Press any key: " msgid " Press any key: "
msgstr "" msgstr ""
#: gnome/gcmd.c:57 #: gnome/gcmd.c:59
msgid " There is no other panel to compare contents to " msgid " There is no other panel to compare contents to "
msgstr "" msgstr ""
#: gnome/gcmd.c:108 #: gnome/gcmd.c:110
msgid "The Midnight Commander Team" msgid "The Midnight Commander Team"
msgstr "" msgstr ""
#: gnome/gcmd.c:110 #: gnome/gcmd.c:112
msgid "bug reports: http://bugs.gnome.org, or use gnome-bug" msgid "bug reports: http://bugs.gnome.org, or use gnome-bug"
msgstr "" msgstr ""
#: gnome/gcmd.c:122 #: gnome/gcmd.c:124
msgid "GNU Midnight Commander" msgid "GNU Midnight Commander"
msgstr "" msgstr ""
#: gnome/gcmd.c:125 #: gnome/gcmd.c:127
msgid "The GNOME edition of the Midnight Commander file manager." msgid "The GNOME edition of the Midnight Commander file manager."
msgstr "" msgstr ""
#: gnome/gcmd.c:262 #: gnome/gcmd.c:264
msgid "Sort By" msgid "Sort By"
msgstr "" msgstr ""
#. we define this up here so we can pass it in to our callback #. we define this up here so we can pass it in to our callback
#: gnome/gcmd.c:267 #: gnome/gcmd.c:269
msgid "Ignore case sensitivity." msgid "Ignore case sensitivity."
msgstr "" msgstr ""
#: gnome/gcmd.c:270 #: gnome/gcmd.c:272
msgid "Sort files by " msgid "Sort files by "
msgstr "" msgstr ""
#: gnome/gcmd.c:275 gnome/gcustom-layout.c:43 src/chmod.c:150 src/screen.c:395 #: gnome/gcmd.c:277 gnome/gcustom-layout.c:43 src/chmod.c:150 src/screen.c:395
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: gnome/gcmd.c:282 #: gnome/gcmd.c:284
msgid "File Type" msgid "File Type"
msgstr "" msgstr ""
#: gnome/gcmd.c:288 gnome/gcustom-layout.c:47 src/screen.c:396 #: gnome/gcmd.c:290 gnome/gcustom-layout.c:47 src/screen.c:396
#: src/screen.c:397 #: src/screen.c:397
msgid "Size" msgid "Size"
msgstr "" msgstr ""
#: gnome/gcmd.c:294 #: gnome/gcmd.c:296
msgid "Time Last Accessed" msgid "Time Last Accessed"
msgstr "" msgstr ""
#: gnome/gcmd.c:300 #: gnome/gcmd.c:302
msgid "Time Last Modified" msgid "Time Last Modified"
msgstr "" msgstr ""
#: gnome/gcmd.c:306 #: gnome/gcmd.c:308
msgid "Time Last Changed" msgid "Time Last Changed"
msgstr "" msgstr ""
#: gnome/gcmd.c:320 #: gnome/gcmd.c:322
msgid "Reverse the order." msgid "Reverse the order."
msgstr "" msgstr ""
#: gnome/gcmd.c:383 #: gnome/gcmd.c:385
msgid "Enter name." msgid "Enter name."
msgstr "" msgstr ""
#: gnome/gcmd.c:389 #: gnome/gcmd.c:391
msgid "Enter label for command:" msgid "Enter label for command:"
msgstr "" msgstr ""
#: gnome/gcmd.c:488 #: gnome/gcmd.c:490
msgid "Find all core files" msgid "Find all core files"
msgstr "" msgstr ""
#: gnome/gcmd.c:491 src/panelize.c:350 #: gnome/gcmd.c:493 src/panelize.c:350
msgid "Find rejects after patching" msgid "Find rejects after patching"
msgstr "" msgstr ""
#: gnome/gcmd.c:535 #: gnome/gcmd.c:537
msgid "Run Command" msgid "Run Command"
msgstr "" msgstr ""
#. Frame 1 #. Frame 1
#: gnome/gcmd.c:540 #: gnome/gcmd.c:542
msgid "Preset Commands" msgid "Preset Commands"
msgstr "" msgstr ""
#. add add/remove buttons in center #. add add/remove buttons in center
#: gnome/gcmd.c:557 gnome/gcustom-layout.c:185 #: gnome/gcmd.c:559 gnome/gcustom-layout.c:185
msgid "Add" msgid "Add"
msgstr "" msgstr ""
#: gnome/gcmd.c:561 gnome/gcustom-layout.c:186 #: gnome/gcmd.c:563 gnome/gcustom-layout.c:186
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#. Frame 2 #. Frame 2
#: gnome/gcmd.c:569 #: gnome/gcmd.c:571
msgid "Run this Command" msgid "Run this Command"
msgstr "" msgstr ""
#: gnome/gcmd.c:576 #: gnome/gcmd.c:578
msgid "Command: " msgid "Command: "
msgstr "" msgstr ""
#: gnome/gcmd.c:639 #: gnome/gcmd.c:647
msgid "Set Filter" msgid "Set Filter"
msgstr "" msgstr ""
#: gnome/gcmd.c:644 gnome/gcmd.c:685 gnome/gcmd.c:690 gnome/gcmd.c:694 #: gnome/gcmd.c:652 gnome/gcmd.c:693 gnome/gcmd.c:698 gnome/gcmd.c:702
#: gnome/gscreen.c:2532 #: gnome/gscreen.c:2532
msgid "Show all files" msgid "Show all files"
msgstr "" msgstr ""
#: gnome/gcmd.c:651 #: gnome/gcmd.c:659
msgid "." msgid "."
msgstr "" msgstr ""
#: gnome/gcmd.c:667 #: gnome/gcmd.c:675
msgid "" msgid ""
"Enter a filter here for files in the panel view.\n" "Enter a filter here for files in the panel view.\n"
"\n" "\n"
@ -162,19 +162,19 @@ msgid ""
"*.gif will show just gif images" "*.gif will show just gif images"
msgstr "" msgstr ""
#: gnome/gcmd.c:669 #: gnome/gcmd.c:677
msgid "Enter a Regular Expression to filter files in the panel view." msgid "Enter a Regular Expression to filter files in the panel view."
msgstr "" msgstr ""
#: gnome/gcmd.c:726 #: gnome/gcmd.c:734
msgid " Open with..." msgid " Open with..."
msgstr "" msgstr ""
#: gnome/gcmd.c:727 #: gnome/gcmd.c:735
msgid "Enter extra arguments:" msgid "Enter extra arguments:"
msgstr "" msgstr ""
#: gnome/gcmd.c:789 #: gnome/gcmd.c:797
msgid "Desktop entry properties" msgid "Desktop entry properties"
msgstr "" msgstr ""
@ -312,7 +312,7 @@ msgstr ""
msgid "Creates a new launcher" msgid "Creates a new launcher"
msgstr "" msgstr ""
#: gnome/gdesktop.c:2434 gnome/glayout.c:449 #: gnome/gdesktop.c:2434 gnome/glayout.c:452
msgid "Arrange Icons" msgid "Arrange Icons"
msgstr "" msgstr ""
@ -324,7 +324,7 @@ msgstr ""
msgid "Recreate Desktop Shortcuts" msgid "Recreate Desktop Shortcuts"
msgstr "" msgstr ""
#: gnome/gdesktop.c:2438 gnome/glayout.c:452 #: gnome/gdesktop.c:2438 gnome/glayout.c:455
msgid "Rescan Desktop" msgid "Rescan Desktop"
msgstr "" msgstr ""
@ -664,100 +664,108 @@ msgstr ""
msgid "Reverses the list of tagged files" msgid "Reverses the list of tagged files"
msgstr "" msgstr ""
#: gnome/glayout.c:401 gnome/gscreen.c:1478 #: gnome/glayout.c:401 gtkedit/editwidget.c:1071 src/view.c:2017
msgid "_Rescan Directory" msgid "Search"
msgstr "" msgstr ""
#: gnome/glayout.c:401 #: gnome/glayout.c:401
msgid "Search for a file in the current Panel"
msgstr ""
#: gnome/glayout.c:404 gnome/gscreen.c:1478
msgid "_Rescan Directory"
msgstr ""
#: gnome/glayout.c:404
msgid "Rescan the directory contents" msgid "Rescan the directory contents"
msgstr "" msgstr ""
#: gnome/glayout.c:408 #: gnome/glayout.c:411
msgid "_Sort By..." msgid "_Sort By..."
msgstr "" msgstr ""
#: gnome/glayout.c:408 #: gnome/glayout.c:411
msgid "Confirmation settings" msgid "Confirmation settings"
msgstr "" msgstr ""
#: gnome/glayout.c:409 #: gnome/glayout.c:412
msgid "_Filter View..." msgid "_Filter View..."
msgstr "" msgstr ""
#: gnome/glayout.c:409 #: gnome/glayout.c:412
msgid "Global option settings" msgid "Global option settings"
msgstr "" msgstr ""
#: gnome/glayout.c:416 #: gnome/glayout.c:419
msgid "_Find File..." msgid "_Find File..."
msgstr "" msgstr ""
#: gnome/glayout.c:416 #: gnome/glayout.c:419
msgid "Locate files on disk" msgid "Locate files on disk"
msgstr "" msgstr ""
#. { GNOME_APP_UI_ITEM, N_("_Compare panels..."), N_("Compare two panel contents"), gnome_compare_panels }, #. { GNOME_APP_UI_ITEM, N_("_Compare panels..."), N_("Compare two panel contents"), gnome_compare_panels },
#: gnome/glayout.c:419 #: gnome/glayout.c:422
msgid "_Edit mime types..." msgid "_Edit mime types..."
msgstr "" msgstr ""
#: gnome/glayout.c:419 #: gnome/glayout.c:422
msgid "Edits the MIME type bindings" msgid "Edits the MIME type bindings"
msgstr "" msgstr ""
#: gnome/glayout.c:421 #: gnome/glayout.c:424
msgid "_Run Command..." msgid "_Run Command..."
msgstr "" msgstr ""
#: gnome/glayout.c:421 #: gnome/glayout.c:424
msgid "Runs a command" msgid "Runs a command"
msgstr "" msgstr ""
#: gnome/glayout.c:423 #: gnome/glayout.c:426
msgid "_Run Command in panel..." msgid "_Run Command in panel..."
msgstr "" msgstr ""
#: gnome/glayout.c:423 #: gnome/glayout.c:426
msgid "Run a command and put the results in a panel" msgid "Run a command and put the results in a panel"
msgstr "" msgstr ""
#: gnome/glayout.c:433 #: gnome/glayout.c:436
msgid "_Background jobs..." msgid "_Background jobs..."
msgstr "" msgstr ""
#: gnome/glayout.c:433 #: gnome/glayout.c:436
msgid "List of background operations" msgid "List of background operations"
msgstr "" msgstr ""
#: gnome/glayout.c:436 #: gnome/glayout.c:439
msgid "Exit" msgid "Exit"
msgstr "" msgstr ""
#: gnome/glayout.c:436 #: gnome/glayout.c:439
msgid "Terminates the file manager and the desktop" msgid "Terminates the file manager and the desktop"
msgstr "" msgstr ""
#: gnome/glayout.c:451 #: gnome/glayout.c:454
msgid "Rescan System Devices" msgid "Rescan System Devices"
msgstr "" msgstr ""
#: gnome/glayout.c:459 gnome/glayout.c:469 #: gnome/glayout.c:462 gnome/glayout.c:472
msgid "_Layout" msgid "_Layout"
msgstr "" msgstr ""
#: gnome/glayout.c:460 gnome/glayout.c:470 #: gnome/glayout.c:463 gnome/glayout.c:473
msgid "_Commands" msgid "_Commands"
msgstr "" msgstr ""
#: gnome/glayout.c:461 #: gnome/glayout.c:464
msgid "_Desktop" msgid "_Desktop"
msgstr "" msgstr ""
#: gnome/glayout.c:462 gnome/glayout.c:471 #: gnome/glayout.c:465 gnome/glayout.c:474
msgid "_Help" msgid "_Help"
msgstr "" msgstr ""
#: gnome/glayout.c:611 #: gnome/glayout.c:614
msgid "File/New/Directory..." msgid "File/New/Directory..."
msgstr "" msgstr ""
@ -2109,10 +2117,6 @@ msgstr ""
msgid "Replac" msgid "Replac"
msgstr "" msgstr ""
#: gtkedit/editwidget.c:1071 src/view.c:2017
msgid "Search"
msgstr ""
#: gtkedit/editwidget.c:1074 src/main.c:1698 #: gtkedit/editwidget.c:1074 src/main.c:1698
msgid "PullDn" msgid "PullDn"
msgstr "" msgstr ""

View File

@ -1,3 +1,9 @@
1999-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* treestore.c (tree_store_load): Do not load non-local file
systems
(tree_store_save): Do not save non-local file systems
1999-04-07 Jonathan Blandford <jrb@redhat.com> 1999-04-07 Jonathan Blandford <jrb@redhat.com>
* screen.c (do_enter_on_file_entry): added a consistent behaviour * screen.c (do_enter_on_file_entry): added a consistent behaviour

View File

@ -264,13 +264,17 @@ tree_store_load (char *name)
different = strtok (NULL, ""); different = strtok (NULL, "");
if (different){ if (different){
strcpy (oldname + common, different); strcpy (oldname + common, different);
e = tree_store_add_entry (oldname); if (vfs_file_is_local (oldname)){
e->scanned = scanned; e = tree_store_add_entry (oldname);
e->scanned = scanned;
}
} }
} }
} else { } else {
e = tree_store_add_entry (name); if (vfs_file_is_local (name)){
e->scanned = scanned; e = tree_store_add_entry (name);
e->scanned = scanned;
}
strcpy (oldname, name); strcpy (oldname, name);
} }
g_free (name); g_free (name);
@ -339,23 +343,25 @@ tree_store_save (char *name)
while (current){ while (current){
int i, common; int i, common;
/* Clear-text compression */ if (vfs_file_is_local (current->name)){
if (current->prev && (common = str_common (current->prev->name, current->name)) > 2){ /* Clear-text compression */
char *encoded = encode (current->name + common); if (current->prev && (common = str_common (current->prev->name, current->name)) > 2){
char *encoded = encode (current->name + common);
i = fprintf (file, "%d:%d %s\n", current->scanned, common, encoded);
g_free (encoded);
} else {
char *encoded = encode (current->name);
i = fprintf (file, "%d:%s\n", current->scanned, encoded);
g_free (encoded);
}
i = fprintf (file, "%d:%d %s\n", current->scanned, common, encoded); if (i == EOF){
g_free (encoded); fprintf (stderr, _("Can't write to the %s file:\n%s\n"), name,
} else { unix_error_string (errno));
char *encoded = encode (current->name); break;
}
i = fprintf (file, "%d:%s\n", current->scanned, encoded);
g_free (encoded);
}
if (i == EOF){
fprintf (stderr, _("Can't write to the %s file:\n%s\n"), name,
unix_error_string (errno));
break;
} }
current = current->next; current = current->next;
} }