开源微博statusNET折腾——国际化(续)
来源:互联网 发布:自动输入验证码软件 编辑:程序博客网 时间:2024/05/16 18:49
当我在服务器和测试机上都成功部署并能够编译*.po文件后,发现对某些的修改并不能生效例如
#. TRANS: Main menu option when logged in to log out the current user
#: lib/action.php:477
#, fuzzy
msgctxt "MENU"
msgid "Logout"
msgstr "登出"
无论我怎么修改,都是显示Logout并没有进行中文的翻译,不知道为什么。找到gettext官网,查看它的文档,发现这么一段话:
fuzzy
- This flag can be generated by the
msgmerge
program or it can beinserted by the translator herself. It shows that themsgstr
string might not be a correct translation (anymore). Only the translatorcan judge if the translation requires further modification, or isacceptable as is. Once satisfied with the translation, she then removesthisfuzzy
attribute. Themsgmerge
program inserts thiswhen it combined themsgid
andmsgstr
entries after fuzzysearch only. See Fuzzy Entries。
大概意思:这个标签是由 msgmerge 这个程序或者翻译人自己所创建。它表示 msgstr 这个字符串里的内容可能不是正确的翻译。只有翻译者自己能够判断这条记录是否需要做进一步的修改,或者就是正确的翻译。一旦发现这个翻译是正确的,就将 fuzzy标签属性删掉。也就是说如果用户你觉得这条翻译是对的,去掉fuzzy那行记录就行了
#. TRANS: Main menu option when logged in to log out the current user
#: lib/action.php:477
msgctxt "MENU"
msgid "Logout"
msgstr "登出"
就这样,OK终于把这个国际化给搞定啦
- 开源微博statusNET折腾——国际化(续)
- 开源微博statusNET折腾——国际化
- 开源微博statusNET折腾——安装
- 折腾StatusNet(原laconica),搭建个人微博平台
- 使用php类图绘制工具——phuml构建statusnet的类图
- (一)国际化—程序名称国际化
- Struts2——国际化
- Struts2——国际化
- SpringMVC—国际化
- 第十四周——数组大折腾
- 寒假刷oj——折腾五位数
- CSS折腾集——选择器
- FreeBSD虚拟机——小折腾
- 生命不息,折腾不止—小黑升win10
- Spring MVC国际化——基于Session的国际化
- 配置微博StatusNet
- Distcuz&statusnet安装备忘
- Struts2学习——国际化
- 2010年8月16日 问题及需要学习和扩展的知识
- java语言中申明的类变量、实例变量、局部变量在内存中的分配问题
- Vim7.3发布
- Python入门6
- PowerTip of the Day from powershell.com上周汇总(三)
- 开源微博statusNET折腾——国际化(续)
- Linux操作系统内核启动参数详细解析
- 数学建模98的题,找高手指点
- PowerTip of the Day from powershell.com上周汇总(四)
- 数据库中视图的作用
- 委托
- SAP PS 项目模块 PA学习笔记——PLM200
- 数学建模98的题,找高手指点
- 说说标准--CSS核心可视化格式模型(visual formatting model)之八:float 特性以及浮动(Float)定位细则一