贡献译文¶
从 Flower 1.5 开始,我们在文档页面中引入了翻译,但正如你可能已经注意到的,这些翻译往往并不完美。如果您会说英语以外的语言,也许您可以帮助我们翻译这些文档,让更多的人了解 Federated Learning!对于那些想成为开源贡献者的人来说,这也是一个很好的机会。
我们的翻译项目已在 "Weblate <https://hosted.weblate.org/projects/flower-docs/framework/>`_"上公开,大部分工作都将在这里进行。
为现有语言作出贡献¶
您需要做的第一件事就是在本`网页<https://hosted.weblate.org/accounts/register/>`_上创建一个免费的Weblate帐户。有关个人资料设置的更多信息,请参阅`这里 <https://docs.weblate.org/en/latest/user/profile.html>`_。
登录到Weblate后,您可以导航到 "Flower Framework "项目<https://hosted.weblate.org/projects/flower-docs/framework/>`_。在这里,您可以看到网站上现有的各种语言。
选择您要贡献的语言后,您应该会看到与此类似的界面:
最简单的方法是点击右上角("翻译状态 "部分)的 "翻译 "按钮。这将自动带您进入未翻译字符串的翻译界面。
这就是界面的样子:
You input your translation in the text box at the top and then, once you are happy with
it, you either press Save and continue (to save the translation and go to the next
untranslated string), Save and stay (to save the translation and stay on the same
page), Suggest (to add your translation to suggestions for other users to view), or
Skip (to go to the next untranslated string without saving anything).
为了帮助翻译,您可以在底部看到 "邻近字符串"、"评论"(来自其他贡献者)、"自动建议"(来自机器翻译引擎)、"其他语言 "中的翻译以及该字符串的 "历史翻译"。
在右侧的 "字符串信息 "部分,您还可以单击 "源字符串位置 "下的链接,以查看包含字符串的 doc 文件的源文件。
有关使用 Weblate 进行翻译的更多信息,您可以查看本 "深入指南 <https://docs.weblate.org/en/latest/user/translating.html>`_"。
添加新语言¶
If you want to add a new language, you will first have to contact us, either on Slack, or by opening an issue on our GitHub repo.