mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
Move language submodule to resources/
again, this isn't source code.
This commit is contained in:
parent
ce7718f0d1
commit
c201a0e909
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,5 +1,5 @@
|
|||||||
[submodule "src/pocketmine/lang/locale"]
|
[submodule "src/pocketmine/lang/locale"]
|
||||||
path = src/pocketmine/lang/locale
|
path = resources/locale
|
||||||
url = https://github.com/pmmp/PocketMine-Language.git
|
url = https://github.com/pmmp/PocketMine-Language.git
|
||||||
[submodule "tests/preprocessor"]
|
[submodule "tests/preprocessor"]
|
||||||
path = tests/preprocessor
|
path = tests/preprocessor
|
||||||
|
@ -35,7 +35,7 @@ class Language{
|
|||||||
*/
|
*/
|
||||||
public static function getLanguageList(string $path = "") : array{
|
public static function getLanguageList(string $path = "") : array{
|
||||||
if($path === ""){
|
if($path === ""){
|
||||||
$path = \pocketmine\PATH . "src/pocketmine/lang/locale/";
|
$path = \pocketmine\RESOURCE_PATH . "locale/";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_dir($path)){
|
if(is_dir($path)){
|
||||||
@ -82,7 +82,7 @@ class Language{
|
|||||||
$this->langName = strtolower($lang);
|
$this->langName = strtolower($lang);
|
||||||
|
|
||||||
if($path === null){
|
if($path === null){
|
||||||
$path = \pocketmine\PATH . "src/pocketmine/lang/locale/";
|
$path = \pocketmine\RESOURCE_PATH . "locale/";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lang = self::loadLang($path, $this->langName);
|
$this->lang = self::loadLang($path, $this->langName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user