Is it possible to add comment to a localized string in storyboard?
/* Class = "IBUILabel"; text = "Some text"; comment = "This is the comment to help translator" ObjectID = "0N3-up-Ts6"; */
"0N3-up-Ts6.text" = "Some text";
It appears you can:
This produces:
/* Class = "UILabel"; text = "Title"; ObjectID = "KjJ-0v-J2z"; Note = "Comment for Localizer"; */
"KjJ-0v-J2z.text" = "Title";
You can add a user-defined attribute:
It will appear thus in the XIB:
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="s1b-V9-EN7">
<rect key="frame" x="20" y="45" width="728" height="959"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" v
<rect key="frame" x="215" y="688" width="92" height="21"/>
// . . . . etc . . . .
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="localization_comment" value=""Some text to help the translator">
</userDefinedRuntimeAttributes>
</label>
</subviews>
</view>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With