[TYPO3-core] RFC #8505: String "File/Files" in Fileadmin are hardcoded

Bernhard Kraft kraftb at kraftb.at
Fri Jul 25 20:23:33 CEST 2008


Martin Kutschker schrieb:

> The reason for splitting was that K,M,G are "modifiers" than can be used
> together with other units.

On my linux desktop also "KB" is used for "KiloByte" ... but when you think about
SI-units like "Kilometer" or "Kilogramm" they use a lowercase "k" ... kg, km for the decimal-exponent factor.
10^3 = k (kilo)
10^6 = M (Mega)
...
In the cases of "Meter" and "Gramm" also the sign for the unit itself is lowercase - thus giving kg or km
But for units where the unit is uppercase like "Newton" the unit is kN ... or for Joule kJ

So from a "physical" view of this "issue" it would like to have something like:

<label index="si_prefix_10e3">k</label>
<label index="si_prefix_10e6">M</label>
<label index="si_prefix_10e9">G</label>
<label index="si_prefix_10e-3">m</label>
<label index="si_prefix_10e-6">µ</label>
<label index="si_prefix_10e-9">n</label>

<label index="unit_byte">B</label>


And have a line somewhere:

$unit_byte = $LANG->getLL('unit_byte');

$GLOBALS['SYS']...['bytesFormatString'] = '" ' . $unit_bytes.'| '.$LANG->getLL('si_prefix_10e3').'B| '.$LANG->getLL('si_prefix_10e6').'B| '.$LANG->getLL('si_prefix_10e9').'B'.;

which should give a string
" B| kB| MB| GB"

Just my 2  µCents


10 = JOKE
10.value = We will not need milli or micro bytes !


greets,
Bernhard
-- 
Freiheit ist immer Freiheit des Andersdenkenden.
Rosa Luxemburg, 1871-1919
--------------------------------------------------
www.think-open.at


More information about the TYPO3-team-core mailing list