My program has a French version and almost everything localizes except for a few things and I can't figure out why. The main thing that won't localize are strings drawn in an NSView.
My custom view draws a string, using [theString drawAtPoint:aPoint withAttributes:attrDict].
I have the following line in my drawRect method:
[self drawTitles:NSLocalizedString(@"Test", nil)];
//Here is drawTitles
-(void)drawTitles:(NSString *)title {
NSRect rect = [self bounds];
float l = [title length];
NSPoint p = NSMakePoint(rect.size.width/2.0 -(2.7*l) , rect.size.height-18.0);
[title drawAtPoint:p withAttributes:info];
}
If in my French localizable strings file I put
"Test" = "French Test";
French Test will not get drawn--"Test" gets drawn.
Now if in my English localizalbe strings file I put "Test" = "English Test";
"English Test" gets drawn. I haven't had problems like this before with localizing, but this one I can't figure out.
Help appreciated.