C++国际化解决方案
在使用 gettext 并发现我无法手动加载 .mo 文件,并且必须为我附带的项目提供一个目录结构(这似乎是不必要的)之后,我想知道是否还有其他 i18n 库。
所以我想我的问题是,有简单的查找表吗?我已经看到 OpenTTD 做了一些像我想做的事情,但还没有调查它,因为我宁愿使用一些我可以责怪其他人的东西,而不是我自己。
After playing with gettext and finding I wasn't able to manually load .mo files, and having to have a directory structure for projects I ship with that seemed unnecessary, I was wondering if there were any other i18n libraries.
So I guess my question is, are there simple lookup tables? I've seen OpenTTD do something like I want to do, but haven't investigated it yet as I'd rather use something that I can blame other people for, rather than myself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Boost.Locale 最近已被 Boost 接受,应该会在下一个版本中提供。目前它可以在 SVN 的 /trunk 中使用(假设分支再次打开,现在它可能也已合并到 /release)。
http://cppcms.sourceforge.net/boost_locale/html/index.html
Boost.Locale has recently been accepted into Boost and should be available in the next release. It is currently available on the SVN in /trunk to play with (and by now it's probably been merged to /release too, assuming the branch is open again).
http://cppcms.sourceforge.net/boost_locale/html/index.html
ICU中有一些对i18n的支持,但我自己没有尝试过。
There is some support of i18n in ICU, but I have not tried it myself.