Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSError localizedDescription always returns english error message

Why does an NSError * error object with NSURLErrorDomain always return the error.localizedDescription in english ?

like image 425
d.ennis Avatar asked Feb 12 '14 16:02

d.ennis


Video Answer


2 Answers

The answer to this question can be found in the project settings. You have to add the language you are interested in to your project Settings:

  • Select the Project in the left navigate
  • select the project (not the target)
  • select the "Info" pane
  • add the language to the "localization" section
like image 188
d.ennis Avatar answered Oct 07 '22 22:10

d.ennis


Language is the first available in your project according to your languages order in the settings

like image 22
DjimOnDev Avatar answered Oct 07 '22 22:10

DjimOnDev