Adding locales

Adding locale

This is step-by-step guide on adding your own language to Sysinfo

Step 1

Find out yor language's code - for Polish it's 'pl', for English 'en', German is 'de' etc.

Step 2

Unpack plugin's jar, select file locale.yml, press Ctrl+C and Ctrl+V. You should have now two files: locale.yml and Copy of locale.yml or similiar.

Step 3

Rename copy to locale-xx.yml (xx is language code) and translate it. Do not modify YAML!

Step 4

Important! plugin has to know about the new locale so it can copy it to /plugins/Sysinfo/locale-xx.yml Open config.yml and find

locales: [pl, en]

change it to

locales: [pl, en, xx] 

Simply adding the xx item to list.

Step 4.5

In some archive software you need to save changes to archive - do it.

Step 5

Reload server

Step 6

Go to /plugins/Sysinfo

Step 7

Delete file locale.yml. Rename locale-xx.yml to locale.yml

Step 8

Reload server again.

If you need any help on this topic, please PM me

Done! If you want to share your work beetween other users - PM me or comment with link to paste.bukkit.org or Pastebin.com or just with the content of your locale! I'll add it in next version (of course mentioning you on plugin's page)!


Comments

Posts Quoted:
Reply
Clear All Quotes