Ask a Question related to Mac Programming, Design and Development.
-
Frederick Cheung #1
Re: CFCopyLocalizedString problems
On Fri, 15 Aug 2003, Jonathan Baumgartner wrote:
It should be Localizable.strings> This is driving me nuts. I have an existing project I am trying to
> localize. I added a Localized.strings file, and localized it for
> English. In that file I added:
Also the file will be ignored if it is malformed (missing semicolon, curly
quotes instead of normal ones).
Fred>
> /* No comment provided by engineer. */
> "SnagPathHFS" = "Snag Path HFS";
>
> /* No comment provided by engineer. */
> "SnagPathUnix" = "Snag Path Unix";
>
> In my code I try to pull the localized string:
>
> CFStringRef theString = CFCopyLocalizedString(CFSTR("SnagPathHFS"),
> NULL);
>
> theString always ends up as "SnagPathHFS" and never "Snag Path HFS."
>
> What am I doing wrong?
>
> This is being built on 10.2 with the December 2002 Developer Tools.
>
> thanks,
> jon
>Frederick Cheung Guest
-
problems with 8.0 Rc4
I've been trying to check that my current application working on postgres 7.4 will work with 8.0. I've not checked the application yet but I'm... -
problems with preLoadNetThing and fileName (was problems with preLoadNetThing and importFileInto)
You don't want to leave the QT member in your cast when you publish your movie - it's not really there, it's linked. When you run the movie it will... -
IE6 problems
I have a login script to a website where a user logs in through a standard webform with a username and password that needs to be validated. My... -
Why am I Having Problems ?
On 8/2/03 1:08 PM, in article 6TUWa.216121$o86.33889@news1.central.cox.net, "Spam@markris.com" <Spam@markris.com> wrote: A Relationship requires... -
AVI Problems
I would highly recommend using QuickTime instead. I had the same problems that you seem to be having. Once I made .mov's instead, the production time... -
Jonathan Baumgartner #2
Re: CFCopyLocalizedString problems
In article
<Pine.LNX.4.44.0308151824330.13932-100000@kern.srcf.societies.cam.ac.uk>
,
Frederick Cheung <fglc2@srcf.DUH.ucam.org> wrote:
Sorry, my mistake. It *is* Localizable.strings. I changed it at one> It should be Localizable.strings
point to Localized.strings based on information I saw in a USENET post
when I was grasping at straws.
But to sum up, Localizable.strings doesn't work either.
What I posted before was the entire file. It looks right to me; does it> Also the file will be ignored if it is malformed (missing semicolon, curly
> quotes instead of normal ones).
look malformed to you?
thanks,
jon
Jonathan Baumgartner Guest
-
Frederick Cheung #3
Re: CFCopyLocalizedString problems
On Fri, 15 Aug 2003, Jonathan Baumgartner wrote:
Seems fine to me. Another point to bear in mind is that the file must be> In article
> <Pine.LNX.4.44.0308151824330.13932-100000@kern.srcf.societies.cam.ac.uk>
> ,
> Frederick Cheung <fglc2@srcf.DUH.ucam.org> wrote:
>>> > It should be Localizable.strings
> Sorry, my mistake. It *is* Localizable.strings. I changed it at one
> point to Localized.strings based on information I saw in a USENET post
> when I was grasping at straws.
>
> But to sum up, Localizable.strings doesn't work either.
>>> > Also the file will be ignored if it is malformed (missing semicolon, curly
> > quotes instead of normal ones).
> What I posted before was the entire file. It looks right to me; does it
> look malformed to you?
saved as UTF-16.
Fred
Frederick Cheung Guest
-
Jonathan Baumgartner #4
Re: CFCopyLocalizedString problems
In article
<Pine.LNX.4.44.0308151925130.3074-100000@kern.srcf.societies.cam.ac.uk>,
Frederick Cheung <fglc2@srcf.DUH.ucam.org> wrote:
Well, it was UTF-8, but changing it to UTF-16 didn't help. Still won't> Seems fine to me. Another point to bear in mind is that the file must be
> saved as UTF-16.
work.
Ack!
jon
Jonathan Baumgartner Guest
-
Frederick Cheung #5
Re: CFCopyLocalizedString problems
On Fri, 15 Aug 2003, Jonathan Baumgartner wrote:
Things like invisible control characters and stuff will probably throw it> In article
> <Pine.LNX.4.44.0308151925130.3074-100000@kern.srcf.societies.cam.ac.uk>,
> Frederick Cheung <fglc2@srcf.DUH.ucam.org> wrote:
>>> > Seems fine to me. Another point to bear in mind is that the file must be
> > saved as UTF-16.
> Well, it was UTF-8, but changing it to UTF-16 didn't help. Still won't
> work.
>
off. Are you sure the file is in the right place?
Fred
Frederick Cheung Guest
-
Sebastian Wegner #6
Re: CFCopyLocalizedString problems
"Jonathan Baumgartner" (<jon_baumgartner@yahoo.com>) wrote:
You have to name it 'Localizable.strings' and it must be placed in the> This is driving me nuts. I have an existing project I am trying to
> localize. I added a Localized.strings file, and localized it for
> English. In that file I added:
>
> /* No comment provided by engineer. */
> "SnagPathHFS" = "Snag Path HFS";
>
> /* No comment provided by engineer. */
> "SnagPathUnix" = "Snag Path Unix";
>
> In my code I try to pull the localized string:
>
> CFStringRef theString = CFCopyLocalizedString(CFSTR("SnagPathHFS"),
> NULL);
>
> theString always ends up as "SnagPathHFS" and never "Snag Path HFS."
>
> What am I doing wrong?
>
'English.lproj' folder that's inside the 'Resources' folder of your
application bundle.
----------------
Sebastian Wegner
[url]http://www.mcsebi.com/[/url]
Sebastian Wegner Guest
-
Thomas Engelmeier #7
Re: CFCopyLocalizedString problems
In article
<jon_baumgartner-7244C7.16100215082003@newstest2.earthlink.net>,
Jonathan Baumgartner <jon_baumgartner@yahoo.com> wrote:
> In article
> <Pine.LNX.4.44.0308152000110.15631-100000@kern.srcf.societies.cam.ac.uk>
> ,
> Frederick Cheung <fglc2@srcf.DUH.ucam.org> wrote:
>>> > Things like invisible control characters and stuff will probably throw it
> > off. Are you sure the file is in the right place?
> Just checked the file with BBEdit. No invisible characters.I don't think so (peeking at the console won't hurt) , thanks to the CF> Is there any way to find out exactly why CFCopyLocalizedString is
> failing?
error reporting design.
- I used no comments - just "foo"="bar"; - and it worked
- strip down your Localized.strings to one single line and see if that
key works.
- continue to add your strings.
-
<[url]http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBun[/url]
dles/Tasks/working.html> might
-
<[url]http://developer.apple.com/documentation/MacOSX/Conceptual/SystemOvervie[/url]
w/International/index.html>
reagrds,
Tom_E
Thomas Engelmeier Guest



Reply With Quote

