Attributed Strings and Localization?


is common forgo use of attributed strings (particularly use nsrange) in localized apps? words have different character lengths in different languages, range of attribute won't match correctly...

example, if want first word blue , underlined, , remaining text red, , wrote attributes english, this:

code:
 english:  [u][color="blue"]today:[/color][/u]  [color="red"]monday.[/color]   français:  [color="blue"][u]aujour[/u][/color][color="red"]d'hui:  lundi.[/color]
wouldn't easier break textfield separate strings localization instead of trying add attributes textfield?

thoughts?
 

split them 2 separate strings have required properties setup them , merge them @ end display. (probably using nsmutableattributedstring's appendattributedstring:)
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Upgrade Eligibility?

need help with itunes 7.7

How to change Apple IDs on iPhones