From: John Darrington Date: Mon, 8 Sep 2008 10:53:16 +0000 (+0800) Subject: Add ".sav" or ".por" suffix to filename when saving with Save_As X-Git-Tag: v0.7.1~50^2~60^2~1 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=169887f6d6d7bf5c10d5b05786aa3fd252040c93;p=pspp-builds.git Add ".sav" or ".por" suffix to filename when saving with Save_As Closes bug #23137 --- diff --git a/po/en_GB.po b/po/en_GB.po index 1b8c6bf5..0c13bd30 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PSPP 0.4.3\n" "Report-Msgid-Bugs-To: pspp-dev@gnu.org\n" -"POT-Creation-Date: 2008-09-04 19:43+0800\n" +"POT-Creation-Date: 2008-09-08 18:04+0800\n" "PO-Revision-Date: 2007-09-15 08:29+0800\n" "Last-Translator: John Darrington \n" "Language-Team: John Darrington \n" @@ -3399,20 +3399,20 @@ msgstr "" msgid "NPAR subcommand not currently implemented." msgstr "" -#: src/language/stats/npar.q:236 +#: src/language/stats/npar.q:237 #, c-format msgid "" "The specified value of HI (%d) is lower than the specified value of LO (%d)" msgstr "" -#: src/language/stats/npar.q:291 +#: src/language/stats/npar.q:292 #, c-format msgid "" "%d expected values were given, but the specified range (%d-%d) requires " "exactly %d values." msgstr "" -#: src/language/stats/npar.q:425 src/language/stats/t-test.q:496 +#: src/language/stats/npar.q:426 src/language/stats/t-test.q:496 #, c-format msgid "" "PAIRED was specified but the number of variables preceding WITH (%zu) did " diff --git a/src/ui/gui/data-editor.c b/src/ui/gui/data-editor.c index 9ca7511e..f7df21c7 100644 --- a/src/ui/gui/data-editor.c +++ b/src/ui/gui/data-editor.c @@ -1375,6 +1375,11 @@ data_save_as_dialog (GtkAction *action, struct data_editor *de) de->save_as_portable = ! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button_sys)); + if ( de->save_as_portable) + append_filename_suffix (de, ".por"); + else + append_filename_suffix (de, ".sav"); + save_file (de); window_set_name_from_filename (e, de->file_name);