Class LocaleSystem
java.lang.Object
com.djrapitops.plan.settings.locale.LocaleSystem
- All Implemented Interfaces:
SubSystem
System in charge of
Locale
.-
Constructor Summary
ConstructorDescriptionLocaleSystem
(PlanFiles files, PlanConfig config, AssetVersions assetVersions, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Performs disable actions for the subsystemvoid
enable()
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) long
-
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:SubSystem
Performs enable actions for the subsystem. -
disable
public void disable()Description copied from interface:SubSystem
Performs disable actions for the subsystem -
getLocale
-
getMaxLocaleVersion
public long getMaxLocaleVersion() -
getLocaleVersion
-
getCustomLocaleVersion
-