我正在尝试 gettext 并运行 msginit --locale=en --input=messages.po
这就是我所看到的:
[... blah ...]
Is the following your email address?
localUserName@localHostName
Please confirm by pressing Return, or enter your email address.
Retrieving http://translationproject.org/team/index.html... done.
A translation team for your language (en) does not exist yet.
If you want to create a new translation team for en or en_PG, please visit
http://www.iro.umontreal.ca/contrib/po/HTML/teams.html
http://www.iro.umontreal.ca/contrib/po/HTML/leaders.html
http://www.iro.umontreal.ca/contrib/po/HTML/index.html
Created en_PG.po.
哪些内容已经被披露或将会被披露?此披露的目的是什么?
$ msginit --version
msginit (GNU gettext-tools) 0.19.8.1
最佳答案
您不需要wireshark
以便在这里追踪。文本编辑器即可:
工具 msginit 调用 shell 脚本 <prefix>/share/gettext/projects/TP/team-address
尝试从 http://translationproject.org/team/index.html 下载(通过 <prefix>/lib/gettext/urlget
)包含翻译团队的表格,并且它回退到安装在 <prefix>/share/gettext/projects/TP/teams.html
下的本地副本。这样做的目的是填充 PO header Language-Team
具有最新的电子邮件地址。
我同意至少应该在打开互联网连接之前提示用户。
我已经为此打开了一个上游问题:
在 0.20 之前的版本中,无论您指定什么区域设置,程序(即上述脚本 team-address
)始终报告“您的语言 (xy) 的翻译团队尚不存在”。 gettext 版本 0.20.1 中已修复此问题。
感谢您指出这一点!
作为解决方法,您可以编辑 shell 脚本 team-address
不调用urlget
但直接使用本地副本。
关于gettext - GNU gettext 通过公共(public)互联网发送什么以及为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60244078/