Discussion:
[mitk-users] Plugin's Label Localization
IBlackCatter .
2017-05-10 14:29:13 UTC
Permalink
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
Sascha Zelzer
2017-05-11 18:01:34 UTC
Permalink
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
Post by IBlackCatter .
Dear MITK users,
I am adding new plugins to MITK and need to get their localized names
to display in menu.
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>
*
* possibly the empty string
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
https://lists.sourceforge.net/lists/listinfo/mitk-users
Loading...