-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1269] Update generation of the OS version part of the user agent to use non-localized sources. #1292
Conversation
Okay so I've spent some time making sure that we get this exactly right. Here's a few examples of what we get if we don't change anything. English
Japanese
Spanish
Russian
Thai
Therefore, we definitely need to make this change! Now what's interesting is that we no longer need to run the |
603a7fa
to
3591bfa
Compare
Removed the |
if CFStringTransform(mutableUserAgent, UnsafeMutablePointer<CFRange>(nil), transform, false) { | ||
return mutableUserAgent as String | ||
} | ||
let osNameVersion: String = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jshier thanks, but we miss the OS build version (like Build 13E230), right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the build number is no longer going to be present because we cannot extract it in a non-localized manner.
Hi @bgerstle, One of the apps I work on is localized in 20 languages. All I did was drop some log messages into our You can easily add additional localizations to a sample project by adding a new localization in your project's Cheers. 🍻 |
Thanks! But the strange thing is, we've had reports of this happening in
|
Fixes #1269. Updates the user agent’s OS version to use non-localized sources. It also includes the actual OS name in the string.