Re: Localization of display pattern bindings?
Re: Localization of display pattern bindings?
- Subject: Re: Localization of display pattern bindings?
- From: Lee Ann Rucker <email@hidden>
- Date: Thu, 13 Nov 2014 00:50:20 +0000
- Thread-topic: Localization of display pattern bindings?
I've seen pattern value bindings fail in view-based tables in 10.8 and 10.9, but those worked on 10.10 (and they worked in ordinary labels just fine in 8 & 9 too). So it would not surprise me if you've found a case that fails in 10.10; I've never used storyboards.
On Nov 12, 2014, at 3:51 PM, Fritz Anderson <email@hidden> wrote:
> 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:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.apple.com_mailman_options_xcode-2Dusers_lrucker-2540vmware.com&d=AAIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=ie7S-J__EKnfyVOBV7-jV2rZ--p47O6vkyTklpDM3h4&m=QiGdltKY6Utgygf5HD-oIzbhwTY1qzjy2t_anvPe7mU&s=OSvfeZgAE1vgXrt9HXMEdPB-axRVAnr0PHs3mpZp5lA&e=
>
> This email sent to email@hidden
_______________________________________________
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