El Dissabte, 3 de gener de 2015, a les 11:19:02, Boudewijn Rempt va escriure:
> I'm currently trying to clean up the way actions are creating in Krita,
> and I want use the Action definition from
> http://www.kde.org/standards/kxmlgui/1.0/kxmlgui.xsd with a bit of an
> extension to do that.
> 
> The Action type has
> 
> <xsd:attribute name="text" type="xsd:string" use="optional"/>
> <xsd:attribute name="whatsThis" type="xsd:string" use="optional"/>
> <xsd:attribute name="toolTip" type="xsd:string" use="optional"/>
> <xsd:attribute name="iconText" type="xsd:string" use="optional"/>
> 
> But it seems that those attributes aren't actually used anywhere
> (anymore?)
> 
> I'm creating XXX.action files with an ActionList and Actions for the
> various plugins and loading those on startup to create an actioncollection
> that I then clone for every mainwindow.
> 
> That seems to work -- but I don't know how to make sure those strings get
> translated.

I don't understand your question. You're creating a KAction manually?
Then call i18n in your C++ code and make sure the text from your .action file 
is extracted in Messages.sh, no?

Cheers,
  Albert

> 
> Boudewijn
> 
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
> >> <<


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to