app: Rename 'Save as Template' to 'Create Template'

Rename 'Save as Template' to 'Create Template' in the File menu.
This commit is contained in:
Martin Nordholts 2009-04-26 08:24:02 +02:00
parent 46a1afebcd
commit d3353f721b
5 changed files with 17 additions and 16 deletions

View File

@ -86,11 +86,11 @@ static const GimpActionEntry file_actions[] =
G_CALLBACK (file_open_location_cmd_callback),
GIMP_HELP_FILE_OPEN_LOCATION },
{ "file-save-as-template", NULL,
NC_("file-action", "Save as _Template..."), NULL,
{ "file-create-template", NULL,
NC_("file-action", "Create _Template..."), NULL,
NC_("file-action", "Create a new template from this image"),
G_CALLBACK (file_save_template_cmd_callback),
GIMP_HELP_FILE_SAVE_AS_TEMPLATE },
G_CALLBACK (file_create_template_cmd_callback),
GIMP_HELP_FILE_CREATE_TEMPLATE },
{ "file-revert", GTK_STOCK_REVERT_TO_SAVED,
NC_("file-action", "Re_vert"), NULL,
@ -255,13 +255,13 @@ file_actions_update (GimpActionGroup *group,
#define SET_SENSITIVE(action,condition) \
gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
SET_SENSITIVE ("file-save", image && drawable);
SET_SENSITIVE ("file-save-as", image && drawable);
SET_SENSITIVE ("file-save-a-copy", image && drawable);
SET_SENSITIVE ("file-revert", image && (GIMP_OBJECT (image)->name || export_to));
SET_SENSITIVE ("file-export", image && drawable);
SET_SENSITIVE ("file-export-to", export_to);
SET_SENSITIVE ("file-save-as-template", image);
SET_SENSITIVE ("file-save", image && drawable);
SET_SENSITIVE ("file-save-as", image && drawable);
SET_SENSITIVE ("file-save-a-copy", image && drawable);
SET_SENSITIVE ("file-revert", image && (GIMP_OBJECT (image)->name || export_to));
SET_SENSITIVE ("file-export", image && drawable);
SET_SENSITIVE ("file-export-to", export_to);
SET_SENSITIVE ("file-create-template", image);
if (export_to)
{

View File

@ -316,8 +316,8 @@ file_save_cmd_callback (GtkAction *action,
}
void
file_save_template_cmd_callback (GtkAction *action,
gpointer data)
file_create_template_cmd_callback (GtkAction *action,
gpointer data)
{
GimpDisplay *display;
GtkWidget *dialog;
@ -326,7 +326,7 @@ file_save_template_cmd_callback (GtkAction *action,
dialog = gimp_query_string_box (_("Create New Template"),
display->shell,
gimp_standard_help_func,
GIMP_HELP_FILE_SAVE_AS_TEMPLATE,
GIMP_HELP_FILE_CREATE_TEMPLATE,
_("Enter a name for this template"),
NULL,
G_OBJECT (display->image), "disconnect",

View File

@ -32,7 +32,7 @@ void file_open_recent_cmd_callback (GtkAction *action,
void file_save_cmd_callback (GtkAction *action,
gint value,
gpointer data);
void file_save_template_cmd_callback (GtkAction *action,
void file_create_template_cmd_callback (GtkAction *action,
gpointer data);
void file_revert_cmd_callback (GtkAction *action,

View File

@ -40,6 +40,7 @@
#define GIMP_HELP_FILE_REVERT "gimp-file-revert"
#define GIMP_HELP_FILE_CLOSE "gimp-file-close"
#define GIMP_HELP_FILE_CLOSE_ALL "gimp-file-close-all"
#define GIMP_HELP_FILE_CREATE_TEMPLATE "gimp-file-save-as-template" /* Update string along with gimp-help-2 */
#define GIMP_HELP_FILE_QUIT "gimp-file-quit"
#define GIMP_HELP_EDIT_UNDO "gimp-edit-undo"

View File

@ -47,7 +47,7 @@
<menuitem action="file-export" />
<menuitem action="file-export-to" />
</placeholder>
<menuitem action="file-save-as-template" />
<menuitem action="file-create-template" />
<separator />
<placeholder name="Send" />
<separator />