title: Read values from localized file iOS
body: <p>I have created a localized string file which contains Error message in Key/Value Pair. What I just want to read values on key basis just like Plist.</p>
  
  <p>Here is content of my Localized file </p>
  
  <pre><code>"SERVICE_ERROR" = "Some error occurred while processing your request, Please try later";
  </code></pre>
  
  <p>And this is how I am saving this string in user preferences</p>
  
  <pre><code>[ErrorManager setLastErrorInPreferences:NSLocalizedString(@"SERVICE_ERROR", nil)];
  </code></pre>
  
  <p>Here is setLastErrorInPreferences method</p>
  
  <pre><code>+ (void)setLastErrorInPreferences:(id)errorString {
      NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
      NSDate *now = [NSDate date];
      NSString *errorStringWithTime = [NSString stringWithFormat:@"On %@:\n%@", now, errorString];
      [prefs setObject:errorStringWithTime forKey:KlastError];
  }  
  </code></pre>
  
  <p>But its not working. Its just saving the key as it is. Its not reflecting the value of this key in user preferences.Kindly let me know what I am missing. </p>