how make a localisation with NSPredicateEditorRowTemplate
it is not well documented it was a total pain to figure out.
all is written programmatically
I would like a French, Italian version etc.
how make a localisation with NSPredicateEditorRowTemplate
it is not well documented it was a total pain to figure out.
all is written programmatically
I would like a French, Italian version etc.
Localizing an NSPredicateEditor is a bit more involved than usual localisation.
First, you'll need to have NSLocalizedString() calls in your code somewhere so that genstrings is able to find them.
Secondly, the key needs to follow a special format that will instruct genstrings to produce all combinations of a given row:
In the example above genstrings will look at the options between brackets and generate a localisation string for all combinations in the Predicate.strings file.
Finally, you must let your NSPredicateEditor instance know which strings file to use by setting the
formattingStringsFilenameproperty.See this blog post for more information.