Hi,

the documentation is misleading. This feature was never fully implemented and there is no way to handle translations automatically at the manifest level right now. Sorry for that. The paragraph in the doc block should be deleted (or the translation system be implemented...)

Cheers,

Sascha


On 05/10/2017 04:29 PM, IBlackCatter . wrote:
Dear MITK users,

I am adding new plugins to MITK and need to get their localized names to display in menu.

After some search this lines of code were found:

MITK/Plugins/org.blueberry.core.runtime/src/registry/berryIExtension.h

/**
* Returns a displayable label for this extension.
* Returns the empty string if no label for this extension
* is specified in the extension manifest file.
* <p> Note that any translation specified in the extension manifest
* file is automatically applied.
* <p>
*
* @return a displayable string label for this extension,
* possibly the empty string
* @throws InvalidRegistryObjectException if this extension is no longer valid
*/
virtual QString GetLabel() const = 0;


But it is not clear how translation should be specified in manifest file. And I can't find any examples of such functionality being used.
How can i achieve getting localized label from this function?

I really appreciate any help you can provide.

--
Artem Burjachenko


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to