• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What happens to my German strings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What happens to my German strings?


  • Subject: Re: What happens to my German strings?
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 18 Apr 2006 16:10:08 -0500

On Apr 18, 2006, at 12:01 PM, mmalcolm crawford wrote:

On Apr 18, 2006, at 9:47 AM, desktoast music productions wrote:

First of all – no, I did not make my app localizable (I know I should, but I
needed this app running ASAP. I’m not only working on this piece, but also
WITH it – coordinating a 100-man red cross team...)


It would probably be more efficient to internationalise your application from the outset. Use NSLocalizedString or its variants to retrieve non-ASCII strings from a .string file. See <http:// developer.apple.com/documentation/MacOSX/Conceptual/BPInternational/ Articles/StringsFiles.html#//apple_ref/doc/uid/20000005>. Make sure that the keys you use do not contain non-ASCII characters...

I strongly suggest this as well and have done so for my English-only apps. This became very helpful when I needed to put in characters such as the ellipses, copyright symbol, etc.


In terms of keys, I've been doing stuff like this for non-ASCII7 values:

/* Counting by a number to simulate multiplication */
"Count by %@\\U2026" = "Count by %@...";

Where the "..." in the right-hand string is actually the proper Unicode ellipses.

I don't know which Apple sample I saw this approach being used in, but I thought it made a lot of sense. I can see where this may break down a bit in other languages since they would tend to have several \ \Uxxxx values in the key. That may make things unreadable.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: What happens to my German strings?
      • From: Paul Forgey <email@hidden>
References: 
 >What happens to my German strings? (From: desktoast music productions <email@hidden>)
 >Re: What happens to my German strings? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: CFUserNotificationDisplayAlert return value error?
  • Next by Date: [Q] COM and dynamic link library?
  • Previous by thread: Re: What happens to my German strings?
  • Next by thread: Re: What happens to my German strings?
  • Index(es):
    • Date
    • Thread