From: mfloryan Date: Wed, 26 Mar 2008 15:52:30 +0000 (+0000) Subject: Fixing localization issues (following a patch for 0.46 rev. 17583) where some message... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8c2f15ca711e9d94a35a0c934cb3bf5cda10125d;p=inkscape.git Fixing localization issues (following a patch for 0.46 rev. 17583) where some messages for internal extensions were not being used as translated. --- diff --git a/src/extension/internal/bitmap/addNoise.cpp b/src/extension/internal/bitmap/addNoise.cpp index 358a71c4c..1726ffb43 100644 --- a/src/extension/internal/bitmap/addNoise.cpp +++ b/src/extension/internal/bitmap/addNoise.cpp @@ -44,12 +44,12 @@ AddNoise::init(void) "" N_("Add Noise") "\n" "org.inkscape.effect.bitmap.addNoise\n" "\n" - "" N_("Uniform Noise") "\n" - "" N_("Gaussian Noise") "\n" - "" N_("Multiplicative Gaussian Noise") "\n" - "" N_("Impulse Noise") "\n" - "" N_("Laplacian Noise") "\n" - "" N_("Poisson Noise") "\n" + "<_item value='Uniform Noise'>" N_("Uniform Noise") "\n" + "<_item value='Gaussian Noise'>" N_("Gaussian Noise") "\n" + "<_item value='Multiplicative Gaussian Noise'>" N_("Multiplicative Gaussian Noise") "\n" + "<_item value='Impulse Noise'>" N_("Impulse Noise") "\n" + "<_item value='Laplacian Noise'>" N_("Laplacian Noise") "\n" + "<_item value='Poisson Noise'>" N_("Poisson Noise") "\n" "\n" "\n" "all\n" diff --git a/src/extension/internal/bitmap/channel.cpp b/src/extension/internal/bitmap/channel.cpp index 4f899128f..7699365f3 100644 --- a/src/extension/internal/bitmap/channel.cpp +++ b/src/extension/internal/bitmap/channel.cpp @@ -47,15 +47,15 @@ Channel::init(void) "" N_("Channel") "\n" "org.inkscape.effect.bitmap.channel\n" "\n" - "" N_("Red Channel") "\n" - "" N_("Green Channel") "\n" - "" N_("Blue Channel") "\n" - "" N_("Cyan Channel") "\n" - "" N_("Magenta Channel") "\n" - "" N_("Yellow Channel") "\n" - "" N_("Black Channel") "\n" - "" N_("Opacity Channel") "\n" - "" N_("Matte Channel") "\n" + "<_item value='Red Channel'>" N_("Red Channel") "\n" + "<_item value='Green Channel'>" N_("Green Channel") "\n" + "<_item value='Blue Channel'>" N_("Blue Channel") "\n" + "<_item value='Cyan Channel'>" N_("Cyan Channel") "\n" + "<_item value='Magenta Channel'>" N_("Magenta Channel") "\n" + "<_item value='Yellow Channel'>" N_("Yellow Channel") "\n" + "<_item value='Black Channel'>" N_("Black Channel") "\n" + "<_item value='Opacity Channel'>" N_("Opacity Channel") "\n" + "<_item value='Matte Channel'>" N_("Matte Channel") "\n" "\n" "\n" "all\n" diff --git a/src/extension/internal/bitmap/levelChannel.cpp b/src/extension/internal/bitmap/levelChannel.cpp index c3498fd64..601e4d693 100644 --- a/src/extension/internal/bitmap/levelChannel.cpp +++ b/src/extension/internal/bitmap/levelChannel.cpp @@ -51,15 +51,15 @@ LevelChannel::init(void) "" N_("Level (with Channel)") "\n" "org.inkscape.effect.bitmap.levelChannel\n" "\n" - "" N_("Red Channel") "\n" - "" N_("Green Channel") "\n" - "" N_("Blue Channel") "\n" - "" N_("Cyan Channel") "\n" - "" N_("Magenta Channel") "\n" - "" N_("Yellow Channel") "\n" - "" N_("Black Channel") "\n" - "" N_("Opacity Channel") "\n" - "" N_("Matte Channel") "\n" + "<_item value='Red Channel'>" N_("Red Channel") "\n" + "<_item value='Green Channel'>" N_("Green Channel") "\n" + "<_item value='Blue Channel'>" N_("Blue Channel") "\n" + "<_item value='Cyan Channel'>" N_("Cyan Channel") "\n" + "<_item value='Magenta Channel'>" N_("Magenta Channel") "\n" + "<_item value='Yellow Channel'>" N_("Yellow Channel") "\n" + "<_item value='Black Channel'>" N_("Black Channel") "\n" + "<_item value='Opacity Channel'>" N_("Opacity Channel") "\n" + "<_item value='Matte Channel'>" N_("Matte Channel") "\n" "\n" "0.0\n" "100.0\n" diff --git a/src/extension/internal/cairo-pdf-out.cpp b/src/extension/internal/cairo-pdf-out.cpp index 455230dad..b33fee9bf 100644 --- a/src/extension/internal/cairo-pdf-out.cpp +++ b/src/extension/internal/cairo-pdf-out.cpp @@ -218,7 +218,7 @@ CairoPdfOutput::init (void) "" N_("Cairo PDF Output") "\n" "org.inkscape.output.pdf.cairo\n" "\n" - "" N_("PDF 1.4") "\n" + "<_item value='PDF14'>" N_("PDF 1.4") "\n" "\n" "false\n" "false\n" diff --git a/src/extension/internal/cairo-ps-out.cpp b/src/extension/internal/cairo-ps-out.cpp index 4b0f17d30..1a4a4a576 100644 --- a/src/extension/internal/cairo-ps-out.cpp +++ b/src/extension/internal/cairo-ps-out.cpp @@ -222,9 +222,9 @@ CairoPsOutput::init (void) "" N_("Cairo PS Output") "\n" "" SP_MODULE_KEY_PRINT_CAIRO_PS "\n" "\n" - "" N_("PostScript level 3") "\n" + "<_item value='PS3'>" N_("PostScript level 3") "\n" #if (CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 5, 2)) - "" N_("PostScript level 2") "\n" + "<_item value='PS2'>" N_("PostScript level 2") "\n" #endif "\n" "false\n" diff --git a/src/extension/paramenum.cpp b/src/extension/paramenum.cpp index 199512e0e..336b4fd66 100644 --- a/src/extension/paramenum.cpp +++ b/src/extension/paramenum.cpp @@ -77,6 +77,8 @@ ParamComboBox::ParamComboBox (const gchar * name, const gchar * guitext, const g const char * contents = sp_repr_children(child_repr)->content(); if (contents != NULL) // don't translate when 'item' but do translate when '_item' + // NOTE: internal extensions use build_from_mem and don't need _item but + // still need to include if are to be localized newguitext = new Glib::ustring( !strcmp(chname, "_item") ? _(contents) : contents ); else continue;