small i18n fix s/snprintf/g_snprintf/

* plug-ins/common/gif.c: small i18n fix
* plug-ins/gap/gap_mov_dialog.c: s/snprintf/g_snprintf/


--Sven
This commit is contained in:
Sven Neumann 1999-12-31 13:34:58 +00:00
parent 701ff83d3c
commit 3bc2a355a2
5 changed files with 24 additions and 12 deletions

View File

@ -1,3 +1,9 @@
Fri Dec 31 14:30:10 CET 1999 Sven Neumann <sven@gimp.org>
* plug-ins/common/gif.c: small i18n fix
* plug-ins/gap/gap_mov_dialog.c: s/snprintf/g_snprintf/
Thu Dec 30 22:55:35 GMT 1999 Adam D. Moss <adam@gimp.org>
* plug-ins/common/pcx.c: Teach it about .pcc files.

View File

@ -952,8 +952,7 @@ save_image (char *filename,
if (run_mode != RUN_NONINTERACTIVE)
{
/* init the progress meter */
temp_buf = g_malloc (strlen (filename) + 11);
sprintf (temp_buf, "Saving %s:", filename);
temp_buf = g_strdup_printf (_("Saving %s:"), filename);
gimp_progress_init (temp_buf);
g_free (temp_buf);
}
@ -963,7 +962,7 @@ save_image (char *filename,
outfile = fopen (filename, "wb");
if (!outfile)
{
g_message ("GIF: can't open %s\n", filename);
g_message (_("GIF: can't open %s\n"), filename);
return FALSE;
}
@ -2453,7 +2452,7 @@ cl_hash (register count_int hsize) /* reset code table */
static void
writeerr ()
{
g_message ("GIF: error writing output file\n");
g_message (_("GIF: error writing output file\n"));
return;
}
@ -2620,7 +2619,7 @@ comment_entry_callback (GtkWidget *widget,
/* Temporary kludge for overlength strings - just return */
if (ssize>240)
{
g_message ("GIF save: Your comment string is too long.\n");
g_message (_("GIF save: Your comment string is too long.\n"));
g_free(str);
return;
}

View File

@ -1081,13 +1081,18 @@ p_points_to_tab(t_mov_path_preview *path_ptr)
void p_update_point_labels(t_mov_path_preview *path_ptr)
{
snprintf(&path_ptr->X_Label[0], LABEL_LENGTH, _("X [%d]: "), pvals->point_idx + 1);
snprintf(&path_ptr->Y_Label[0], LABEL_LENGTH, _("Y [%d]: "), pvals->point_idx + 1);
snprintf(&path_ptr->Opacity_Label[0], LABEL_LENGTH, _("Opacity [%d]: "), pvals->point_idx + 1);
snprintf(&path_ptr->Wresize_Label[0], LABEL_LENGTH, _("Width [%d]: "), pvals->point_idx + 1);
snprintf(&path_ptr->Hresize_Label[0], LABEL_LENGTH, _("Height [%d]: "), pvals->point_idx + 1);
snprintf(&path_ptr->Rotation_Label[0], LABEL_LENGTH, _("Rotate deg[%d]: "), pvals->point_idx + 1);
g_snprintf (&path_ptr->X_Label[0], LABEL_LENGTH, _("X [%d]: "),
pvals->point_idx + 1);
g_snprintf (&path_ptr->Y_Label[0], LABEL_LENGTH, _("Y [%d]: "),
pvals->point_idx + 1);
g_snprintf (&path_ptr->Opacity_Label[0], LABEL_LENGTH, _("Opacity [%d]: "),
pvals->point_idx + 1);
g_snprintf (&path_ptr->Wresize_Label[0], LABEL_LENGTH, _("Width [%d]: "),
pvals->point_idx + 1);
g_snprintf (&path_ptr->Hresize_Label[0], LABEL_LENGTH, _("Height [%d]: "),
pvals->point_idx + 1);
g_snprintf (&path_ptr->Rotation_Label[0], LABEL_LENGTH, _("Rotate deg[%d]: "),
pvals->point_idx + 1);
if(NULL != path_ptr->X_LabelPtr)
{ gtk_label_set(GTK_LABEL(path_ptr->X_LabelPtr),

View File

@ -7,3 +7,4 @@ POTFILES
cat-id-tbl.c
gimp-std-plugins.pot
stamp-cat-id
messages

View File

@ -7,3 +7,4 @@ POTFILES
cat-id-tbl.c
gimp.pot
stamp-cat-id
messages