I'm trying to localize my app using NSLocalizedString
. When I import the XLIFF file, most works like a charm but something do not and some string is not localized. I have noticed that the problem is from NSLocalizedString
containing something variable inside like:
NSLocalizedString(" - (count) Notifica", comment: "sottotitolo prescrizione per le notifiche al singolare")
or
NSLocalizedString("Notifica per (medicina!) della prescrizione (prescription!)
Memo: (memoTextView.text)", comment: "Messaggio della Local Notification")
Maybe this is not the correct syntax for this kind of stuff. Someone can explain me how to do that in Swift?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…