IBlackCatter .
2017-05-10 14:29:13 UTC
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.
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
Artem Burjachenko