index 9811cc89c638fa16969a051471f5d5a1e5675243..b3c8ce37633683a2d57d1d2b4205bb8699d4f9d6 100644 (file)
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
#include "preferences.h"
#include "desktop-handles.h"
#include "inkscape.h"
-#include "dialogs/eek-preview.h"
+#include "widgets/eek-preview.h"
namespace Inkscape {
namespace UI {
}
{
- Glib::ustring heightItemLabel(Q_("swatches|Size"));
+ Glib::ustring heightItemLabel(C_("Swatches", "Size"));
- //TRANSLATORS: Indicates size of colour swatches
+ //TRANSLATORS: Indicates size of colour swatches
const gchar *heightLabels[] = {
- N_("tiny"),
- N_("small"),
- //TRANSLATORS: Translate only the word "medium". Indicates size of colour swatches
- N_("swatchesHeight|medium"),
- N_("large"),
- N_("huge")
+ NC_("Swatches height", "Tiny"),
+ NC_("Swatches height", "Small"),
+ NC_("Swatches height", "Medium"),
+ NC_("Swatches height", "Large"),
+ NC_("Swatches height", "Huge")
};
Gtk::MenuItem *sizeItem = manage(new Gtk::MenuItem(heightItemLabel));
Gtk::RadioMenuItem::Group heightGroup;
for (unsigned int i = 0; i < G_N_ELEMENTS(heightLabels); i++) {
- Glib::ustring _label(Q_(heightLabels[i]));
+ Glib::ustring _label(g_dpgettext2(NULL, "Swatches height", heightLabels[i]));
Gtk::RadioMenuItem* _item = manage(new Gtk::RadioMenuItem(heightGroup, _label));
sizeMenu->append(*_item);
if (i == panel_size) {
- _item->set_active(true);
+ _item->set_active(true);
}
_item->signal_activate().connect(sigc::bind<int, int>(sigc::mem_fun(*this, &Panel::_bounceCall), PANEL_SETTING_SIZE, i));
}
}
{
- Glib::ustring widthItemLabel(Q_("swatches|Width"));
+ Glib::ustring widthItemLabel(C_("Swatches", "Width"));
//TRANSLATORS: Indicates width of colour swatches
const gchar *widthLabels[] = {
- N_("narrower"),
- N_("narrow"),
- //TRANSLATORS: Translate only the word "medium". Indicates width of colour swatches
- N_("swatchesWidth|medium"),
- N_("wide"),
- N_("wider")
+ NC_("Swatches width", "Narrower"),
+ NC_("Swatches width", "Narrow"),
+ NC_("Swatches width", "Medium"),
+ NC_("Swatches width", "Wide"),
+ NC_("Swatches width", "Wider")
};
Gtk::MenuItem *item = manage( new Gtk::MenuItem(widthItemLabel));
}
}
for ( guint i = 0; i < G_N_ELEMENTS(widthLabels); ++i ) {
- Glib::ustring _label(Q_(widthLabels[i]));
+ Glib::ustring _label(g_dpgettext2(NULL, "Swatches width", widthLabels[i]));
Gtk::RadioMenuItem *_item = manage(new Gtk::RadioMenuItem(widthGroup, _label));
type_menu->append(*_item);
if ( i <= hot_index ) {
- _item->set_active(true);
+ _item->set_active(true);
}
_item->signal_activate().connect(sigc::bind<int, int>(sigc::mem_fun(*this, &Panel::_bounceCall), PANEL_SETTING_SHAPE, values[i]));
}
}
{
- //TRANSLATORS: Translate only the word "Wrap". Indicates how colour swatches are displayed
- Glib::ustring wrap_label(Q_("swatches|Wrap"));
+ //TRANSLATORS: "Wrap" indicates how colour swatches are displayed
+ Glib::ustring wrap_label(C_("Swatches","Wrap"));
Gtk::CheckMenuItem *check = manage(new Gtk::CheckMenuItem(wrap_label));
check->set_active(panel_wrap);
_menu->append(*check);
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :