本文整理汇总了Java中info.magnolia.i18nsystem.SimpleTranslator类的典型用法代码示例。如果您正苦于以下问题:Java SimpleTranslator类的具体用法?Java SimpleTranslator怎么用?Java SimpleTranslator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SimpleTranslator类属于info.magnolia.i18nsystem包,在下文中一共展示了SimpleTranslator类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: ComponentTemplateSelectFieldFactory
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public ComponentTemplateSelectFieldFactory(Definition definition, Item relatedFieldItem, SimpleTranslator i18n, MessagesManager oldi18n, TemplateDefinitionRegistry registry) {
super(definition, relatedFieldItem);
this.i18n = i18n;
this.oldi18n = oldi18n;
currentComponent = relatedFieldItem;
this.registry = registry;
try {
this.siteManager = Components.getComponent(Class.forName("info.magnolia.module.templatingkit.sites.SiteManager"));
} catch (Exception e) {
log.debug(e.getMessage(), e);
try {
this.siteManager = Components.getComponent(Class.forName("info.magnolia.module.site.SiteManager"));
} catch (ClassNotFoundException e1) {
log.debug(e.getMessage(), e);
}
}
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:19,代码来源:ComponentTemplateSelectFieldFactory.java
示例2: RestorePreviousNews
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
public RestorePreviousNews(RestoreItemPreviousVersionActionDefinition definition, JcrItemAdapter item,
CommandsManager commandsManager, @Named("admincentral") EventBus eventBus, UiContext uiContext,
SimpleTranslator i18n, LocationController locationController) {
super(definition, item, commandsManager, eventBus, uiContext, i18n);
this.locationController = locationController;
}
开发者ID:tricode,项目名称:magnolia-news,代码行数:9,代码来源:RestorePreviousNews.java
示例3: RestorePreviousBlogs
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
public RestorePreviousBlogs(RestoreItemPreviousVersionActionDefinition definition, JcrItemAdapter item,
CommandsManager commandsManager, @Named("admincentral") EventBus eventBus, UiContext uiContext,
SimpleTranslator i18n, LocationController locationController) {
super(definition, item, commandsManager, eventBus, uiContext, i18n);
this.locationController = locationController;
}
开发者ID:tricode,项目名称:magnolia-blog,代码行数:9,代码来源:RestorePreviousBlogs.java
示例4: NodeTypeSelectFieldFactory
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public NodeTypeSelectFieldFactory(Definition definition, Item relatedFieldItem, SimpleTranslator i18n, MessagesManager oldi18n, RepositoryManager repoMan, DialogDefinitionRegistry registry) {
super(definition, relatedFieldItem);
this.i18n = i18n;
this.oldi18n = oldi18n;
this.repoMan = repoMan;
this.registry = registry;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:9,代码来源:NodeTypeSelectFieldFactory.java
示例5: ExportMultipleAction
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public ExportMultipleAction(Definition definition, List<JcrItemAdapter> items, CommandsManager commandsManager, UiContext uiContext, SimpleTranslator i18n) throws ActionExecutionException {
super(definition, items.get(0), commandsManager, uiContext, i18n);
// export action doesn't expose init for setting all items so we got to work around
// by getting pointer to a list of items in AbstractCommandAction
List<JcrItemAdapter> list = getItems();
// first item would be already in the list, clear it out
list.clear();
// and adding all items to that list manually.
list.addAll(items);
// and pray that noone ever changes ACA to return copy of item list instead
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:13,代码来源:ExportMultipleAction.java
示例6: FieldTypeSelectFieldFactory
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public FieldTypeSelectFieldFactory(Definition definition, Item relatedFieldItem, SimpleTranslator i18n, MessagesManager oldi18n, RepositoryManager repoMan, FieldTypeDefinitionRegistry registry) {
super(definition, relatedFieldItem);
this.i18n = i18n;
this.oldi18n = oldi18n;
this.repoMan = repoMan;
this.registry = registry;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:9,代码来源:FieldTypeSelectFieldFactory.java
示例7: SolrManagementAppViewImpl
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public SolrManagementAppViewImpl(final SimpleTranslator i18n, final ContentIndexerModule contentIndexerModule) {
this.i18n = i18n;
this.contentIndexerModule = contentIndexerModule;
root.setDescription(i18n.translate("solr.app.management.description"));
root.addSection(createSolrServerInformationSection());
root.addSection(createSolrIndexManagementSection());
root.addSection(createSolrCrawlerManagementSection());
}
开发者ID:infonl,项目名称:solr-app-magnolia-module,代码行数:11,代码来源:SolrManagementAppViewImpl.java
示例8: SolrManagementSubApp
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public SolrManagementSubApp(SubAppContext subAppContext, SolrManagementAppView view,
CommandsManager commandsManager, MagnoliaSolrBridge magnoliaSolrBridge,
MagnoliaSolrSearchProviderModule magnoliaSolrSearchProviderModule, SimpleTranslator i18n) {
super(subAppContext, view);
this.commandsManager = commandsManager;
this.magnoliaSolrBridge = magnoliaSolrBridge;
this.solrServerConfig = magnoliaSolrSearchProviderModule.getSolrConfig();
this.i18n = i18n;
this.view = view;
solrServerUp = isSolrServerUp();
prepareView(view);
}
开发者ID:infonl,项目名称:solr-app-magnolia-module,代码行数:15,代码来源:SolrManagementSubApp.java
示例9: HandlebarsTemplatesResourcesServlet
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public HandlebarsTemplatesResourcesServlet(FreemarkerHelper fmHelper, ResourceLinker linker, SimpleTranslator simpleTranslator) {
super(fmHelper, linker, simpleTranslator);
//this.fmHelper = fmHelper;
}
开发者ID:gtenham,项目名称:magnolia-templating,代码行数:6,代码来源:HandlebarsTemplatesResourcesServlet.java
示例10: FreemarkerTemplatesResourcesServlet
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public FreemarkerTemplatesResourcesServlet(FreemarkerHelper fmHelper, ResourceLinker linker, SimpleTranslator simpleTranslator) {
super(linker);
this.fmHelper = fmHelper;
this.simpleTranslator = simpleTranslator;
}
开发者ID:gtenham,项目名称:magnolia-templating,代码行数:7,代码来源:FreemarkerTemplatesResourcesServlet.java
示例11: ConfigStatusSubApp
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public ConfigStatusSubApp(SubAppContext subAppContext, ConfigStatusPresenter presenter, SimpleTranslator translator) {
super(subAppContext, presenter.start());
this.translator = translator;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:6,代码来源:ConfigStatusSubApp.java
示例12: ConfigStatusViewImpl
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public ConfigStatusViewImpl(SimpleTranslator translator, @Named(AdmincentralEventBus.NAME) final EventBus adminEventBus) {
this.translator = translator;
this.adminEventBus = adminEventBus;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:6,代码来源:ConfigStatusViewImpl.java
示例13: DialogIdSelectFieldFactory
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public DialogIdSelectFieldFactory(Definition definition, Item relatedFieldItem, SimpleTranslator i18n, MessagesManager oldi18n) {
super(definition, relatedFieldItem);
this.i18n = i18n;
this.oldi18n = oldi18n;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:7,代码来源:DialogIdSelectFieldFactory.java
示例14: AppGroupSelectFieldFactory
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public AppGroupSelectFieldFactory(Definition definition, Item relatedFieldItem, SimpleTranslator i18n) {
super(definition, relatedFieldItem);
this.i18n = i18n;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:6,代码来源:AppGroupSelectFieldFactory.java
示例15: QueryableScriptableSelectFieldFactory
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public QueryableScriptableSelectFieldFactory(Definition definition, Item relatedFieldItem, SimpleTranslator i18n, UiContext uiContext) {
super(definition, relatedFieldItem, i18n, uiContext);
this.definition = definition;
}
开发者ID:rah003,项目名称:scripted-select,代码行数:6,代码来源:QueryableScriptableSelectFieldFactory.java
示例16: ScriptableSelectFieldFactory
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public ScriptableSelectFieldFactory(D definition, Item relatedFieldItem, SimpleTranslator i18n, UiContext uiContext) {
super(definition, relatedFieldItem);
this.i18n = i18n;
this.uiContext = uiContext;
}
开发者ID:rah003,项目名称:scripted-select,代码行数:7,代码来源:ScriptableSelectFieldFactory.java
示例17: setSimpleTranslator
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
public void setSimpleTranslator(final SimpleTranslator simpleTranslator) {
_simpleTranslator = simpleTranslator;
}
开发者ID:aperto,项目名称:magnolia-vanity-url,代码行数:5,代码来源:VanityUrlSaveFormAction.java
示例18: VanityUrlDetailSubApp
import info.magnolia.i18nsystem.SimpleTranslator; //导入依赖的package包/类
@Inject
protected VanityUrlDetailSubApp(final SubAppContext subAppContext, final ContentSubAppView view, @Named(AdmincentralEventBus.NAME) EventBus adminCentralEventBus, DetailEditorPresenter workbench, VersionManager versionManager, SimpleTranslator i18n, ContentConnector contentConnector) {
super(subAppContext, view, adminCentralEventBus, workbench, i18n, contentConnector);
_versionManager = versionManager;
_i18n = i18n;
}
开发者ID:aperto,项目名称:magnolia-vanity-url,代码行数:7,代码来源:VanityUrlDetailSubApp.java
注:本文中的info.magnolia.i18nsystem.SimpleTranslator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论