Dynamic quick actions should update titles when system language changes

Originator:gleb.arkhipov
Number:rdar://28048136 Date Originated:28 Aug 2016
Status:Duplicate of 3569976 (Open) Resolved:21 Aug 2017
Product:iOS SDK Product Version:iOS SDK 9.0 or above
Classification: Reproducible:Always
 
As a developer, I can provide localized title and subtitle for a dynamic quick action via UIApplicationShortcutItem object by using NSLocalizedString macros or -[NSBundle localizedStringForKey:value:table:]. If the user then change the system language while the app is not running, those properties remain in the previous language until the app is restarted and I call -[UIApplication setShortcutItems:] again. I would like to have a way to udpate those localized descriptions when needed.

Steps to Reproduce:
Inspect UIApplicationShortcutItem designated initializer.

Expected Results:
Arguments that would allow to identify localized strings for the title and subtitle of the shortcut item, such as:

// @interface NSLocalizedStringIdentifier

- (instancetype)initWithKey:(nonnull NSString *)key
defaultValue:(nullable NSString *)value
table:(nullable NSString *)table
bundle:(nullable NSBundle *)bundle
NS_DESIGNATED_INITIALIZER;

// @interface UIApplicationShortcutItem

- (instancetype)initWithType:(NSString *)type 
localizedTitle:(NSLocalizedStringIdentifier *)localizedTitleIdentifier
localizedSubtitle:(nullable NSLocalizedStringIdentifier *)localizedSubtitleIdentifier
icon:(nullable UIApplicationShortcutIcon *)icon
userInfo:(nullable NSDictionary *)userInfo NS_DESIGNATED_INITIALIZER;

Actual Results:
localizedTitle and localizedSubtitle arguments allow to specify localized strings only in the current language.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!