UITextView placeholder text in Storyboards not getting localized...

All my static (hardcoded) storyboard strings are getting properly localized except for one string I have in a non-editable uitextview. I have added the corresponding string in the localized .string file but it wont show up no matter what I do.


I have deleted the app from the simulator, clean build the folder several times.


any idea, what could be wrong?


Neerav

Answered by DTS Engineer in 92543022

I’ve seen reports of this before. It took some digging but I eventually found the thread on old DevForums. Alas, the developer didn’t post their bug number so I can’t check on its status )-:

On the bright side, the workaround is easy: put the text in a separate location (a

.strings
file for flat text, a
.rtf
file for styled text), localise that, and then apply it at runtime.

You might also want to file your own bug report about this, just to be 100% sure that iOS Engineering knows about it. And please do post your bug number, just for the record.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer

I’ve seen reports of this before. It took some digging but I eventually found the thread on old DevForums. Alas, the developer didn’t post their bug number so I can’t check on its status )-:

On the bright side, the workaround is easy: put the text in a separate location (a

.strings
file for flat text, a
.rtf
file for styled text), localise that, and then apply it at runtime.

You might also want to file your own bug report about this, just to be 100% sure that iOS Engineering knows about it. And please do post your bug number, just for the record.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Someone pinged me about this in a different context, so I thought I’d update this thread. One bit of progress here is that, by following various dup’s, I now have a bug number for this (r. 14891240). I took a quick look at that bug and, alas, there’s no good news to share on that front. AFAICT this isn’t fixed in the current iOS 10 beta seed and I can’t make any predictions as to when it will be fixed.

As always, if this bug is causing grief for your project, please do file your own bug report about it. While we have a bug on file for this already, a fresh bug report will allow you to express your requirements in your own terms, and allow iOS engineering to gauge the level of demand.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
UITextView placeholder text in Storyboards not getting localized...
 
 
Q