"%,d" is not recognized as a variable

Hi. I have a small improvement request.

Java supports using %,d as a formatting specifier. Compared to %d, this provides nicer formatting with locale-dependent digit grouping (1,000,000 vs 1000000). However, Crowdin doesn’t recognize this as a variable like it does %d or %s:
Снимок экрана 2023-09-25 в 18.42.29
Recognized variables are highlighted and produce a warning when missing from translations. I’ve already had several occasions when a translator mistyped %,d which later resulted in app crashes.

1 Like

Hi @grishka ,

Thank you for your request, really the variable %,d will not be highlighted in Crowdin like the variable %d is highlighted

I have forwarded this to our development team and will let you know as soon as I hear back from them.

Will keep you posted

2 Likes

Hi @grishka ,

Highlighted the %,d variable for you in your project so it should look good on your end now

2 Likes

The variant where the argument index is specified, like %3$,d, also needs correct highlighting. Example string where only the %3 part is highlighted:
https://crowdin.com/editor/mastodon-for-android/124/en-it?view=comfortable&filter=basic&value=3#29284

1 Like

Hi @grishka !

Let us please consult with our team whether it will be possible.

Will keep you posted!

2 Likes

Dear @grishka !

We are glad to inform you that %3$,d should already be highlighted in the Editor. You are welcome to check everything from your side!

Thanks,

1 Like

Wow, that was quick. Thank you!

Dear @grishka !

Our pleasure to help you!

Wish you a wonderful week ahead :hugs: