language: Add comment about some used messages
Change-Id: I7f5598add628d218a000a7da4a1cbb4c0cc2f31b
This commit is contained in:
parent
a696a71ae3
commit
eeae9cc939
2 changed files with 6 additions and 0 deletions
|
|
@ -4704,6 +4704,8 @@ class Language {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function formatBitrate( $bps ) {
|
public function formatBitrate( $bps ) {
|
||||||
|
// messages used: bitrate-bits, bitrate-kilobits, bitrate-megabits, bitrate-gigabits, bitrate-terabits,
|
||||||
|
// bitrate-petabits, bitrate-exabits, bitrate-zettabits, bitrate-yottabits
|
||||||
return $this->formatComputingNumbers( $bps, 1000, "bitrate-$1bits" );
|
return $this->formatComputingNumbers( $bps, 1000, "bitrate-$1bits" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4752,6 +4754,8 @@ class Language {
|
||||||
* @return string Plain text (not HTML)
|
* @return string Plain text (not HTML)
|
||||||
*/
|
*/
|
||||||
public function formatSize( $size ) {
|
public function formatSize( $size ) {
|
||||||
|
// messages used: size-bytes, size-kilobytes, size-megabytes, size-gigabytes, size-terabytes,
|
||||||
|
// size-petabytes, size-exabytes, size-zettabytes, size-yottabytes
|
||||||
return $this->formatComputingNumbers( $size, 1024, "size-$1bytes" );
|
return $this->formatComputingNumbers( $size, 1024, "size-$1bytes" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,8 @@ class TransformTooBigImageAreaError extends MediaTransformError {
|
||||||
public function __construct( $params, $maxImageArea ) {
|
public function __construct( $params, $maxImageArea ) {
|
||||||
$msg = wfMessage( 'thumbnail_toobigimagearea' );
|
$msg = wfMessage( 'thumbnail_toobigimagearea' );
|
||||||
$msg->params(
|
$msg->params(
|
||||||
|
// messages used: size-pixel, size-kilopixel, size-megapixel, size-gigapixel, size-terapixel,
|
||||||
|
// size-petapixel, size-exapixel, size-zettapixel, size-yottapixel
|
||||||
$msg->getLanguage()->formatComputingNumbers( $maxImageArea, 1000, "size-$1pixel" )
|
$msg->getLanguage()->formatComputingNumbers( $maxImageArea, 1000, "size-$1pixel" )
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue