Class LocaleSystem
java.lang.Object
com.djrapitops.plan.settings.locale.LocaleSystem
- All Implemented Interfaces:
SubSystem
System in charge of
Locale.-
Constructor Summary
ConstructorsConstructorDescriptionLocaleSystem(PlanFiles files, PlanConfig config, AssetVersions assetVersions, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Performs disable actions for the subsystemvoidenable()Performs enable actions for the subsystem.Get the txt keys of all Lang entries (legacy locale files that need yml conversion).getKeys()Get the yml keys of all Lang entries.getLocaleVersion(LangCode langCode) longprepareFileWatcher(File localeFile)
-
Constructor Details
-
LocaleSystem
@Inject public LocaleSystem(PlanFiles files, PlanConfig config, AssetVersions assetVersions, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Details
-
getIdentifiers
Get the txt keys of all Lang entries (legacy locale files that need yml conversion).- Returns:
- Map of txt key (eg
"HTML - LOGIN_CREATE_ACCOUNT") - Lang (eg.HtmlLang.LOGIN_CREATE_ACCOUNT)
-
getKeys
Get the yml keys of all Lang entries.- Returns:
- Map of yml key (eg.
"html.login.register") - Lang (eg.HtmlLang.LOGIN_CREATE_ACCOUNT)
-
enable
public void enable()Description copied from interface:SubSystemPerforms enable actions for the subsystem. -
prepareFileWatcher
-
loadSettingLocale
-
disable
public void disable()Description copied from interface:SubSystemPerforms disable actions for the subsystem -
getLocale
-
getMaxLocaleVersion
public long getMaxLocaleVersion() -
getLocaleVersion
-
getCustomLocaleVersion
-