mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 14:31:13 +01:00
Cleanup
This commit is contained in:
parent
9292b375b4
commit
421fe0f7c5
@ -57,8 +57,6 @@
|
||||
"serialization_ofd": "Serialization is out of date, reconstructing object!",
|
||||
"api_not_set": "You must provide an api key and an api id, get your own @ my.telegram.org",
|
||||
"session_corrupted": "The session is corrupted!",
|
||||
"length_not_4": "The specified base256 32-bit integer must be exactly 4 bytes long.",
|
||||
"length_not_8": "The specified base256 64-bit integer must be exactly 8 bytes long.",
|
||||
"value_bigger_than_2147483647": "Provided value %s is bigger than 2147483647",
|
||||
"value_smaller_than_2147483648": "Provided value %s is smaller than -2147483648",
|
||||
"value_bigger_than_9223372036854775807": "Provided value %s is bigger than 9223372036854775807",
|
||||
|
@ -3,8 +3,6 @@
|
||||
"serialization_ofd": "La serializzazione non \u00e8 aggiornata, reistanziamento dell'oggetto in corso!",
|
||||
"api_not_set": "Devi specificare una chiave ed un ID API, ottienili su https:\/\/my.telegram.org",
|
||||
"session_corrupted": "La sessione si \u00e8 corrotta!",
|
||||
"length_not_4": "The specified base256 32-bit integer must be exactly 4 bytes long.",
|
||||
"length_not_8": "The specified base256 64-bit integer must be exactly 8 bytes long.",
|
||||
"value_bigger_than_2147483647": "Il valore fornito (%s) \u00e8 maggiore di 2147483647",
|
||||
"value_smaller_than_2147483648": "Il valore fornito (%s) \u00e8 minore di -2147483648",
|
||||
"value_bigger_than_9223372036854775807": "Il valore fornito (%s) \u00e8 maggiore di 9223372036854775807",
|
||||
|
@ -27,8 +27,6 @@ final class Lang
|
||||
'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!',
|
||||
'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org',
|
||||
'session_corrupted' => 'La sessione si è corrotta!',
|
||||
'length_not_4' => 'The specified base256 32-bit integer must be exactly 4 bytes long.',
|
||||
'length_not_8' => 'The specified base256 64-bit integer must be exactly 8 bytes long.',
|
||||
'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647',
|
||||
'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648',
|
||||
'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807',
|
||||
@ -204,8 +202,6 @@ final class Lang
|
||||
'serialization_ofd' => 'Serialization is out of date, reconstructing object!',
|
||||
'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org',
|
||||
'session_corrupted' => 'The session is corrupted!',
|
||||
'length_not_4' => 'The specified base256 32-bit integer must be exactly 4 bytes long.',
|
||||
'length_not_8' => 'The specified base256 64-bit integer must be exactly 8 bytes long.',
|
||||
'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647',
|
||||
'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648',
|
||||
'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807',
|
||||
@ -329,8 +325,6 @@ final class Lang
|
||||
'serialization_ofd' => 'Serialization is out of date, reconstructing object!',
|
||||
'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org',
|
||||
'session_corrupted' => 'The session is corrupted!',
|
||||
'length_not_4' => 'The specified base256 32-bit integer must be exactly 4 bytes long.',
|
||||
'length_not_8' => 'The specified base256 64-bit integer must be exactly 8 bytes long.',
|
||||
'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647',
|
||||
'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648',
|
||||
'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807',
|
||||
|
@ -188,7 +188,7 @@ abstract class Tools extends AsyncTools
|
||||
public static function unpackSignedInt(string $value): int
|
||||
{
|
||||
if (\strlen($value) !== 4) {
|
||||
throw new TL\Exception(Lang::$current_lang['length_not_4']);
|
||||
throw new TL\Exception("Length is not 4");
|
||||
}
|
||||
return \unpack('l', Magic::$BIG_ENDIAN ? \strrev($value) : $value)[1];
|
||||
}
|
||||
@ -200,7 +200,7 @@ abstract class Tools extends AsyncTools
|
||||
public static function unpackSignedLong(string $value): int
|
||||
{
|
||||
if (\strlen($value) !== 8) {
|
||||
throw new TL\Exception(Lang::$current_lang['length_not_8']);
|
||||
throw new TL\Exception("Length is not 8");
|
||||
}
|
||||
return \unpack('q', Magic::$BIG_ENDIAN ? \strrev($value) : $value)[1];
|
||||
}
|
||||
@ -218,7 +218,7 @@ abstract class Tools extends AsyncTools
|
||||
$value = \pack('l2', $value);
|
||||
}
|
||||
if (\strlen($value) !== 8) {
|
||||
throw new TL\Exception(Lang::$current_lang['length_not_8']);
|
||||
throw new TL\Exception("Length is not 8");
|
||||
}
|
||||
return (string) self::unpackSignedLong($value);
|
||||
}
|
||||
@ -283,7 +283,7 @@ abstract class Tools extends AsyncTools
|
||||
public static function unpackDouble(string $value): float
|
||||
{
|
||||
if (\strlen($value) !== 8) {
|
||||
throw new TL\Exception(Lang::$current_lang['length_not_8']);
|
||||
throw new TL\Exception("Length is not 8");
|
||||
}
|
||||
return \unpack('d', Magic::$BIG_ENDIAN ? \strrev($value) : $value)[1];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user