On Fri, 30 Sep 2011, Sven Schreiber wrote:
Am 09/30/2011 09:43 PM, schrieb Allin Cottrell:
> On Fri, 30 Sep 2011, Sven Schreiber wrote:
>
>> here's what seems to be an "interface problem" in some sense,
although I
>> also have that déjà vu feeling as if we discussed this before...
>>
>> Anyway, I just chose "save data as / standard format", then selected a
>> subset of all variables to be saved, and entered a new filename
>> ("transfer1.gdt"). This operation as such went fine it seems -- when I
>> open that new file in a new gretl instance, everything looks good.
>>
>> However, in the main window of the old instance the line below the menu
>> bar (on Ubuntu) says "transfer1.gdt", but the window still lists all
>> variables, not the selected subset. So either the status information
>> saying "transfer1.gdt" must be wrong, or the display of all the old
>> variables, right? Or am I missing something and there's a
>> straightforward meaning to it (quite possible)?
>
> I agree, there's something wrong here. If you save only a subset of the
> currently defined series under some name, we probably shouldn't change
> the displayed datafile name to the new name.
>
> We could, I suppose, ask something like "Do you want to switch to the
> smaller dataset?" but that could create problems. There's no restriction
> on the selection of series to omit when saving a data subset, but there
> are restrictions on the series you're allowed to delete in the course of
> a session, depending on currently saved models and so on.
>
Actually, let me go one step back and ask a basic question: why have the
variable-selection option at all when the user chooses "save as"?
You just beat me to the punch! After thinking about it some more,
that's what occurred to me. We're just making life difficult for
ourselves (and potentially confusing to the user) by offering that
option.
I mean an analogy of this behavior would be if in a text editor
you choose "save as" you are asked if you maybe want to edit
paragraph three some more before actually saving the file under a
new name. Deleting variables should probably be done afterwards
within the new datafile. Or, this is like an export-to-database
action, which is also already possible in gretl.
Or beforehand: delete what you don't want, then choose "Save as".
(And BTW, maybe save-as-database should be moved/changed to
export-to-database?)
Yes, it should. These two things make a useful clean-up. The only
immediate issue is what to do for 1.9.6. The first change could be
made without disrupting any translatable strings but I think for the
second one we'd want to put the database export option under
File/export data as "_gretl database..." rather than just
"_Database...".
We already have the msgid "gretl database", so I could easily patch
the .pot files for European languages, adding a translation for
"_gretl database...", but I wouldn't want to try that for Chinese.
Reactions from any translators who are listening?
Allin