12 Localization
Aurora Lahtela edited this page 2023-10-07 08:37:06 +03:00

Plan Header

Localization

This article will tell you how you can change the messages seen in the plugin.

Config setting

In the config, there is a setting for Locale. Setting this to, for example FI, (Finnish) will attempt to use locale from inside the plugin jar. Inside the plugin there are multiple locale files.

Generating a locale file

  • Set the locale to one you want to customize (FI will create locale.yml with the Finnish locale as base)
  • Set Logging.Create_new_locale_file_on_next_enable to true and /plan reload
  • locale.yml should appear in /plugins/Plan
  • This file will be used for locale when present.

Updating old locale files

  • (Optional) Set Logging.Create_new_locale_file_on_next_enable to true and /plan reload
    • New lines will be added without modifying old ones
  • Set Logging.Log_untranslated_locale_keys to true and /plan reload
    • Keys with default values will be printed on the console.

End

If you want to help me out with localizing the plugin to your language, you can translate the locale file to your language and send the contents to me in one way: