我正在try 使用NSLocalizedString
本地化我的应用程序.当我导入XLIFF文件时,大多数工作都很出色,但有些不是,有些字符串没有本地化.我注意到问题出在NSLocalizedString
内部包含一些变量,例如:
NSLocalizedString(" - \(count) Notifica", comment: "sottotitolo prescrizione per le notifiche al singolare")
或
NSLocalizedString("Notifica per \(medicina!) della prescrizione \(prescription!)\nMemo: \(memoTextView.text)", comment: "Messaggio della Local Notification")
Maybe this is not the c或rect syntax f或 this kind of stuff. Someone can explain me how to do that in Swift?