MyWarp

MyWarp

220k Downloads

Make resource bundles user configurable

TheE opened this issue ยท 1 comments

commented

In MyWarp 2.6, the resource bundles where read from disk so that server owners could configure them to their liking and add their own. If this behaviour is still required, resource bundles should be stored in a folder in the platform's data folder using FolderSourcedControl. They need to be updated whenever new keys are added, this could be done using the PropertiesUtils.

However this behaviour might not be needed if MyWarp comes with a few more bundled localizations.

commented

After some consideration, the system will work as follows and is implemented in a RessourceBundle.Control implementation bundled, but not enforced, by the core:

  • Users may override bundled resource bundles or add entirely new ones by putting them in a special folder inside of MyWarp's plugin folder.
  • These files will not be updated in any way, missing keys are resolved via the standard bundle lookup order.
  • The root resource bundle cannot be overwritten.
  • Folder and files will not be created automatically. By default only bundled files will be used.
  • Files will use UTF-8 (as they do now).

Additionally localizations wil be crowd-sourced at a best-effort basis.