Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Problems with file size download tag
The tag doesn’t show the right units.
It outputs:
units_k
What could be the problem?
Thanks
Offline
Re: Problems with file size download tag
That the file size units have not yet been translated into your language. If you specify the desired language and the local texts for KB, MB, GB, TB, PB, ZB, I can add those to the language server.
Offline
Re: Problems with file size download tag
May I plug my contribution in too? Finnish translation doesn’t currently have the units either.
I’m not exactly sure what is what most users want. In Finnish you have two ways of presenting bytes. The translated word tavu (t
) and then the actual unit byte b
. I can’t say which is better, to me the global non-translated presentation is easier to read and maybe is more valid too.
I would use the exact units as with English in fi-fi localization.
units_b => B
units_e => EB
units_g => GB
units_k => KB
units_m => MB
units_p => PB
units_t => TB
units_y => YB
units_z => ZB
Offline
Re: Problems with file size download tag
Ok! Same for italian
Last edited by wornout (2011-07-29 10:06:17)
Offline
#5 2011-08-22 09:26:51
- Teemu
- Member
- From: Shanghai
- Registered: 2010-04-27
- Posts: 60
Re: Problems with file size download tag
I got only English (United States) language installed and still get units_k displayed. I tried with English (Great Britain), which didn’t work either. Runnin TXP 4.4.1
Last edited by Teemu (2011-08-22 09:27:15)
Offline
Re: Problems with file size download tag
Hmmm, I thought that it was supposed to default to the en_gb strings if it couldn’t find suitable target language strings. Bit of an oversight on my part if that’s not the case and it’s showing the units_
word instead, d’oh.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Problems with file size download tag
Teemu wrote:
I got only English (United States) language installed and still get units_k displayed.
Please post the date your site show on the Admin> Preferences > Update Languages tab. It should read July 7th, 2011 or later.
Offline
Re: Problems with file size download tag
Do these units need translation? I thought they were standard notation, used everywhere, like g (gram) and kg (kilogram).
Btw, it’s kB, not KB (K= Kelvin).
Offline
Re: Problems with file size download tag
The French, oh, the French. Octets! And there’s even this.
Offline
Re: Problems with file size download tag
ruud wrote:
Do these units need translation?
In French they use kO, MO etc (Octet? Not sure). Edit: wet beat me to it.
Btw, it’s kB, not KB (K= Kelvin).
I have traditionally always used the lower case ‘k’ but iirc in this case I set it to be the same as it was before, which had a capital K. Umm, I hope. Easy to alter either way.
Not sure why M and upwards get capitalised. Must be convention I guess.
Last edited by Bloke (2011-08-22 10:35:20)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Problems with file size download tag
Bloke wrote:
Not sure why M and upwards get capitalised. Must be convention I guess.
Yes. It helps to discern millimeters from megameters.
Offline
Re: Problems with file size download tag
wet wrote:
Yes. It helps to discern millimeters from megameters.
Good point! That explains why all the shelves I put up in our house are wonky: my tape measure proudly sports “3000 MM” on the label :-p
Last edited by Bloke (2011-08-22 10:35:52)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline