以下是 Crowdin 统计字数的原则:
如何计数单词的其他例子:
字符串 | 词数 |
Number is -123.45 | 3 |
<a href=”{0}” target=”_parent”>here</a> | 1 / 7 (如果未使用 HTML格式) |
{0} – {1} at {2} | 4 |
two-in-one | 1 |
2-in-one | 1 |
two-in-1 | 1 |
%file_type% | 1 |
hello?world | 1 |
hello ? world | 2 |
☂ ☃ ☀⚤ | 0 |
© %company% | 1 |
01/01/1980 | 3 |
Monday, August 8, 2011 | 4 |
https://ka-graphie.example.com/6d8b.png | 1 |
Let’s look | 2 |
Let's look | 3(使用了另外一种撇号) |
Word(s) | 2 |
当与基于 HTML 格式的文件一同工作时,视文件结构不同,某些 HTML 属性值可能视为可翻译的,而另一些不可翻译。 您可以在下表看到一些可翻译属性值的状态。
属性 | Details | 示例 |
title | 如果包含在任意 HTML 标签中,可翻译 | <p title="value">Text</p> |
src | 如果包含在 img 、iframe 、embed 、video 、audio 、source *、track *tags* – 如果嵌套在 video 、audio 父标签中可翻译 | <audio src="sound.ogg" controls>Text</audio> |
href | 如果包含在 a 标签中,可翻译 | <a href="https://www.site.com">Site name</a> |
data | 如果包含在 object 标签中,可翻译 | <object data="image.jpg"></object> |
value | 如果包含在 input 、button 标签中,可翻译 | <input value="Text"> |
placeholder | 如果包含在 input 、textarea 标签中,可翻译 | <textarea placeholder="Enter some text here..."></textarea> |
alt | 如果包含在 img 标签中,可翻译 | <img src="image.jpg" alt="Image"> |
label | 如果包含在 optgroup 、track *tags* – 如果嵌套在 video 、audio 父标签中可翻译 | <optgroup label="Text"> |
content | 如果包含在 meta 标签中,可翻译 | <meta name="description" content="Text"> |