您的位置:首页 > 其它

IT上的本地化理解

2015-07-11 23:10 232 查看
本地化的理解:

软件的本地化:指的是将一产品的用户界面(UI)和辅助材料(eg:文档资料)从其他国产语言向另一种语言转化,使它适应某一外国语言和文化的细微差别的过程。

网络本地化:指的是对网站的文本、图标和格式进行了调整,使之符合某一特定语言和文化习惯,要求把整个网站内容 和目标群体的语言文化紧密的结合起来。

ios开发中的讲解:

NSLocalizedString
Returns a localized version of a string.
Declaration
OBJECTIVE-C
NSString *NSLocalizedString(NSString *key,NSString
*comment)
Parameters
key
The key for a string in the default table.
comment
The comment to place above the key-value pair in the strings file.
Return Value
The result of invoking
localizedStringForKey:value:table: on the main bundle passing nil as the table.
Discussion
Use this macro to generate the default Localizable.strings file from your code using thegenstrings utility. You can specify Unicode
characters inkey using
\\Uxxxx—see the-u option for the
genstrings utility. The initial value forkey in the strings file will be
key. Use the NSLocalizedStringWithDefaultValue macro to specify another value forkey.
For more information, see
NSBundle.

解析:ios开发中通过这个方法将字符串转化为本地的存储方式进行存储。eg:编码为UTF8等等。

上面所说如果有误,请指正。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: