将资源字符串(来自 infoPlist.strings)放在 info.plist 上
Put a resource string (from infoPlist.strings) on info.plist
我有 infoPlist.strings
和可本地化的字符串。我想在我的 info.plist
上添加我添加的资源。我该如何实现?
在 Infoplist.strings
:
"NSAppleMusicUsageDescription" = "My description";
在 Info.plist
:
NSPhotoLibraryUsageDescription - $(NSPhotoLibraryUsageDescription)
NSAppleMusicUsageDescription - $(NSAppleMusicUsageDescription)
或者将 $
更改为 @
也不起作用...
谢谢
STEP-I : On Info.plist
put the default value
STEP-II : Create Infoplist.strings
file and localize it to all supported languages
STEP-III : On each Infoplist.strings
file put localized values to every key you want to localize its messages
如果应用程序没有找到特定的语言文件,它会使用 Info.plist 键值作为默认值。因此,您可以将英文值放入 Info.plist 文件,并在特定的可本地化文件
中翻译其他语言
我有 infoPlist.strings
和可本地化的字符串。我想在我的 info.plist
上添加我添加的资源。我该如何实现?
在 Infoplist.strings
:
"NSAppleMusicUsageDescription" = "My description";
在 Info.plist
:
NSPhotoLibraryUsageDescription - $(NSPhotoLibraryUsageDescription)
NSAppleMusicUsageDescription - $(NSAppleMusicUsageDescription)
或者将 $
更改为 @
也不起作用...
谢谢
STEP-I : On
Info.plist
put the default value
STEP-II : Create
Infoplist.strings
file and localize it to all supported languages
STEP-III : On each
Infoplist.strings
file put localized values to every key you want to localize its messages
如果应用程序没有找到特定的语言文件,它会使用 Info.plist 键值作为默认值。因此,您可以将英文值放入 Info.plist 文件,并在特定的可本地化文件
中翻译其他语言