[Not Urgent]Translation
blablubbabcDEV opened this issue ยท 3 comments
Migrated from: https://dev.bukkit.org/projects/shopkeepers/issues/364
Originally posted by kjp236 (Feb 26, 2016):
What is the enhancement in mind? How should it look and feel?Please provide any additional information below.- I would like to translate this plugin into Korean language.Please provide me with the required file and instruction.Also, I would like to know if it's possible to write NPC names in other language such as Korean.
If possible, how should I go about doing this?Thank you in advance.
Originally commented by blablubbabc (Feb 26, 2016):
Quote:I would like to translate this plugin into Korean language.
You can find and edit all messages in the config file.
You can also copy those message-settings into a separate new config file called 'language-ko.yml', change them there and then specify the language in the config by setting 'language' to 'ko'.
Make sure your language file is encoded in utf-8.
Quote:Also, I would like to know if it's possible to write NPC names in other language such as Korean.
If possible, how should I go about doing this?
The villager names are validated against the regular expression found in the config. This regular expression defines which characters are allowed. So you would have to edit your regular expression in the config to also allow chinese characters.
I have not tested this, but you could try adding '\p{L}' to the regular expression. This should theoretically allow all characters of any language.
Or you can try adding 'p{IsHan}' or 'p{han}', one of those might allow korean letters.
Edited Mar 2, 2016