Studio Developer Manual / Version 2010
Table Of Contents
In CoreMedia Feedback Hub you may provide localization for the UI elements
in the FeedbackHubPanel
of your adapter. The localization for Feedback Hub needs to be provided in an extra Feedback Hub extension for studio-client
.
Within that extension you need to provide a StudioPlugin
that holds the configuration which copies the resource bundle of your
adapter to the com.coremedia.cms.studio.feedbackhub.FeedbackHub
.
<?xml version="1.0" encoding="UTF-8"?> <editor:StudioPlugin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="exml:ext.config" xmlns:exml="http://www.jangaroo.net/exml/0.8" xmlns:editor="exml:com.coremedia.cms.editor.sdk.config"> <fx:Metadata> [ResourceBundle('com.coremedia.cms.studio.feedbackhub.FeedbackHub')] [ResourceBundle('com.coremedia.blueprint.studio.feedbackhub.custom.FeedbackHubCustom')] </fx:Metadata> <fx:Script><![CDATA[ import mx.resources.ResourceManager; public static const xtype:String = "com.coremedia.blueprint.studio.feedbackhub.custom.config.customFeedbackHubStudioPlugin"; public native function CustomFeedbackHubStudioPlugin(config:CustomFeedbackHubStudioPlugin = null); ]]></fx:Script> <editor:configuration> <editor:CopyResourceBundleProperties destination="{ResourceManager.getInstance().getResourceBundle(null, 'com.coremedia.cms.studio.feedbackhub.FeedbackHub')}" source="{ResourceManager.getInstance().getResourceBundle(null, 'com.coremedia.blueprint.studio.feedbackhub.custom.FeedbackHubCustom')}"/> </editor:configuration> </editor:StudioPlugin>
In your FeedbackHubCustom
-bundle you can provide a localization for the following items. The <factoryId> value needs to match the factoryId
of you configuration:
Item | naming pattern | Description | |
---|---|---|---|
Tab Icon | feedbackGroupPanel_<factoryId>_iconCls | The tab icon that is shown for the tab of your adapter's groupID | |
Load Feedback button text | feedbackGroupPanel_<factoryId>_loadFeedback_text | Text that is shown at the button, that triggers a feedback load | |
Tool Tip for Load Button | feedbackGroupPanel_<factoryId>_loadFeedback_tooltip | Text that is shown while loading feedback | |
Panel Tooltip | feedbackGroupPanel_<factoryId>_tooltip | Tooltip for the Panel Icon | |
Nagbar Title | feedbackItemPanel_<factoryId>_error_title | Title that is shown in the Nagbar in case of an error | |
Panel Title | keywordsFeedbackItemPanel_<factoryId>_keywords_title | Title that is shown for the panel of you Adapter |
Table 7.8. Localization for Custom Feedback Hub Adapter