Slide icon indicating copy to clipboard operation
Slide copied to clipboard

Can we please have commas for large numbers on Subscriber counts and in link/comment karma?

Open miladmaz12 opened this issue 10 years ago • 19 comments

This is not an issue just a minor adjustment.

miladmaz12 avatar May 16 '16 21:05 miladmaz12

It's reported how Reddit reports it.

Nxt3 avatar May 17 '16 17:05 Nxt3

So there isn't a way to make this happen?

miladmaz12 avatar May 17 '16 17:05 miladmaz12

I could see about it. Just so used to it not having commas. It's how all Reddit clients report it to my knowledge.

Nxt3 avatar May 17 '16 17:05 Nxt3

Reddit is Fun uses commas btw.

Controless avatar May 17 '16 17:05 Controless

The issue with this is in Europe, it's a period and not a comma. Probably won't be doing this because of that

ccrama avatar May 17 '16 19:05 ccrama

But I am in the United States and I'm talking about this

miladmaz12 avatar May 17 '16 19:05 miladmaz12

Yes, but that would not work for Europeans

ccrama avatar May 17 '16 19:05 ccrama

Oh I see. Alright, I'm going to close this, if it's ok with you.

miladmaz12 avatar May 17 '16 19:05 miladmaz12

Yeah it's ok, good suggestion though!

ccrama avatar May 17 '16 19:05 ccrama

I'm pretty sure we could do this by using Locale.toString(); it takes in the default Locale (so if you were European, it would presumably show periods).

The issue I have with this is I don't care for commas showing up for the score. :|

Nxt3 avatar May 17 '16 22:05 Nxt3

Yeah, it wouldn't look good on the score but it would greatly help for the subscriber number in the sidebar (hard to differentiate 800000 and 8000000 at first glance).

Controless avatar May 17 '16 23:05 Controless

Couldn't the region be detected and if it is Europe, then use dots instead of commas?

ghost avatar May 18 '16 00:05 ghost

If there was a way to region detect, yes, but there isn't really

ccrama avatar May 18 '16 00:05 ccrama

That's too bad. And having a setting toggle for something so little as this would be way too much, I assume.

ghost avatar May 18 '16 00:05 ghost

@ccrama You could use Locale.toString() like I said :P It does exactly that.

Nxt3 avatar May 19 '16 03:05 Nxt3

@Nxt3 exactly, but you need to know the current locale first, which is the issue

ccrama avatar May 19 '16 03:05 ccrama

@ccrama String.format(Locale.getDefault(), "%d", score) will do that. The default Locale is constructed statically at runtime for Slide's process from the device's system settings. If the user is using a European locale on their device--then they'll get the "." instead of ",".

Nxt3 avatar May 19 '16 05:05 Nxt3

Ah didn't know that! Might look into it again then

ccrama avatar May 19 '16 05:05 ccrama

It's done for subscriber counts, will possibly be done for other numbers in the future with @csdodd's PRs

ccrama avatar May 26 '16 19:05 ccrama