Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Proper way to translate
Hello,I am just wondering - what is the proper way to translate an app in to different languages? I want to automatically detect the users preferred language, and then set it compared to that. I tried to use the let countryCode = NSLocale.currentLocale().objectForKey(NSLocaleCountryCode) as! String, and then check the outcome of that, and then set all of my labels, textfields .text to the other language. Is there a better way of doing this? Because as you probably know, you can't find out the users preferred language just by getting its region. I have read something about internationalization and localization, but I haven't really found any thing. Thanks in advance.
2
0
421
Jan ’16
GLKit adding "extra" translation?
I've been working an issue for the past couple of days on OpenGL-ES2. I am using almost all standard OpenGL calls, but use GLKView to manage the rendering surface. I have noticed that I am getting a translation of .5 on top of my stuff that is coming from somewhere, but not my stuff. I put my eyepoint at the origin and am using identity shaders: passing the geometry to be displayed with no transformations at all.I almost wonder if glkView is trying to hard to be my friend, and is tossing in a .5 translation so my scene is nicely centered in a normalized default bounding box. (And yes, the geometry is all original based as well).
0
0
365
Aug ’15
Translation framework use in Swift 6
I’m trying to integrate Apple’s Translation framework in a Swift 6 project with Approachable Concurrency enabled. I’m following the code here: https://developer.apple.com/documentation/translation/translating-text-within-your-app#Offer-a-custom-translation And, specifically, inside the following code .translationTask(configuration) { session in do { // Use the session the task provides to translate the text. let response = try await session.translate(sourceText) // Update the view with the translated result. targetText = response.targetText } catch { // Handle any errors. } } On the try await session.translate(…) line, the compiler complains that “Sending ‘session’ risks causing data races”. Extended error message: Sending main actor-isolated 'session' to @concurrent instance method 'translate' risks causing data races between @concurrent and main actor-isolated uses I’ve downloaded Apple’s sample code (at the top of linked webpage), it compiles f
4
0
275
Feb ’26
How can translate C++ to Swift
Hello !How can translate this row in C++ to Swift: _buffer = [device newBufferWithLength:_size options:0]; mpTransform = static_cast<simd::float4x4 *>([_buffer contents]);where: _size = sizeof(float4x4)_buffer = self.devise.newBufferWithLength(size, options: .CPUCacheModeDefaultCache)how set buffer.contents() to array flat4 ?
6
0
1.8k
Mar ’16
Live Translations on VOIP on iOS26
Hi team, With regards to Call (Live) Translations on VOIP: Is it possible to invoke live translations within the app? (without going into the Call System UI) Is it possible to navigate users from app to Call System UI via an API? (and also invoking the new live translations directly) Will Apple support more languages apart from the current ones? (Currently I see 4 supported languages)
1
0
168
Aug ’25
Translation API availability on visionOS
Hi, One of the great features introduced in WWDC24 is the Translation API. But unfortunately it's currently unavailable on visionOS. My question is, does Apple have any plan to support it on visionOS as well? If so, what's the ETA for this feature? I would really like to see it on visionOS, otherwise I'll have to pay Google to use their translation API.
1
0
660
Oct ’24
Translate to other language than the ones listed
Hey guys!I'm trying to translate my game into Romanian, however I can't seem to find the language in the list. I have seen other apps on my iPad's App Store, which are actually translated into Romanian. My question is how can I achieve the same? (my app is distributed only to Romania)Appreciate any help.https://i.imgur.com/PwUzbgQ.pnghttps://i.imgur.com/d0607R9.jpg
0
0
982
Nov ’18
ARKitCoachingOverlay translation / localization
Hi, is it possible to localize the text for the ARKitCoachingOverlay? https://miro.medium.com/v2/resize:fit:640/format:webp/1*FDzypCQtuU10Ky203NQr-A.png I`m developing with Unity and use this sample script provided: https://github.com/Unity-Technologies/arfoundation-samples/blob/main/Assets/Scenes/ARKit/ARKitCoachingOverlay/ARKitCoachingOverlay.cs So in the best case, you can describe how I can get translations working for German. Thanks
2
0
458
Nov ’23
translate Objective-C to Swift NSNotificationCenter
I have the following Objective-C code from webpage https://developer.apple.com/library/ios/documentation/Audio/Conceptual/iPodLibraryAccess_Guide/UsingMediaPlayback/UsingMediaPlayback.htmlNSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];[notificationCenter addObserver: self selector: @selector (handle_NowPlayingItemChanged:) name: MPMusicPlayerControllerNowPlayingItemDidChangeNotification object: musicPlayer];[notificationCenter addObserver: self selector: @selector (handle_PlaybackStateChanged:) name: MPMusicPlayerControllerPlaybackStateDidChangeNotification object: musicPlayer];[musicPlayer beginGeneratingPlaybackNotifications];I need to translate the code to Swift.I was able to translate the first line into:var notificationCenter: NSNotificationCenter = NSNotificationCenter.defaultCenter()When I translated the second statement, I have the following so far, which Xcode filled in for me:notificationCenter.addObserver(<#T##observer: AnyObject##AnyOb
1
0
224
Jun ’16
XLIFF translation error for an iOS App.
I exported strings from an iOS App to create a Xcloc with an fr.xliff file. Using the XLIFF App I an adding translated test to the target column, and when I translate: Using the slider you can set image dimensions in 10% increments. I get this error: Validation Error Target does not contain all format characters from the source, missing % i. Is the issue here the use of % in the original text?
0
0
271
Aug ’20
Directional Microphone with ASR and Translate capabilities
Is anyone aware of an existing product with a directional microphone, that can be used with automatic speech recognition (similar to Google Glass Captions) — with something like the Google Speech API — wait for a pause, and then translate the speech from the language heard into another language (English for myself) — using something like the Google Cloud Translation API — to then be displayed on something like Google Glass?I really think such a product would be a huge hit (internationally)... but don't have the resources to produce such a product myself.Thanks,Craig
Topic: Safari & Web SubTopic: General Tags:
1
0
11k
Aug ’17
Proper way to translate
Hello,I am just wondering - what is the proper way to translate an app in to different languages? I want to automatically detect the users preferred language, and then set it compared to that. I tried to use the let countryCode = NSLocale.currentLocale().objectForKey(NSLocaleCountryCode) as! String, and then check the outcome of that, and then set all of my labels, textfields .text to the other language. Is there a better way of doing this? Because as you probably know, you can't find out the users preferred language just by getting its region. I have read something about internationalization and localization, but I haven't really found any thing. Thanks in advance.
Replies
2
Boosts
0
Views
421
Activity
Jan ’16
Translation of Sign in with Apple button
Hi, Is it possible to translate Sign in with Apple button to Portuguese (PT-BR)? If it is, what's the correct translation according Apple guidelines?
Replies
3
Boosts
0
Views
4.0k
Activity
Jun ’20
GLKit adding "extra" translation?
I've been working an issue for the past couple of days on OpenGL-ES2. I am using almost all standard OpenGL calls, but use GLKView to manage the rendering surface. I have noticed that I am getting a translation of .5 on top of my stuff that is coming from somewhere, but not my stuff. I put my eyepoint at the origin and am using identity shaders: passing the geometry to be displayed with no transformations at all.I almost wonder if glkView is trying to hard to be my friend, and is tossing in a .5 translation so my scene is nicely centered in a normalized default bounding box. (And yes, the geometry is all original based as well).
Replies
0
Boosts
0
Views
365
Activity
Aug ’15
Translation of Sign in with Apple button
Hi,Is it possible to translate Sign in with Apple button to Portuguese (PT-BR)?If it is, what's the correct translation according Apple guidelines?
Topic: Safari & Web SubTopic: General Tags:
Replies
0
Boosts
0
Views
928
Activity
Jun ’20
Translation framework use in Swift 6
I’m trying to integrate Apple’s Translation framework in a Swift 6 project with Approachable Concurrency enabled. I’m following the code here: https://developer.apple.com/documentation/translation/translating-text-within-your-app#Offer-a-custom-translation And, specifically, inside the following code .translationTask(configuration) { session in do { // Use the session the task provides to translate the text. let response = try await session.translate(sourceText) // Update the view with the translated result. targetText = response.targetText } catch { // Handle any errors. } } On the try await session.translate(…) line, the compiler complains that “Sending ‘session’ risks causing data races”. Extended error message: Sending main actor-isolated 'session' to @concurrent instance method 'translate' risks causing data races between @concurrent and main actor-isolated uses I’ve downloaded Apple’s sample code (at the top of linked webpage), it compiles f
Replies
4
Boosts
0
Views
275
Activity
Feb ’26
How can translate C++ to Swift
Hello !How can translate this row in C++ to Swift: _buffer = [device newBufferWithLength:_size options:0]; mpTransform = static_cast<simd::float4x4 *>([_buffer contents]);where: _size = sizeof(float4x4)_buffer = self.devise.newBufferWithLength(size, options: .CPUCacheModeDefaultCache)how set buffer.contents() to array flat4 ?
Replies
6
Boosts
0
Views
1.8k
Activity
Mar ’16
Live Translations on VOIP on iOS26
Hi team, With regards to Call (Live) Translations on VOIP: Is it possible to invoke live translations within the app? (without going into the Call System UI) Is it possible to navigate users from app to Call System UI via an API? (and also invoking the new live translations directly) Will Apple support more languages apart from the current ones? (Currently I see 4 supported languages)
Replies
1
Boosts
0
Views
168
Activity
Aug ’25
Using macOS Monterey translation API
Monterey introduced native translation capabilities that are used in Safari, Books and other apps. User can select a piece of text and then translate it in their language. I am having trouble findig how to access this native capability from our app as a developer. Thanks
Replies
0
Boosts
0
Views
782
Activity
Oct ’22
Translation API availability on visionOS
Hi, One of the great features introduced in WWDC24 is the Translation API. But unfortunately it's currently unavailable on visionOS. My question is, does Apple have any plan to support it on visionOS as well? If so, what's the ETA for this feature? I would really like to see it on visionOS, otherwise I'll have to pay Google to use their translation API.
Replies
1
Boosts
0
Views
660
Activity
Oct ’24
Translate to other language than the ones listed
Hey guys!I'm trying to translate my game into Romanian, however I can't seem to find the language in the list. I have seen other apps on my iPad's App Store, which are actually translated into Romanian. My question is how can I achieve the same? (my app is distributed only to Romania)Appreciate any help.https://i.imgur.com/PwUzbgQ.pnghttps://i.imgur.com/d0607R9.jpg
Replies
0
Boosts
0
Views
982
Activity
Nov ’18
ARKitCoachingOverlay translation / localization
Hi, is it possible to localize the text for the ARKitCoachingOverlay? https://miro.medium.com/v2/resize:fit:640/format:webp/1*FDzypCQtuU10Ky203NQr-A.png I`m developing with Unity and use this sample script provided: https://github.com/Unity-Technologies/arfoundation-samples/blob/main/Assets/Scenes/ARKit/ARKitCoachingOverlay/ARKitCoachingOverlay.cs So in the best case, you can describe how I can get translations working for German. Thanks
Replies
2
Boosts
0
Views
458
Activity
Nov ’23
translate Objective-C to Swift NSNotificationCenter
I have the following Objective-C code from webpage https://developer.apple.com/library/ios/documentation/Audio/Conceptual/iPodLibraryAccess_Guide/UsingMediaPlayback/UsingMediaPlayback.htmlNSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];[notificationCenter addObserver: self selector: @selector (handle_NowPlayingItemChanged:) name: MPMusicPlayerControllerNowPlayingItemDidChangeNotification object: musicPlayer];[notificationCenter addObserver: self selector: @selector (handle_PlaybackStateChanged:) name: MPMusicPlayerControllerPlaybackStateDidChangeNotification object: musicPlayer];[musicPlayer beginGeneratingPlaybackNotifications];I need to translate the code to Swift.I was able to translate the first line into:var notificationCenter: NSNotificationCenter = NSNotificationCenter.defaultCenter()When I translated the second statement, I have the following so far, which Xcode filled in for me:notificationCenter.addObserver(<#T##observer: AnyObject##AnyOb
Replies
1
Boosts
0
Views
224
Activity
Jun ’16
XLIFF translation error for an iOS App.
I exported strings from an iOS App to create a Xcloc with an fr.xliff file. Using the XLIFF App I an adding translated test to the target column, and when I translate: Using the slider you can set image dimensions in 10% increments. I get this error: Validation Error Target does not contain all format characters from the source, missing % i. Is the issue here the use of % in the original text?
Replies
0
Boosts
0
Views
271
Activity
Aug ’20
Translation in Safari Technology Preview 14
Safari Technology Preview 14 has not enabled translation in MacOs Catalina
Topic: Safari & Web SubTopic: General Tags:
Replies
3
Boosts
0
Views
760
Activity
Jun ’20
Directional Microphone with ASR and Translate capabilities
Is anyone aware of an existing product with a directional microphone, that can be used with automatic speech recognition (similar to Google Glass Captions) — with something like the Google Speech API — wait for a pause, and then translate the speech from the language heard into another language (English for myself) — using something like the Google Cloud Translation API — to then be displayed on something like Google Glass?I really think such a product would be a huge hit (internationally)... but don't have the resources to produce such a product myself.Thanks,Craig
Topic: Safari & Web SubTopic: General Tags:
Replies
1
Boosts
0
Views
11k
Activity
Aug ’17