Re: What happens to my German strings?
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