I need to internationalize those tips, but i got this!Any idea?
-
if the answer is helpful hope you will accept it too. – elk_cloner Jun 08 '17 at 04:49
-
Finally fix! Note:After creating the strings file,you need to include the key in the Info.plist file as well, and the value you can write anything you like but not $(xxxx) – CoderZyc Jun 08 '17 at 06:26
2 Answers
I also face this type of error.
I think you can describe the message like this.
I think it's help for you.
You should use InfoPlist.strings
file to localize values of Info.plist
. To do this, go to File->New->File
, choose Strings File under Resource tab of iOS, name it InfoPlist
, and create. Open and insert the Info.plist
values you want to localize like:
"NSLocationWhenInUseUsageDescription" = "Description of this";
EDIT:
select the localization options, or enable localization if needed,
you should be able to see the file also on the left side editor.

- 1,531
- 3
- 21
- 26
-
-
Info.plist conversation of localization according to languages.and adding message of localization info.plist file. – Ravi Dhorajiya Jun 08 '17 at 04:30
-
-
If you want to internationalize tips here is the good Stack overflow answer
in short after adding info.plist string file for respective language, you can localize just like this.Add your respective permisstion key with appropriate description.
NSLocationAlwaysUsageDescription = "请打开【定位服务】允许 Your App 确定您的位置。";

- 2,049
- 1
- 12
- 13
-
Finally fix! Note:After creating the strings file,you need to include the key in the Info.plist file as well, and the value you can write anything you like but not $(xxxx) – CoderZyc Jun 08 '17 at 06:26