[gimp] plug-ins: make the BigTIFF warning translatable.



commit 45a99ae2707f7023410745f2eb94a7fb29f0b7e6
Author: Jehan <jehan girinstud io>
Date:   Mon May 9 19:56:46 2022 +0200

    plug-ins: make the BigTIFF warning translatable.

 plug-ins/file-tiff/file-tiff-save.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/file-tiff/file-tiff-save.c b/plug-ins/file-tiff/file-tiff-save.c
index 33166f4d58..ee22d26c54 100644
--- a/plug-ins/file-tiff/file-tiff-save.c
+++ b/plug-ins/file-tiff/file-tiff-save.c
@@ -1228,12 +1228,16 @@ save_dialog (GimpImage     *image,
   if (classic_tiff_failed)
     {
       GtkWidget *label;
+      gchar     *text;
 
+      /* Warning sign emoticone. */
+      text = g_strdup_printf ("\xe2\x9a\xa0 %s",
+                              _("Warning: maximum TIFF file size exceeded. "
+                                "Retry as BigTIFF or with a different compression algorithm, "
+                                "or cancel."));
       label = gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog),
-                                               "big-tif-warning",
-                                               "\xe2\x9a\xa0 Warning: maximum TIFF file size exceeded. "
-                                               "Retry as BigTIFF or with a different compression algorithm, "
-                                               "or cancel.");
+                                               "big-tif-warning", text);
+      g_free (text);
       gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
       gtk_label_set_line_wrap_mode (GTK_LABEL (label), PANGO_WRAP_WORD);
       gtk_label_set_max_width_chars (GTK_LABEL (label), 60);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]