Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to add comments to localized strings in Interface Builder?

In code, the NSLocalizedString macro lets you give a descriptive comment along with your string, so your translators have the necessary context to write a translation. However, I don't see any way to give an equivalent comment along with the strings in my storyboard. Instead, the xliff file contains notes like this:

Class = "NSTextFieldCell"; title = "Created"; ObjectID = "1u4-pn-J7a";

Not very useful. Is there any way for me to provide my translators with better explanations of the purpose/placement of these strings?

like image 624
Chris Vasselli Avatar asked Aug 04 '16 23:08

Chris Vasselli


1 Answers

There is a way to do this. In the Identity inspector, under Document, there is a section called Notes. Text added to this section will be included in the <note> section of an item in the xliff file.

Xcode identity inspector Text of

like image 143
Chris Vasselli Avatar answered Nov 15 '22 21:11

Chris Vasselli