mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Updated translation APIs
This commit is contained in:
parent
0da1810aaa
commit
57e1509c3a
@ -2131,6 +2131,14 @@ final class KnownTranslationFactory{
|
||||
return new Translatable(KnownTranslationKeys::SERVER_PORT, []);
|
||||
}
|
||||
|
||||
public static function server_port_v4() : Translatable{
|
||||
return new Translatable(KnownTranslationKeys::SERVER_PORT_V4, []);
|
||||
}
|
||||
|
||||
public static function server_port_v6() : Translatable{
|
||||
return new Translatable(KnownTranslationKeys::SERVER_PORT_V6, []);
|
||||
}
|
||||
|
||||
public static function server_properties() : Translatable{
|
||||
return new Translatable(KnownTranslationKeys::SERVER_PROPERTIES, []);
|
||||
}
|
||||
@ -2155,6 +2163,10 @@ final class KnownTranslationFactory{
|
||||
return new Translatable(KnownTranslationKeys::TILE_BED_TOOFAR, []);
|
||||
}
|
||||
|
||||
public static function view_distance() : Translatable{
|
||||
return new Translatable(KnownTranslationKeys::VIEW_DISTANCE, []);
|
||||
}
|
||||
|
||||
public static function welcome_to_pocketmine(Translatable|string $param0) : Translatable{
|
||||
return new Translatable(KnownTranslationKeys::WELCOME_TO_POCKETMINE, [
|
||||
0 => $param0,
|
||||
|
@ -443,12 +443,15 @@ final class KnownTranslationKeys{
|
||||
public const QUERY_WARNING1 = "query_warning1";
|
||||
public const QUERY_WARNING2 = "query_warning2";
|
||||
public const SERVER_PORT = "server_port";
|
||||
public const SERVER_PORT_V4 = "server_port_v4";
|
||||
public const SERVER_PORT_V6 = "server_port_v6";
|
||||
public const SERVER_PROPERTIES = "server_properties";
|
||||
public const SETTING_UP_SERVER_NOW = "setting_up_server_now";
|
||||
public const SKIP_INSTALLER = "skip_installer";
|
||||
public const TILE_BED_NOSLEEP = "tile.bed.noSleep";
|
||||
public const TILE_BED_OCCUPIED = "tile.bed.occupied";
|
||||
public const TILE_BED_TOOFAR = "tile.bed.tooFar";
|
||||
public const VIEW_DISTANCE = "view_distance";
|
||||
public const WELCOME_TO_POCKETMINE = "welcome_to_pocketmine";
|
||||
public const WHITELIST_ENABLE = "whitelist_enable";
|
||||
public const WHITELIST_INFO = "whitelist_info";
|
||||
|
Loading…
x
Reference in New Issue
Block a user