[gimp] Bug 661313 - "None" string needs differentiation (message context)



commit 8a20035ea06c9e45f412b3a1378dfa57804da52b
Author: Michael Natterer <mitch gimp org>
Date:   Wed Nov 16 23:13:03 2011 +0100

    Bug 661313 - "None" string needs differentiation (message context)
    
    Add translation context to all "None".

 plug-ins/common/align-layers.c                     |    4 ++--
 plug-ins/common/cml-explorer.c                     |    2 +-
 plug-ins/common/file-ps.c                          |   12 ++++++------
 plug-ins/common/file-psp.c                         |    6 +++---
 plug-ins/file-fits/fits.c                          |    2 +-
 .../fractal-explorer/fractal-explorer-dialogs.c    |   18 +++++++++---------
 plug-ins/lighting/lighting-ui.c                    |    8 ++++----
 plug-ins/print/print-page-layout.c                 |    8 ++++----
 8 files changed, 30 insertions(+), 30 deletions(-)
---
diff --git a/plug-ins/common/align-layers.c b/plug-ins/common/align-layers.c
index d9812de..1e2ecf6 100644
--- a/plug-ins/common/align-layers.c
+++ b/plug-ins/common/align-layers.c
@@ -421,7 +421,7 @@ align_layers_dialog (void)
                       table, FALSE, FALSE, 0);
   gtk_widget_show (table);
 
-  combo = gimp_int_combo_box_new (_("None"),                 H_NONE,
+  combo = gimp_int_combo_box_new (C_("align-style", "None"), H_NONE,
                                   _("Collect"),              H_COLLECT,
                                   _("Fill (left to right)"), LEFT2RIGHT,
                                   _("Fill (right to left)"), RIGHT2LEFT,
@@ -452,7 +452,7 @@ align_layers_dialog (void)
                              _("Ho_rizontal base:"), 0.0, 0.5,
                              combo, 2, FALSE);
 
-  combo = gimp_int_combo_box_new (_("None"),                 V_NONE,
+  combo = gimp_int_combo_box_new (C_("align-style", "None"), V_NONE,
                                   _("Collect"),              V_COLLECT,
                                   _("Fill (top to bottom)"), TOP2BOTTOM,
                                   _("Fill (bottom to top)"), BOTTOM2TOP,
diff --git a/plug-ins/common/cml-explorer.c b/plug-ins/common/cml-explorer.c
index 653ad47..4dbeec6 100644
--- a/plug-ins/common/cml-explorer.c
+++ b/plug-ins/common/cml-explorer.c
@@ -163,7 +163,7 @@ enum
 
 static const gchar *composition_names[COMP_NUM_VALUES] =
 {
-  N_("None"),
+  NC_("cml-composition", "None"),
   N_("Max (x, -)"),
   N_("Max (x+d, -)"),
   N_("Max (x-d, -)"),
diff --git a/plug-ins/common/file-ps.c b/plug-ins/common/file-ps.c
index f985b7f..b2fa6dd 100644
--- a/plug-ins/common/file-ps.c
+++ b/plug-ins/common/file-ps.c
@@ -3248,9 +3248,9 @@ load_dialog (const gchar *filename,
                                     G_CALLBACK (gimp_radio_button_update),
                                     &plvals.textalpha, plvals.textalpha,
 
-                                    _("None"),   1, NULL,
-                                    _("Weak"),   2, NULL,
-                                    _("Strong"), 4, NULL,
+                                    C_("antialiasing", "None"), 1, NULL,
+                                    _("Weak"),                  2, NULL,
+                                    _("Strong"),                4, NULL,
 
                                     NULL);
   gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, TRUE, 0);
@@ -3260,9 +3260,9 @@ load_dialog (const gchar *filename,
                                     G_CALLBACK (gimp_radio_button_update),
                                     &plvals.graphicsalpha, plvals.graphicsalpha,
 
-                                    _("None"),   1, NULL,
-                                    _("Weak"),   2, NULL,
-                                    _("Strong"), 4, NULL,
+                                    C_("antialiasing", "None"), 1, NULL,
+                                    _("Weak"),                  2, NULL,
+                                    _("Strong"),                4, NULL,
 
                                     NULL);
   gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, TRUE, 0);
diff --git a/plug-ins/common/file-psp.c b/plug-ins/common/file-psp.c
index c0b4954..5c8982a 100644
--- a/plug-ins/common/file-psp.c
+++ b/plug-ins/common/file-psp.c
@@ -644,9 +644,9 @@ save_dialog (void)
                                     G_CALLBACK (gimp_radio_button_update),
                                     &psvals.compression, psvals.compression,
 
-                                    _("None"), PSP_COMP_NONE, NULL,
-                                    _("RLE"),  PSP_COMP_RLE,  NULL,
-                                    _("LZ77"), PSP_COMP_LZ77, NULL,
+                                    C_("compression", "None"), PSP_COMP_NONE, NULL,
+                                    _("RLE"),                  PSP_COMP_RLE,  NULL,
+                                    _("LZ77"),                 PSP_COMP_LZ77, NULL,
 
                                     NULL);
 
diff --git a/plug-ins/file-fits/fits.c b/plug-ins/file-fits/fits.c
index 67d4a8c..90a38d8 100644
--- a/plug-ins/file-fits/fits.c
+++ b/plug-ins/file-fits/fits.c
@@ -1041,7 +1041,7 @@ load_dialog (void)
 			      G_CALLBACK (gimp_radio_button_update),
 			      &plvals.compose, plvals.compose,
 
-			      _("None"),                 FALSE, NULL,
+			      C_("composing", "None"),   FALSE, NULL,
 			      "NAXIS=3, NAXIS3=2,...,4", TRUE,  NULL,
 
 			      NULL);
diff --git a/plug-ins/fractal-explorer/fractal-explorer-dialogs.c b/plug-ins/fractal-explorer/fractal-explorer-dialogs.c
index 7242e2b..2ecbae7 100644
--- a/plug-ins/fractal-explorer/fractal-explorer-dialogs.c
+++ b/plug-ins/fractal-explorer/fractal-explorer-dialogs.c
@@ -994,11 +994,11 @@ explorer_dialog (void)
                                     G_CALLBACK (explorer_radio_update),
                                     &wvals.redmode, wvals.redmode,
 
-                                    _("Sine"),         SINUS,
+                                    _("Sine"),                    SINUS,
                                     &elements->redmode[SINUS],
-                                    _("Cosine"),       COSINUS,
+                                    _("Cosine"),                  COSINUS,
                                     &elements->redmode[COSINUS],
-                                    _("None"),         NONE,
+                                    C_("color-function", "None"), NONE,
                                     &elements->redmode[NONE],
 
                                     NULL);
@@ -1035,11 +1035,11 @@ explorer_dialog (void)
                                     G_CALLBACK (explorer_radio_update),
                                     &wvals.greenmode, wvals.greenmode,
 
-                                    _("Sine"),           SINUS,
+                                    _("Sine"),                    SINUS,
                                     &elements->greenmode[SINUS],
-                                    _("Cosine"),         COSINUS,
+                                    _("Cosine"),                  COSINUS,
                                     &elements->greenmode[COSINUS],
-                                    _("None"),           NONE,
+                                    C_("color-function", "None"), NONE,
                                     &elements->greenmode[NONE],
 
                                     NULL);
@@ -1076,11 +1076,11 @@ explorer_dialog (void)
                                     G_CALLBACK (explorer_radio_update),
                                     &wvals.bluemode, wvals.bluemode,
 
-                                    _("Sine"),          SINUS,
+                                    _("Sine"),                    SINUS,
                                     &elements->bluemode[SINUS],
-                                    _("Cosine"),        COSINUS,
+                                    _("Cosine"),                  COSINUS,
                                     &elements->bluemode[COSINUS],
-                                    _("None"),          NONE,
+                                    C_("color-function", "None"), NONE,
                                     &elements->bluemode[NONE],
 
                                     NULL);
diff --git a/plug-ins/lighting/lighting-ui.c b/plug-ins/lighting/lighting-ui.c
index f460e22..1275fd9 100644
--- a/plug-ins/lighting/lighting-ui.c
+++ b/plug-ins/lighting/lighting-ui.c
@@ -415,10 +415,10 @@ create_light_page (void)
   gtk_widget_show (label);
 
   light_type_combo =
-    gimp_int_combo_box_new (_("None"),        NO_LIGHT,
-                            _("Directional"), DIRECTIONAL_LIGHT,
-                            _("Point"),       POINT_LIGHT,
-                            /* _("Spot"),     SPOT_LIGHT, */
+    gimp_int_combo_box_new (C_("light-source", "None"), NO_LIGHT,
+                            _("Directional"),           DIRECTIONAL_LIGHT,
+                            _("Point"),                 POINT_LIGHT,
+                            /* _("Spot"),               SPOT_LIGHT, */
                             NULL);
   gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (light_type_combo),
                                  mapvals.lightsource[k].type);
diff --git a/plug-ins/print/print-page-layout.c b/plug-ins/print/print-page-layout.c
index a95d4d5..e79b001 100644
--- a/plug-ins/print/print-page-layout.c
+++ b/plug-ins/print/print-page-layout.c
@@ -458,10 +458,10 @@ print_offset_frame (PrintData    *data,
   gtk_widget_show (label);
 
   /*  if and how to center the image on the page  */
-  combo = gimp_int_combo_box_new (_("None"),         CENTER_NONE,
-                                  _("Horizontally"), CENTER_HORIZONTALLY,
-                                  _("Vertically"),   CENTER_VERTICALLY,
-                                  _("Both"),         CENTER_BOTH,
+  combo = gimp_int_combo_box_new (C_("center-mode", "None"), CENTER_NONE,
+                                  _("Horizontally"),         CENTER_HORIZONTALLY,
+                                  _("Vertically"),           CENTER_VERTICALLY,
+                                  _("Both"),                 CENTER_BOTH,
                                   NULL);
   gtk_box_pack_start (GTK_BOX (hbox), combo, TRUE, TRUE, 0);
   gtk_widget_show (combo);



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