Move language submodule to resources/

again, this isn't source code.
This commit is contained in:
Dylan K. Taylor 2018-11-05 09:49:21 +00:00
parent ce7718f0d1
commit c201a0e909
3 changed files with 3 additions and 3 deletions

2
.gitmodules vendored
View File

@ -1,5 +1,5 @@
[submodule "src/pocketmine/lang/locale"]
path = src/pocketmine/lang/locale
path = resources/locale
url = https://github.com/pmmp/PocketMine-Language.git
[submodule "tests/preprocessor"]
path = tests/preprocessor

View File

@ -35,7 +35,7 @@ class Language{
*/
public static function getLanguageList(string $path = "") : array{
if($path === ""){
$path = \pocketmine\PATH . "src/pocketmine/lang/locale/";
$path = \pocketmine\RESOURCE_PATH . "locale/";
}
if(is_dir($path)){
@ -82,7 +82,7 @@ class Language{
$this->langName = strtolower($lang);
if($path === null){
$path = \pocketmine\PATH . "src/pocketmine/lang/locale/";
$path = \pocketmine\RESOURCE_PATH . "locale/";
}
$this->lang = self::loadLang($path, $this->langName);