Re: How do you localise the file name of an application?
Re: How do you localise the file name of an application?
- Subject: Re: How do you localise the file name of an application?
- From: Sunrise Ltd <email@hidden>
- Date: Thu, 12 Aug 2004 02:26:00 +0900 (JST)
This message got stuck. So here we go again...
Brent Gulanowski responded:
>> I have an application that requires to have a localised
>> file name in the Finder (depending on the user's
>> current locale).
>
> You mean the name of the bundle? That is what it is
> -- it's a file system entity (a folder). It's name is
not
> dynamically derived.
Not true.
As you can guess from my email address, I am in Japan and
we have user accounts on OSX machines here with the user's
locale set to Japanese.
When a user whose preferred primary language is set to
Japanese logs in to the system, then many folders and
applications are displayed in Japanese rather than
English.
For example, the Documents folder is called Shorui which
is a word comprised of two Sino-Japanese characters (aka
Kanjis). Yet the system dind't change the filename, it's
just the displaying of filenames that changes.
Many Apple and third party applications show up in
Japanese, too.
I have also just completed testing of my app in four
different localised environments for which I had to set my
user language to those languagese, log out and back in
again. You'd be surprised how many applications and
folders have localised names. For example, in French
Preview is displayed as Apercu and Grab as Capture. You
should try it just for curiousity some time.
Anyway, according to Apple's documentation
"Internationalisation Guide" and "Runtime Configuration"
this is achieved by setting some properties in the
info.plist files of the bundle:
The bundle's general info.plist needs to have a property
LSHasLocalizedDisplayName
which is boolean and if set to True (or 1) then the Finder
will check for CFBundleDisplayName in the current locale's
info.plist, for example Japanese.lproj/info.plist to
determine the display name of the bundle and show it as
such.
Of course if you go into Terminal.app and look at the
bundle it will still be called whatever it is called. The
bundle doesn't change its name. It's only the Finder which
displays the name according to the current locale and the
content of those plists.
So, as you can see, I did my reading up on the subject
before I came here to ask. Anyway, the problem I am having
is that everything looks OK and when the app is launched
in the Japanese environment it will actually show the
localised display name in the menu bar of the Finder and
in the About this App box etc etc. Everywhere this is
supposed to have an effect, it does, with the exception of
the filename displayed in the Finder.
So I am wondering if there is another property separate
from the one I set which is responsible for the localised
filename display. I couldn't find anything other than the
above in the documentation, though.
any hints appreciated
regards
benjk
--
Sunrise Telephone Systems Ltd
9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Shibuya-ku, Tokyo, Japan
__________________________________________________
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.