标签:
CFBundleDisplayName =
"Program"
;
"应用程序"
"welcome"
=
"Click on the screen to continue..."
"点击屏幕继续..."
CCLabelTTF *label = [CCLabelTTF labelWithString:NSLocalizedString(@
, nil) fontName:@
"Marker Felt"
fontSize:18];
CGSize size = [[CCDirector sharedDirector] winSize];
label.position = ccp( size.width /2 , size.height/2+30 );
[self addChild: label];
//该代码片段来自于: http://www.sharejs.com/codes/objectc/6062
NSLocalizedStringFromTable(@
,@
"wang"
, nil)
"BtnCancel"
"BtnCancelEn.png"
Localizable.strings(chinese)文件中加入:
"BtnCancelCn.png"
CCSprite *btnCancel = [CCSprite spriteWithSpriteFrameName:NSLocalizedString(@
, nil)];
btnCancel.position=ccp(s.width/2,s.height/2-40);
[self addChild:btnCancel z:2 tag:104];
iOS多语言
原文地址:http://blog.csdn.net/longshiqing14/article/details/45167379