• 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: Translation issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Translation issue


  • Subject: Re: Translation issue
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 18 Aug 2005 21:56:54 +0200

On Aug 17, 2005, at 2:43:46, Michael Wu wrote:

Why the path returns "English translated" word in some system directory? e.g. /Library /Document, while I am in Japanese UI and the /Library and /Document are showing in Japanese on the UI. If I create a Japanese directory, the path will return the correct Japanese directory name.


You're probably looking for -componentsForDisplayAtPath: (name from memory). It's in NSFileManager or NSWorkspace. But note that there's no one-to-one translation between the array elements for display and the path components, because display names are actually based on HFS paths. So, in my German OS, the path


    Users/me/Documents/This:That.txt

will result in the display

    Benutzer -> me -> Dokumente -> This/That

(assuming This:That.txt is set to have its extension hidden). But if you just want to display the path to your users, that API call is what you're looking for.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de

_______________________________________________
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


References: 
 >Re: drop down menu in the toolbar (From: Ron Fleckner <email@hidden>)
 >Translation issue (From: Michael Wu <email@hidden>)

  • Prev by Date: Re: NSTableView blurry contents
  • Next by Date: Re: Communicating between applications
  • Previous by thread: Re: Translation issue
  • Next by thread: How to reply to Apple Events
  • Index(es):
    • Date
    • Thread