Hey Guys...How are you?How to write Massages in the Code is easy:For Exampel,If A Event happen: PHP: $sender->sendMessage(TextFormat::RED."Ya"); But how to get Massages in a other folder? How?I thaught: PHP: $event->sendMessage($this->getDataFolder(). "EnglishMessages.yml"->getMessage("Test");[PHP] And in the English.yml you should write Test: "Hey...Guys! "BUT this didn't work..So how to write it?Thx
Massage folders? Well why didn't you say so? http://www.iconarchive.com/tag/massage-folder And look at PurePerms, it supports multiple languages.
For each config you need to configure it, as you made the initialization for the normal config.yml you should simply copy the code and edit the config with EnglishMessages.yml, then give it a variable, and do $this->englishmessagescfg->get("Test");
This framework supports fallback language queue. For example, if your language queue is `zh, it, en`, it will first search for the string in the `zh` file, then the `it` file, then the `en` file, if not found. https://github.com/LegionPE/LegionPE-Theta-Base/tree/master/src/legionpe/theta/lang