Code

i18n patch from Marcin
authorprokoudine <prokoudine@users.sourceforge.net>
Wed, 13 Feb 2008 10:34:43 +0000 (10:34 +0000)
committerprokoudine <prokoudine@users.sourceforge.net>
Wed, 13 Feb 2008 10:34:43 +0000 (10:34 +0000)
src/dialogs/export.cpp
src/filter-enums.cpp
src/flood-context.cpp
src/ui/dialog/filter-effects-dialog.cpp

index 10dbc575f10b5f850b19eed6014c9bd14b086f39..6f7bf251124ea4be3cbe3d312fd09d24652d086e 100644 (file)
@@ -679,7 +679,7 @@ sp_export_update_checkbuttons (GtkObject *base)
     GtkWidget *he = (GtkWidget *)gtk_object_get_data(base, "hide_checkbox");
     if (num >= 2) {
         gtk_widget_set_sensitive (be, true);
-        gtk_button_set_label (GTK_BUTTON(be), g_strdup_printf (_("Batch export %d selected objects"), num));
+        gtk_button_set_label (GTK_BUTTON(be), g_strdup_printf (ngettext("Batch export %d selected object","Batch export %d selected objects",num), num));
     } else {
         gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(be), FALSE);
         gtk_widget_set_sensitive (be, FALSE);
index c7eadc18f3340c9afd5fdd68d32fc24027d13593..df494c50c1c80004bcdff5957b915abf40e383de 100644 (file)
@@ -48,7 +48,8 @@ const EnumDataConverter<FilterPrimitiveInput> FPInputConverter(FPInputData, FPIN
 
 // feBlend
 const EnumData<NR::FilterBlendMode> BlendModeData[NR::BLEND_ENDMODE] = {
-    {NR::BLEND_NORMAL,   _("Normal"),   "normal"},
+    //TRANSLATORS: This is a context string, only put the word "Normal" in your translation
+    {NR::BLEND_NORMAL,   Q_("filterBlendMode|Normal"),   "normal"},
     {NR::BLEND_MULTIPLY, _("Multiply"), "multiply"},
     {NR::BLEND_SCREEN,   _("Screen"),   "screen"},
     {NR::BLEND_DARKEN,   _("Darken"),   "darken"},
index 7dc832843cf02a16f5a8cacb0274fbcb76ea64ec..9f0b041f3a09cacf53294d3bdc726c9eb81b38ea 100644 (file)
@@ -458,11 +458,11 @@ static void do_trace(GdkPixbuf *px, SPDesktop *desktop, NR::Matrix transform, bo
             pathRepr->setPosition(-1);
 
             if (union_with_selection) {
-                desktop->messageStack()->flashF(Inkscape::WARNING_MESSAGE, _("Area filled, path with <b>%d</b> nodes created and unioned with selection."), sp_nodes_in_path(SP_PATH(reprobj)));
+                desktop->messageStack()->flashF(Inkscape::WARNING_MESSAGE, ngettext("Area filled, path with <b>%d</b> node created and unioned with selection.","Area filled, path with <b>%d</b> nodes created and unioned with selection.",sp_nodes_in_path(SP_PATH(reprobj))), sp_nodes_in_path(SP_PATH(reprobj)));
                 selection->add(reprobj);
                 sp_selected_path_union_skip_undo();
             } else {
-                desktop->messageStack()->flashF(Inkscape::WARNING_MESSAGE, _("Area filled, path with <b>%d</b> nodes created."), sp_nodes_in_path(SP_PATH(reprobj)));
+                desktop->messageStack()->flashF(Inkscape::WARNING_MESSAGE, ngettext("Area filled, path with <b>%d</b> node created.","Area filled, path with <b>%d</b> nodes created.",sp_nodes_in_path(SP_PATH(reprobj))), sp_nodes_in_path(SP_PATH(reprobj)));
                 selection->set(reprobj);
             }
 
index eaf940f5881b3ac96d9883bfdc3fdfceb91861dd..95b1f371a46843620e985d10f19e682b8ae85938 100644 (file)
@@ -2153,7 +2153,8 @@ void FilterEffectsDialog::init_settings_widgets()
     _settings->type(NR_FILTER_IMAGE);
     _settings->add_fileorelement(SP_ATTR_XLINK_HREF, _("Source of Image"));
     _settings->add_multispinbutton(SP_ATTR_X, SP_ATTR_Y, _("Coordinates"), -10000, 10000, 1, 1, 0);
-    _settings->add_multispinbutton(SP_ATTR_WIDTH, SP_ATTR_HEIGHT, _("Dimensions"), 0, 10000, 1, 1, 0);
+    //TRANSLATORS: This is a context string, only put the word "Dimensions" in your translation
+    _settings->add_multispinbutton(SP_ATTR_WIDTH, SP_ATTR_HEIGHT, Q_("imageFilter|Dimensions"), 0, 10000, 1, 1, 0);
 
     _settings->type(NR_FILTER_OFFSET);
     _settings->add_spinslider(SP_ATTR_DX, _("Delta X"), -100, 100, 1, 0.01, 1);