How can I translate a string that has a variable in it like this:
let alert = UIAlertController(title: NSLocalizedString("NEUEARTIKEL",comment:"Bitte gib einen neuen Artikel für \(titelArr[sender.tag]) an:"), message: nil, preferredStyle: .Alert)
When I just translate the String normally like this in the localizable.string:
NEUEARTIKEL="Add an item to \(titelArr[sender.tag]):";
The alert will show (titelArr[sender.tag]) instead of its value.
This is probably very simple, but I`m new to swift an wasn't able to google something helpful! ;-)
Thanks for your help //Seb