Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Localizing "Usage Descriptions" in InfoPlist.strings
Started by rlowenstein Aug 01 2019 08:55 AM

3 replies to this topic
infoplist.strings usage descriptions camera microphone photo library localization
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

rlowenstein

[GLOBAL: userInfoPane.html]
rlowenstein
  • Observer

  • 22 posts
  • Corona SDK

I'm trying to localize the usage descriptions in my app. Specifically, the NSPhotoLibraryUsageDescription.

 

I have successfully localized the app name following the localization guide, but can't find any documentation anywhere about localizing the usage descriptions. I attempted to do it by just adding descriptions into the individual language InfoPlist.strings file like this:

 

CFBundleDisplayName = "myLocalizedAppName";

CFBundleName = "myLocalizedAppName";
NSPhotoLibraryUsageDescription = “myLocalizedUsageDescription”;
 
This doesn't seem to work. I've been getting the following error from the App Store:
 
ITMS-90038: Malformed InfoPlist.strings file: 'es.lproj/InfoPlist.strings'
 
Does anyone know how to do this? 
 
 


[TOPIC: post.html]
#2

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 570 posts
  • Corona SDK

The way you are describing is the right way to do it.

 

Did you copy the content of the InfoPlist.strings file into the thread above?

If so I see you use invalid quotation marks on the “myLocalizedUsageDescription” part.

 

That would cause the file to be malformed.



[TOPIC: post.html]
#3

rlowenstein

[GLOBAL: userInfoPane.html]
rlowenstein
  • Observer

  • 22 posts
  • Corona SDK

I'm an idiot!!! Thanks so much for the help! I blame it on the 400 localized screenshots I was up all night uploading to the App Store :)



[TOPIC: post.html]
#4

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 570 posts
  • Corona SDK

I blame it on the 400 localized screenshots I was up all night uploading to the App Store :)

 

I know... that is a true nightmare  :blink:




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: infoplist.strings, usage descriptions, camera, microphone, photo library, localization