To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=79610





------- Additional comments from [EMAIL PROTECTED] Sat Jul 14 01:20:14 +0000 
2007 -------
I played around with my simple test code and found the trigger that determines
which language ABCopyLocalizedPropertyOrLabel() returns. It appears that the
Address Book APIs expects all of the following conditions to exist to return a
non-English localized string:

1. The desired language must be set in the System Preferences application (you
did this correctly)
2. The ABCopyLocalizedPropertyOrLabel() function must be called from a program
running somewhere within a App.app/Contents/MacOS folder (OOo already does this)
3. There must be an App.app/Contents/Resources/*.lproj folder for each desired
language.

Item 3 was the key and I did not notice it since I always do my native sample
code with the following empty directories:

  test.app/Contents/MacOS
  test.app/Contents/Resources/en.lproj
  test.app/Contents/Resources/fr.lproj

I then compile test.c in the test.app/Contents/MacOS directory and execute
test.app/Contents/MacOS/test in a Terminal. I know this sounds strange, but you
need this directory structure for most simple Cocoa programs to work. Anyway,
since I had an empty test.app/Contents/Resources/fr.lproj directory, item 3 was
met and I got French localizations when running the test program. I only found
this dependency when I moved my tset.app/Contents/Resources directory out of the
way.

Unfortunately, OOo does not have these empty *.lproj directories, but I assume
that they will be added at some point in the future like we had to do in
NeoOffice as a lot of Cocoa code seems to have behavior linked to those
subdirectories.

Hope that makes sense.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to