* @return string
*/
function formatBitrate( $bps ) {
- $units = array( '', 'kibi', 'mebi', 'gibi', 'tebi', 'pebi', 'exbi', 'zebi', 'yobi' );
+ $units = array( '', 'kilo', 'mega', 'giga', 'tera', 'peta', 'exa', 'zeta', 'yotta' );
if ( $bps <= 0 ) {
return $this->formatNum( $bps ) . $units[0];
}
# Bitrate units
'bitrate-bits' => '$1bps', # only translate this message to other languages if you have to change it
-'bitrate-kibibits' => '$1kbps', # only translate this message to other languages if you have to change it
-'bitrate-mebibits' => '$1Mbps', # only translate this message to other languages if you have to change it
-'bitrate-gibibits' => '$1Gbps', # only translate this message to other languages if you have to change it
-'bitrate-tebibits' => '$1Tbps', # only translate this message to other languages if you have to change it
-'bitrate-pebibits' => '$1Pbps', # only translate this message to other languages if you have to change it
-'bitrate-exbibits' => '$1Ebps', # only translate this message to other languages if you have to change it
-'bitrate-zebibits' => '$1Zbps', # only translate this message to other languages if you have to change it
-'bitrate-yobibits' => '$1Ybps', # only translate this message to other languages if you have to change it
+'bitrate-kilobits' => '$1kbps', # only translate this message to other languages if you have to change it
+'bitrate-megabits' => '$1Mbps', # only translate this message to other languages if you have to change it
+'bitrate-gigabits' => '$1Gbps', # only translate this message to other languages if you have to change it
+'bitrate-terabits' => '$1Tbps', # only translate this message to other languages if you have to change it
+'bitrate-petabits' => '$1Pbps', # only translate this message to other languages if you have to change it
+'bitrate-exabits' => '$1Ebps', # only translate this message to other languages if you have to change it
+'bitrate-zetabits' => '$1Zbps', # only translate this message to other languages if you have to change it
+'bitrate-yottabits' => '$1Ybps', # only translate this message to other languages if you have to change it
# Live preview
'livepreview-loading' => 'Loading...',
# Bitrate units
'bitrate-bits' => '{{optional}}
Bitrate (of a file, typically) in bits.',
-'bitrate-kibibits' => '{{optional}}
-Bitrate (of a file, typically) in kibibits (1 kibibyte = 1000 bits).',
-'bitrate-mebibits' => '{{optional}}
-Bitrate (of a file, typically) in mebibits (1 mebibyte = 1000×1000 bits).',
-'bitrate-gibibits' => '{{optional}}
-Bitrate (of a file, typically) in gibibits (1 gibibyte = 1000×1000×1000 bits).',
-'bitrate-tebibits' => '{{optional}}
-Bitrate (of a file, typically) in tebibits (1 tebibits = 1000×1000×1000×1000 bits).',
-'bitrate-pebibits' => '{{optional}}
-Bitrate (of a file, typically) in pebibits (1 pebibits = 1000×1000×1000×1000×1000 bits).',
-'bitrate-exbibits' => '{{optional}}
-Bitrate (of a file, typically) in exbibits (1 exbibits = 1000×1000×1000×1000×1000×1000 bits).',
-'bitrate-zebibits' => '{{optional}}
-Bitrate (of a file, typically) in zebibits (1 zebibits = 1000×1000×1000×1000×1000×1000×1000 bits).',
-'bitrate-yobibits' => '{{optional}}
-Bitrate (of a file, typically) in yobibits (1 yobibits = 1000×1000×1000×1000×1000×1000×1000×1000 bits).',
+'bitrate-kilobits' => '{{optional}}
+Bitrate (of a file, typically) in kilobits (1 kilobit = 1000 bits).',
+'bitrate-megabits' => '{{optional}}
+Bitrate (of a file, typically) in megabits (1 megabits = 1000×1000 bits).',
+'bitrate-gigabits' => '{{optional}}
+Bitrate (of a file, typically) in gibibits (1 gigabits = 1000×1000×1000 bits).',
+'bitrate-terabits' => '{{optional}}
+Bitrate (of a file, typically) in terabits (1 terabits = 1000×1000×1000×1000 bits).',
+'bitrate-petabits' => '{{optional}}
+Bitrate (of a file, typically) in petabits (1 petabits = 1000×1000×1000×1000×1000 bits).',
+'bitrate-exabits' => '{{optional}}
+Bitrate (of a file, typically) in exabits (1 exabits = 1000×1000×1000×1000×1000×1000 bits).',
+'bitrate-zetabits' => '{{optional}}
+Bitrate (of a file, typically) in zetabits (1 zetabits = 1000×1000×1000×1000×1000×1000×1000 bits).',
+'bitrate-yottabits' => '{{optional}}
+Bitrate (of a file, typically) in yottabits (1 yottabits = 1000×1000×1000×1000×1000×1000×1000×1000 bits).',
# Live preview
'livepreview-loading' => '{{Identical|Loading}}',