Post

Replies

Boosts

Views

Activity

Unable to localized dynamic 3dTouch Shortcut (UIApplicationShortcutItem)
Hi,I have a small project. The base language is english and I added a french translation. Exported my strings to an xliff, translate, import... And everything is fine. Until I added 3dTouch shortcut items. They are dynamic shortcut items.Here is the part of the code that is adding it:... let lTitle = NSLocalizedString("Weather", comment: "Weather") let lSubTitle = NSLocalizedString("Show current weather", comment: "Show current weather") let shortcut = UIApplicationShortcutItem(type: "com.tleveque.heliosclock2.showWeather", localizedTitle: lTitle , localizedSubtitle: lSubTitle, icon: UIApplicationShortcutIcon(type: .Cloud), userInfo: nil) UIApplication.sharedApplication().shortcutItems?.append(shortcut) ...Exported again to xliff... translate the 2 strings.... import and.... No translation!! Everything else is correctly translated in french in my app, but not the shortcuts!I tried cleaning then build, deleting the app on my phone and re-install.... nothing.What can be the problem?I know I played a bit lately with the files trying the make the info.plist localized. Maybe it is the problem.Here is a screenshot of my project structure: (http://i68.tinypic.com/1z9fz7.jpg)And one from the project in the finder: (http://i65.tinypic.com/2u4ko00.jpg)Any clue someone?
2
0
818
Dec ’15