• 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
Localization of display pattern bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localization of display pattern bindings?


  • Subject: Localization of display pattern bindings?
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 12 Nov 2014 17:51:56 -0600

Xcode 6.1, OS X 10.10

I can’t get value display pattern bindings to localize.

I’m working on a Mac application that displays labels whose contents come from bindings; further they come from Value With Pattern bindings. That is, the binding for myLabel in Main.storyboard is:

Display Pattern Value1
Bind to            [My Array Controller]
Controller Key     [selection]
Model Key Path    [fullName]
Display Pattern   [Personal history of %{value1}@]

This works in the Base / English / Development localization: "Personal history of Fritz Anderson".

I then create a French localization, and accept localizable strings for Main.storyboard in French.

I edit the Main.strings (French) file, searching for "Personal history", finding one string pair, and change

"iyD-7j-ekH.ibShadowedDisplayPattern" = "Personal history of %{value1}@";

to

"iyD-7j-ekH.ibShadowedDisplayPattern" = "Histoire individuel de %{value1}@";

I then run the app in a French locale (by one way or another: "-AppleLanguages (fr)" in the arguments; French selected as the application language of the Run action in the current scheme). Other strings in the application show the French translations.

The binding patterns do not. The bound label reads, "Personal history of Fritz Anderson".

Is there a way to do this, or is this just a sad exception that I have to hand-code?

	— F


 _______________________________________________
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


  • Follow-Ups:
    • Re: Localization of display pattern bindings?
      • From: Lee Ann Rucker <email@hidden>
  • Prev by Date: More than 10 args in DTrace?
  • Next by Date: Re: Localization of display pattern bindings?
  • Previous by thread: More than 10 args in DTrace?
  • Next by thread: Re: Localization of display pattern bindings?
  • Index(es):
    • Date
    • Thread