没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
墨菲 D库,用于解析.mo文件并获取翻译后的消息。 存在对复数形式的支持。 用法类似于 。 用法 import mofile; // Parse .mo file MoFile moFile = MoFile( " ru.mo " ); // Find translation string s = moFile.gettext( " Hello, world " ); // Trying out plural forms s = moFile.ngettext( " File " , " Files " , 1 ); s = moFile.ngettext( " File " , " Files " , 3 ); s = moFile.ngettext( " File " , " Files " , 5 ); gettext和ngettext函数的命令行类似物。 要运行此示例,您必须具有
资源推荐
资源详情
资源评论
收起资源包目录
mofile-master.zip (11个子文件)
mofile-master
.gitignore 118B
README.md 3KB
examples
messages.pot 772B
main.d 165B
ru.po 958B
gettext.d 767B
source
mofile.d 21KB
LICENSE_1_0.txt 1KB
travis-script.sh 296B
.travis.yml 204B
dub.json 286B
共 11 条
- 1
资源评论
AaronGary
- 粉丝: 22
- 资源: 4578
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功