文件导入设置

.汇票 - 获取文本(TMS)

文本由 Phrase Translate 机器翻译。

汇票gettext 是一个国际化和本地化(i18n)系统,通常用于在类Unix计算机操作系统上编写多语言程序。

在识别同一原文时,QA检查 仅 考虑上下文键。

有效。汇票文件是双语的,其中 msgid 包含 源语文本, msgstr 包含目标文本。

例:

#: src/name.c:36
msgid “我的名称是 %s。\n”
msgstr “Je m'appelle %s.\n”

文件类型

  • .PO

支持的占位符格式

  • c-format

  • objc-format

  • sh-format

  • python-format

  • python-brace-format

  • elisp-format

  • librep-format

  • scheme-format

  • smalltalk-format

  • java-format

  • csharp-format

  • awk-format,

  • object-pascal-format

  • YCP 格式

  • tcl-format

  • perl-format

  • perl-brace-format

  • php-format,

  • gcc-internal-format

  • gfc-internal-format

  • qt-format

  • qt-plural-format

  • kde-format

  • 提升格式

  • lua-format

  • javascript-format

导入选项

复数表格

汇票 Gettext允许复数形式的 本地化。

PO GNU Gettext 仅支持带有整数的复数形式。不支持十进制数字形式,例如 1.5 磅

1.汇票 Gettext 文件中未指定的复数形式

如果导入德语和阿拉伯语,德语目标文件将只有两种复数形式,而阿拉伯语 目标文件将有六种复数形式。正确的复数规则将自动用于每个目标语言,并且工作将以 语言-具体 数量的复数形式导入。

msgid ""
msgstr ""
“哑剧版:1.0\n"
“Content-类型: text/plain; charset=UTF-8\n”
“内容传输编码:8bit\n"

#:ui/gui/409
msgctxt “GUI|安装”
msgid “%d _storage设备 已选择”
msgid_plural“%d _storage设备已选择” 

2.为标题中的捷克语语言指定复数规则

即使导入德语或阿拉伯语,此文件也将始终具有 3 种复数形式。

msgid ""
msgstr ""
“哑剧版:1.0\n"
“Content-类型: text/plain; charset=UTF-8\n”
“内容传输编码:8bit\n"
“复数形式:n复数=3;复数=(n==1 ?0 : n>=2 && n<=4 ?1 :2);\n“”语言:cs\n”
#:ui/gui/409
msgctxt “GUI|安装”
msgid “%d _storage设备 已选择”
msgid_plural "%d _storage devices selected" msgstr[0] ""msgstr[1] ""msgstr[2] "" 

这篇文章有帮助吗?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.