zantoku / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

Make GTMUILocalizer support bindings #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It is common to enter placeholder values when adding bindings from IB.
GTMUILocalizer should support localizing these placeholder values.

Original issue reported on code.google.com by br...@maven-group.org on 20 Dec 2009 at 9:33

GoogleCodeExporter commented 9 years ago
Can you list which classes specifically you're talking about?  Thanks.

Original comment by thoma...@gmail.com on 22 Dec 2009 at 1:43

GoogleCodeExporter commented 9 years ago
For the |value| binding on most objects, there's four defined placeholders:

NSMultipleValuesPlaceholderBindingOption
NSNoSelectionPlaceholderBindingOption
NSNotApplicablePlaceholderBindingOption
NSNullPlaceholderBindingOption

You can enter strings into text fields in IB to specify these values. If you 
use a 
translation constant (^IDS_*), however, they do not get localized. I took a 
cursory 
look at this, and it looks like you'd need to:

1. Get all exposed bindings on each object, and for each:
2. Get the info dictionary and localize the above values
3. Unbind the existing binding
4. Replace the binding, but with localized options dictionaries

Original comment by rsesek@chromium.org on 17 Jan 2010 at 12:31

GoogleCodeExporter commented 9 years ago
Dave, can you take a look at this?

Original comment by thoma...@gmail.com on 19 Jan 2010 at 6:56

GoogleCodeExporter commented 9 years ago
awaiting your review sir.

Original comment by dmaclach on 20 Jan 2010 at 2:12

GoogleCodeExporter commented 9 years ago

Original comment by dmaclach on 20 Jan 2010 at 4:33