Martin Vermeer wrote: > Yes, I know how gettext works -- I did the first Dutch and Finnish > translations remember? But I still don't get what Lars wanted > me to do. Please bend it in copperwire for me. Remember I'm a little > dumb :-)
My misunderstanding. Ok, I think that Lars is suggesting // file frontends/xforms/xformsBC.h class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT> { public: xformsBC(ButtonController const &, string const & = N_("Cancel"), string const & = N_("Close")); ... ]; // file frontends/controllers/BCView.tmpl template <class Button, class Widget> void GuiBC<Button, Widget>::refresh() const { ... bp().buttonStatus(ButtonPolicy::CANCEL); if (enabled) setButtonLabel(cancel_, _(cancel_label_)); else setButtonLabel(cancel_, _(close_label_)); } } or presumably alternatively: // file frontends/xforms/xformsBC.h void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label) const { fl_set_object_label(obj, _(label).c_str()); } -- Angus