//Viewcontroller.m code
NSLocalizedString(@"attributes",@"Attribute Name")
//Localizable.string code
"attributes"="attributes-french";
This method works great for localization of @"attributes"
Now what should be the code if I want to use a variable
I am using
//Viewcontroller.m code
NSString *Value=@"attributes"
NSLocalizedString(Value,@"Attribute Name");
//Localizable.string code
"Value"="Value-french";
This is not working. Can someone tell me the correct way of using NSLocalizdString for localizing a variable (that holds a string)?