Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-07-29 08:29:02

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

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

#2 2011-07-29 09:33:14

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,376
Website GitHub Mastodon

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

#3 2011-07-29 10:04:31

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#4 2011-07-29 10:05:28

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

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

#6 2011-08-22 10:03:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,946
Website GitHub

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

#7 2011-08-22 10:08:35

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,376
Website GitHub Mastodon

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

#8 2011-08-22 10:10:16

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#9 2011-08-22 10:12:28

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,376
Website GitHub Mastodon

Re: Problems with file size download tag

The French, oh, the French. Octets! And there’s even this.

Offline

#10 2011-08-22 10:14:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,946
Website GitHub

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

#11 2011-08-22 10:18:50

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,376
Website GitHub Mastodon

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

#12 2011-08-22 10:34:19

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,946
Website GitHub

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

Board footer

Powered by FluxBB