@Component public class I18nPopulator extends Object
PropertiesMessageSource beans at startup.
Only adds new strings, does not update existing ones, because otherwise the ones you have changed using the dataexplorer will be overwritten again on the next startup.
| Constructor and Description |
|---|
I18nPopulator(org.molgenis.data.DataService dataService,
org.molgenis.data.i18n.model.LanguageFactory languageFactory,
org.molgenis.data.i18n.LocalizationPopulator localizationPopulator,
List<org.molgenis.i18n.PropertiesMessageSource> localizationMessageSources) |
| Modifier and Type | Method and Description |
|---|---|
void |
populateL10nStrings()
Populates dataService with localization strings from property files on the classpath.
|
void |
populateLanguages()
Populate data store with default languages
|
public I18nPopulator(org.molgenis.data.DataService dataService,
org.molgenis.data.i18n.model.LanguageFactory languageFactory,
org.molgenis.data.i18n.LocalizationPopulator localizationPopulator,
List<org.molgenis.i18n.PropertiesMessageSource> localizationMessageSources)
public void populateL10nStrings()
N.B. If you want to add a namespace with a localization resourcebundle, you need to add a PropertiesMessageSource bean to the spring context for that namespace.
public void populateLanguages()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.