-
In my project I have a custom control that subclasses NSView and contains some customizable text fields. These text fields are bound to text properties that are @IBInspectable. The same way that BartyCrouch generates localization strings for standard controls (such a a text field getting a ".title" key in the .strings file), how can I get the same behaviour on my own controls? It's not a static value that changes with language, I want an exposed parameter to "trigger" the generation of a key in the .strings file. Does anyone know how to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@rcopstein Are you talking about triggering the generation of a key in the There is no feature that will transform a key in code to a key in a XIB file, if that's what you're asking for. But I'm not sure if I understood you correctly. Feel free to provide more context, some code or even a small demo project. |
Beta Was this translation helpful? Give feedback.
@rcopstein Are you talking about triggering the generation of a key in the
.strings
file of a XIB file? Or are you talking about theLocalizable.strings
file? If it's the latter, that's thetransform
option, see the README. If you're asking for the first, the only way currently to add a key to a.strings
file is by adding it manually to the source languages you have specified in the BartyCrouch configuration (defaults toen
if you didn't set one). Then, the key will be automatically added to all other languages.There is no feature that will transform a key in code to a key in a XIB file, if that's what you're asking for. But I'm not sure if I understood you correctly. Feel free to provid…