The string was output from a command-line utility, and I wondered if command-line utilities generally respect localization? In other words, would the string in question contain 49,33% or 49.33% in a France or German locale? In this particular case, the utility was not built-in with macOS but one I downloaded.
I suspect it varies, just like with apps. But there’s potentially an extra wrinkle in the form of environment variables.
@ Shane Stanley
I don’t remember seeing a CLI returning localized results.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 30 décembre 2019 09:40:58
No?
set x to do shell script "date"
set y to do shell script "LANG=fr_FR date"
Thanks Shane.
I really forgot that.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 30 décembre 2019 14:31:26
Hm. An absurdly verbose handler that is called as many times as one possibly can, to decompose a string into a list using a repeat loop and the words property element to achieve precisely this:
set text item delimiters to space
text items of "This%is%a%test this is a test"
Sorry, but that’s just ridiculous.
Okay. I will remove it. I hope the kondrashka has not happened to you yet. If I laughed at the mistakes of others on this site, my navel has long been unleashed…