-1

How can I make an NSLocalizedString from something that is being #define?

What I have right now:

#define StationsControllerIdentifier @"Stations"

How I want it to be (but doesn't work):

#define StationsControllerIdentifier NSLocalizedString(@"Stations", @"stations menu btn")
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

2 Answers2

0

There's anything wrong with that. Did you added the necessary Localizable.strings files into your project and put on then the strings you wanna localize?

leoformaggio
  • 450
  • 5
  • 12
0

you need to add a file with .strings extension and specify below in there :

#define StationsControllerIdentifier @"Stations"

and then use it like

NSLocalizedString(@"Stations")

XCode 4.4 .strings file add new localization option gone

Community
  • 1
  • 1
Jatin
  • 1,668
  • 2
  • 16
  • 23