summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2012-11-26 07:04:44 +0000
committerJazzyNico <nicoduf@yahoo.fr>2012-11-26 07:04:44 +0000
commit97ef01fe17c522cbe313add9f7136aa09ad0350d (patch)
treec5805d7565ebd933a8b092df4df3c69eb9f6f887
parentFix undo history entry for layer renaming to be consistent with 'Rename Layer... (diff)
downloadinkscape-97ef01fe17c522cbe313add9f7136aa09ad0350d.tar.gz
inkscape-97ef01fe17c522cbe313add9f7136aa09ad0350d.zip
i18n. Fix for Bug #1083043 (Symbols dialog isn't translatable).
(bzr r11904)
-rw-r--r--po/POTFILES.in1
-rw-r--r--po/inkscape.pot34
-rw-r--r--src/ui/dialog/symbols.cpp16
3 files changed, 43 insertions, 8 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 10417053f..16026779d 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -254,6 +254,7 @@ src/ui/dialog/print.cpp
src/ui/dialog/print-colors-preview-dialog.cpp
src/ui/dialog/scriptdialog.cpp
src/ui/dialog/svg-fonts-dialog.cpp
+src/ui/dialog/symbols.cpp
src/ui/dialog/swatches.cpp
src/ui/dialog/tile.cpp
src/ui/dialog/tracedialog.cpp
diff --git a/po/inkscape.pot b/po/inkscape.pot
index 26fa90fe5..9f1c3c28d 100644
--- a/po/inkscape.pot
+++ b/po/inkscape.pot
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: inkscape-devel@lists.sourceforge.net\n"
-"POT-Creation-Date: 2012-11-25 20:58+0100\n"
+"POT-Creation-Date: 2012-11-26 07:41+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -19054,6 +19054,38 @@ msgstr ""
msgid "Preview Text:"
msgstr ""
+#. ******************* Symbol Sets ************************
+#: ../src/ui/dialog/symbols.cpp:102
+msgid "Symbol set: "
+msgstr ""
+
+#: ../src/ui/dialog/symbols.cpp:107 ../src/ui/dialog/symbols.cpp:109
+#: ../src/ui/dialog/symbols.cpp:111
+msgid "Current Document"
+msgstr ""
+
+#. ******************* Preview Scale **********************
+#: ../src/ui/dialog/symbols.cpp:147
+msgid "Preview scale: "
+msgstr ""
+
+#: ../src/ui/dialog/symbols.cpp:152
+msgid "Fit"
+msgstr ""
+
+#: ../src/ui/dialog/symbols.cpp:152
+msgid "Fit to width"
+msgstr ""
+
+#: ../src/ui/dialog/symbols.cpp:152
+msgid "Fit to height"
+msgstr ""
+
+#. ******************* Preview Size ***********************
+#: ../src/ui/dialog/symbols.cpp:170
+msgid "Preview size: "
+msgstr ""
+
#. TRANSLATORS: An item in context menu on a colour in the swatches
#: ../src/ui/dialog/swatches.cpp:255
msgid "Set fill"
diff --git a/src/ui/dialog/symbols.cpp b/src/ui/dialog/symbols.cpp
index 8cf48f827..4c3a406f0 100644
--- a/src/ui/dialog/symbols.cpp
+++ b/src/ui/dialog/symbols.cpp
@@ -15,6 +15,8 @@
#include <iostream>
#include <algorithm>
+#include <glibmm/i18n.h>
+
#include <gtkmm/buttonbox.h>
#include <gtkmm/label.h>
#include <gtkmm/table.h>
@@ -97,16 +99,16 @@ SymbolsDialog::SymbolsDialog( gchar const* prefsPath ) :
guint row = 0;
/******************** Symbol Sets *************************/
- Gtk::Label* labelSet = new Gtk::Label("Symbol set: ");
+ Gtk::Label* labelSet = new Gtk::Label(_("Symbol set: "));
table->attach(*Gtk::manage(labelSet),0,1,row,row+1,Gtk::SHRINK,Gtk::SHRINK);
symbolSet = new Gtk::ComboBoxText(); // Fill in later
#if WITH_GTKMM_2_24
- symbolSet->append("Current Document");
+ symbolSet->append(_("Current Document"));
#else
- symbolSet->append_text("Current Document");
+ symbolSet->append_text(_("Current Document"));
#endif
- symbolSet->set_active_text("Current Document");
+ symbolSet->set_active_text(_("Current Document"));
table->attach(*Gtk::manage(symbolSet),1,2,row,row+1,Gtk::FILL|Gtk::EXPAND,Gtk::SHRINK);
sigc::connection connSet =
@@ -142,12 +144,12 @@ SymbolsDialog::SymbolsDialog( gchar const* prefsPath ) :
++row;
/******************** Preview Scale ***********************/
- Gtk::Label* labelScale = new Gtk::Label("Preview scale: ");
+ Gtk::Label* labelScale = new Gtk::Label(_("Preview scale: "));
table->attach(*Gtk::manage(labelScale),0,1,row,row+1,Gtk::SHRINK,Gtk::SHRINK);
previewScale = new Gtk::ComboBoxText();
const gchar *scales[] =
- {"Fit", "Fit to width", "Fit to height", "0.1", "0.2", "0.5", "1.0", "2.0", "5.0", NULL};
+ {_("Fit"), _("Fit to width"), _("Fit to height"), "0.1", "0.2", "0.5", "1.0", "2.0", "5.0", NULL};
for( int i = 0; scales[i]; ++i ) {
#if WITH_GTKMM_2_24
previewScale->append(scales[i]);
@@ -165,7 +167,7 @@ SymbolsDialog::SymbolsDialog( gchar const* prefsPath ) :
++row;
/******************** Preview Size ************************/
- Gtk::Label* labelSize = new Gtk::Label("Preview size: ");
+ Gtk::Label* labelSize = new Gtk::Label(_("Preview size: "));
table->attach(*Gtk::manage(labelSize),0,1,row,row+1,Gtk::SHRINK,Gtk::SHRINK);
previewSize = new Gtk::ComboBoxText();