Is it possible to dynamically add to a Localizable.strings file? My app will download new objects and I need to add the translations. If I can somehow add to the Localizable.strings file I can just call NSLocalizedString. Is this possible at all? Had a google around for this couldn't find anything that looked too concrete.
-
What are these new objects? How are you getting them?Wain– Wain2015-03-11 19:59:44 +00:00Commented Mar 11, 2015 at 19:59
-
My app has a custom class "stickers", each sticker has a title, UIImage, bio etc. I will be downloading new ones from Parse.com and then saving them to a dictionary. I can include strings of course with each sticker for the various languages but need some way to access/edit Localizable.stringsKex– Kex2015-03-11 20:10:51 +00:00Commented Mar 11, 2015 at 20:10
Add a comment
|
1 Answer
You could pass a language parameter to parse and have it send back just the appropriate language.
Or, you can have it send back a bundle which contains the localisation details, then use - (NSString *)localizedStringForKey:(NSString *)key value:(NSString *)value table:(NSString *)tableName to extract the details.