• 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
Adding a directory/folder as a Localized Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a directory/folder as a Localized Resource


  • Subject: Adding a directory/folder as a Localized Resource
  • From: bob <email@hidden>
  • Date: Mon, 7 Jan 2008 09:26:40 -0500

My searches came up with hints as to how to add a directory/folder as localized resource (ie placed in the bundle .lproj(s)), but no specific directions on how to do it. In particular, I was adding a help folder to Resources that I wanted copied as a directory in the bundle .lproj directories. So, here is what I did which worked for me:

1. Create the directory in the "English.lproj" directory, then add the files/subdirectories to it. Or simply copy in the directory from somewhere else. If the native language for the documents are not English, then the directory should be put in the appropriate ".lproj".

2. Control-click the "Resouces" directory in the Xcode project and then select "Add" and then "Existing Files...".

3. The above should bring a up a file selection window. Navigate to the ".lproj" directory used in step 1 and select only the directory you just created there.

4. Next another dialog will come up. Here you select two things. First, you must select the "Create Folder References for any added folders" button. Second, you should only select the Targets that apply to the generated Application Bundles/Frameworks (ie you might want to deselect any unit tests if this is not applicable to them).

5. That should be it. You should now see the folder and its files/ subdirectories added to the Resouces Group and under the appropriate language and Get Info will allow you to add other localizations to the directory. Although I have not tried it, the documentation states that when you add a new language localization, xcode will automatically copy your directory that you just added to the new ".lproj" directory.

Not being an xcode expert, my questions are:

a) Is this corrent way of going about doing this?

b) If not, could you explain the proper way?

Thank you for your time/help.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Xib localization
  • Next by Date: Re: Link error when building release config of framework
  • Previous by thread: Re: Xib localization
  • Next by thread: code sense index python (xcode 3)
  • Index(es):
    • Date
    • Thread