Amg91
Amg91

Reputation: 164

Put a resource string (from infoPlist.strings) on info.plist

I have my infoPlist.strings with my localizable strings. I want to add on my info.plist the resource I added. How do I accomplish that?

On Infoplist.strings:

"NSAppleMusicUsageDescription" = "My description";

On Info.plist:

NSPhotoLibraryUsageDescription - $(NSPhotoLibraryUsageDescription)

NSAppleMusicUsageDescription - $(NSAppleMusicUsageDescription)

Or changing $ for @ is not working either...

Thank you

Upvotes: 3

Views: 4273

Answers (1)

Magdy Zamel
Magdy Zamel

Reputation: 476

STEP-I : On Info.plist put the default value

Info.plist

STEP-II : Create Infoplist.strings file and localize it to all supported languages

enter image description here

STEP-III : On each Infoplist.strings file put localized values to every key you want to localize its messages

enter image description here

The application uses the Info.plist key-value as a default value if it didn't find a specific language file. so, you can put English value in the Info.plist file and translate other languages in specific localizable file

Upvotes: 6

Related Questions