Class LocaleSystem
java.lang.Object
com.djrapitops.plan.settings.locale.LocaleSystem
- All Implemented Interfaces:
SubSystem
-
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
-
prepareFileWatcher
-
loadSettingLocale
-
disable
-
getLocale
-
getMaxLocaleVersion
public long getMaxLocaleVersion() -
getLocaleVersion
-
getCustomLocaleVersion
-