IOS多国语言Localize方法
使用一系列的NSLocalizedString函数就是localize的本质。NSLocalizedString(NSString *key, NSString *comment)
这里的table取值为nil,所以就把默认的Localizable.strings文件当作table
对于这里的comment是指当你使用genstrings tool来生成文件的时候,这一对key-value pair 前面的comment
文件Localizable.strings
用来存储需要local的string,如果没有,你可以建立一个叫这个名字的stringFile,默认就是使用这个文件的,以下就是这个文件中的内容格式,
/*this is comment format, there is content below*/"meterFormat" = "%@ meters";
页:
[1]