语言定义¶
为了恰当地呈现不同的翻译,需要提供有关语言名称、文本方向、复数定义和语言代码的信息。
分析语言编码¶
当分析翻译时, Weblate 试图将语言编码(通常为 ISO 639-1 )映射到现有的任何语言对象。
您可以通过 语言别名 在项目层次来进一步调整这种映射。
如果不能找到完全匹配,将尝试将其最好地适配到现有语言(例如对给定的语言忽略默认国家代码——选择 cs
而不是 cs_CZ
)。
如果仍然失败,那么需要使用默认定义(从左到右的正文方向、一个复数)和语言命名来新建新的语言定义,如 xx_XX (generated) 。
提示
在您看到有些不想要的内容作为语言的情况下,您会想要调整 语言筛选 ,当分析翻译时忽略这样的文件。
内置语言定义¶
Definitions for more than 550 languages are included in Weblate and the list is extended in every release. Whenever Weblate is upgraded (more specifically whenever weblate migrate is executed, see 一般的升级指示) the database of languages is updated to include all language definitions shipped in Weblate.
This feature can be disable using UPDATE_LANGUAGES
. You can also
enforce updating the database to match Weblate built-in data using
setuplang
.