Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update zh-cn translation related to color and gradient #14819

Merged
merged 67 commits into from
Sep 6, 2023

Conversation

SolidBlock-cn
Copy link
Contributor

Updated the zh-cn translation of pages related to color and gradients, adding some information that previously only existed in en version.

@SolidBlock-cn SolidBlock-cn requested a review from a team as a code owner August 2, 2023 06:37
@SolidBlock-cn SolidBlock-cn requested review from jasonren0403 and removed request for a team August 2, 2023 06:37
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Aug 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

Preview URLs (18 pages)
Flaws (209)

Note! 1 document with no flaws that don't need to be listed. 🎉

URL: /zh-CN/docs/Web/CSS/text-align
Title: text-align
Flaw count: 2

  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (5 in common of 11 possible)

URL: /zh-CN/docs/Web/CSS/gradient
Title: <gradient>
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
  • translation_differences:
    • Differences in the important macros (5 in common of 13 possible)

URL: /zh-CN/docs/Web/CSS/gradient/repeating-radial-gradient
Title: repeating-radial-gradient()
Flaw count: 5

  • macros:
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
    • /zh-CN/docs/Web/CSS/image/image does not exist but fell back to /en-US/docs/Web/CSS/image/image
    • /zh-CN/docs/Web/CSS/image/image-set does not exist but fell back to /en-US/docs/Web/CSS/image/image-set
    • /zh-CN/docs/Web/CSS/cross-fade does not exist but fell back to /en-US/docs/Web/CSS/cross-fade
  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/gradient/repeating-linear-gradient
Title: repeating-linear-gradient()
Flaw count: 7

  • macros:
    • /zh-CN/docs/Web/CSS/linear-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/linear-gradient
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
    • /zh-CN/docs/Web/CSS/image/image does not exist but fell back to /en-US/docs/Web/CSS/image/image
    • /zh-CN/docs/Web/CSS/image/image-set does not exist but fell back to /en-US/docs/Web/CSS/image/image-set
    • /zh-CN/docs/Web/CSS/cross-fade does not exist but fell back to /en-US/docs/Web/CSS/cross-fade
  • broken_links:
    • Anchor not lowercase
  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/gradient/linear-gradient
Title: linear-gradient()
Flaw count: 7

  • macros:
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
    • /zh-CN/docs/Web/CSS/image/image does not exist but fell back to /en-US/docs/Web/CSS/image/image
    • /zh-CN/docs/Web/CSS/image/image-set does not exist but fell back to /en-US/docs/Web/CSS/image/image-set
    • /zh-CN/docs/Web/CSS/cross-fade does not exist but fell back to /en-US/docs/Web/CSS/cross-fade
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can't resolve /en-US/blog/css-color-module-level-4/
  • translation_differences:
    • Differences in the important macros (5 in common of 11 possible)

URL: /zh-CN/docs/Web/CSS/gradient/radial-gradient
Title: radial-gradient()
Flaw count: 9

  • macros:
    • /zh-CN/docs/Web/CSS/repeating-radial-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-radial-gradient
    • /zh-CN/docs/Web/CSS/linear-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/linear-gradient
    • /zh-CN/docs/Web/CSS/repeating-linear-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-linear-gradient
    • /zh-CN/docs/Web/CSS/conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/conic-gradient
    • /zh-CN/docs/Web/CSS/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
    • and 3 more flaws omitted
  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)

URL: /zh-CN/docs/Web/CSS/gradient/conic-gradient
Title: conic-gradient()
Flaw count: 9

  • macros:
    • /zh-CN/docs/Glossary/color_wheel does not exist but fell back to /en-US/docs/Glossary/Color_wheel
    • /zh-CN/docs/Glossary/interpolation does not exist but fell back to /en-US/docs/Glossary/Interpolation
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
    • /zh-CN/docs/Web/CSS/image/image does not exist but fell back to /en-US/docs/Web/CSS/image/image
    • and 2 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (5 in common of 13 possible)

URL: /zh-CN/docs/Web/CSS/WebKit_Extensions
Title: Webkit CSS 扩展
Flaw count: 139

  • macros:
    • /zh-CN/docs/Web/CSS/-webkit-animation-trigger does not exist
    • /zh-CN/docs/Web/CSS/-webkit-app-region does not exist
    • /zh-CN/docs/Web/CSS/-webkit-aspect-ratio does not exist
    • /zh-CN/docs/Web/CSS/-webkit-backdrop-filter does not exist
    • /zh-CN/docs/Web/CSS/-webkit-border-horizontal-spacing does not exist
    • and 133 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/CSS/named-color
Title: <named-color>
Flaw count: 2

  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/CSS/text-align-last
Title: text-align-last
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (4 in common of 7 possible)

URL: /zh-CN/docs/Web/CSS/color
Title: color
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/CSS/text-emphasis-color does not exist but fell back to /en-US/docs/Web/CSS/text-emphasis-color
    • /zh-CN/docs/Web/CSS/color-adjust does not exist but fell back to /en-US/docs/Web/CSS/print-color-adjust
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/HTML/Applying_color

URL: /zh-CN/docs/Web/CSS/CSS_images/Using_CSS_gradients
Title: 使用 CSS 渐变
Flaw count: 6

  • macros:
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
    • /zh-CN/docs/Glossary/interpolation does not exist but fell back to /en-US/docs/Glossary/Interpolation
    • /zh-CN/docs/Glossary/color_wheel does not exist but fell back to /en-US/docs/Glossary/Color_wheel
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
    • /zh-CN/docs/Web/CSS/gradient/repeating-conic-gradient does not exist but fell back to /en-US/docs/Web/CSS/gradient/repeating-conic-gradient
  • translation_differences:
    • Differences in the important macros (1 in common of 59 possible)

URL: /zh-CN/docs/Web/CSS/color_value
Title: <color>
Flaw count: 8

  • macros:
    • /zh-CN/docs/Web/CSS/color_value/hwb does not exist but fell back to /en-US/docs/Web/CSS/color_value/hwb
    • /zh-CN/docs/Web/CSS/color_value/color does not exist but fell back to /en-US/docs/Web/CSS/color_value/color
    • /zh-CN/docs/Web/CSS/hue does not exist but fell back to /en-US/docs/Web/CSS/hue
  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can't resolve /en-US/blog/css-color-module-level-4/
  • translation_differences:
    • Differences in the important macros (4 in common of 14 possible)

URL: /zh-CN/docs/Web/CSS/color_value/color-mix
Title: color-mix()
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/CSS/hue does not exist but fell back to /en-US/docs/Web/CSS/hue
  • translation_differences:
    • Differences in the important macros (4 in common of 8 possible)

URL: /zh-CN/docs/Web/CSS/color_value/device-cmyk
Title: device-cmyk()
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: css.types.color.device-cmyk

URL: /zh-CN/docs/Web/CSS/color_value/hsl
Title: hsl()
Flaw count: 4

  • macros:
    • /zh-CN/docs/Glossary/RGB does not exist but fell back to /en-US/docs/Glossary/RGB
    • /zh-CN/docs/Glossary/color_wheel does not exist but fell back to /en-US/docs/Glossary/Color_wheel
    • /zh-CN/docs/Web/CSS/hue does not exist but fell back to /en-US/docs/Web/CSS/hue
  • translation_differences:
    • Differences in the important macros (5 in common of 11 possible)

URL: /zh-CN/docs/Web/CSS/color_value/rgb
Title: rgb()
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (5 in common of 9 possible)
External URLs (15)

URL: /zh-CN/docs/Web/CSS/text-align
Title: text-align


URL: /zh-CN/docs/Web/CSS/gradient/conic-gradient
Title: conic-gradient()


URL: /zh-CN/docs/Web/CSS/WebKit_Extensions
Title: Webkit CSS 扩展


URL: /zh-CN/docs/Web/CSS/named-color
Title: <named-color>


URL: /zh-CN/docs/Web/CSS/color
Title: color


URL: /zh-CN/docs/Web/CSS/CSS_images/Using_CSS_gradients
Title: 使用 CSS 渐变


URL: /zh-CN/docs/Web/CSS/color_value
Title: <color>


URL: /zh-CN/docs/Web/CSS/color_value/hsl
Title: hsl()

(comment last updated: 2023-09-06 13:24:57)

@SolidBlock-cn
Copy link
Contributor Author

SolidBlock-cn commented Aug 2, 2023

我觉得需要讨论并统一一下color stop的翻译。

在现有的文件中,color stop的翻译五花八门,有颜色停止点、颜色终止、颜色断点等等。

我暂时先翻译成了颜色点。

@yin1999
Copy link
Member

yin1999 commented Aug 2, 2023

我觉得需要讨论并统一一下color stop的翻译。

在现有的文件中,color stop的翻译五花八门,有颜色停止点、颜色终止、颜色断点等等。

我暂时先翻译成了颜色点。

#12469 (comment)

@SolidBlock-cn
Copy link
Contributor Author

我觉得需要讨论并统一一下color stop的翻译。
在现有的文件中,color stop的翻译五花八门,有颜色停止点、颜色终止、颜色断点等等。
我暂时先翻译成了颜色点。

#12469 (comment)

“定格”和“暂停点”都感觉有点奇怪。

定格是指的一个值在一个时间段内保持不变。例如,在 Premiere 中,可以添加定格剪辑,或者给动态的属性的插值设为定格,使其在这个时间段内保持不动。而在动画和渐变中,它的“定格”时长为 0,本质上是没有定格的,其概念类似于 Premiere 或 After Effects 中的“关键帧”。

我记得在 Office 中创建渐变时,类似的概念被称为“光圈”,但我觉得这个词也不太合适。

@yin1999
Copy link
Member

yin1999 commented Aug 2, 2023

不好意思,弄错了,我们之前有讨论过 color stop 应该如何翻译,但不是我上面提到的 PR 中的。我今晚有时间会再找一下相关的 PR,不过我们最终采纳的翻译好像是来自 Adobe 公司的文档,你也可以先找找。

@yin1999
Copy link
Member

yin1999 commented Aug 2, 2023

找到了,我们之前讨论的是将其翻译为“色标”,参考:#13725 (comment)

@SolidBlock-cn
Copy link
Contributor Author

对于component这个词,有什么标准的翻译吗?例如,rgb颜色有红、绿、蓝这三个component。

我目前是翻译成“成分”。也有人建议翻译成“组件”“组分”“分量”等。

@yin1999
Copy link
Member

yin1999 commented Aug 4, 2023

对于component这个词,有什么标准的翻译吗?例如,rgb颜色有红、绿、蓝这三个component。

我目前是翻译成“成分”。也有人建议翻译成“组件”“组分”“分量”等。

不好意思,考虑了很久。我觉得这是可以的,按“成分”翻译吧,另一位协作者也赞成你的想法。

Copy link
Contributor

@jasonren0403 jasonren0403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

时间原因,先对text-align-*和webkit部分进行review

files/zh-cn/web/css/text-align/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/text-align/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/text-align/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/text-align/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/text-align/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/webkit_extensions/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/webkit_extensions/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/webkit_extensions/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/webkit_extensions/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/webkit_extensions/index.md Outdated Show resolved Hide resolved
Copy link
Contributor

@jasonren0403 jasonren0403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

久等了,以下是color*部分的review

files/zh-cn/web/css/color/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color_value/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color_value/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color_value/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color_value/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color_value/index.md Outdated Show resolved Hide resolved
jasonren0403

This comment was marked as duplicate.

files/zh-cn/web/css/gradient/conic-gradient/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/gradient/conic-gradient/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/gradient/conic-gradient/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/gradient/linear-gradient/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/gradient/conic-gradient/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/css/color_value/index.md Outdated Show resolved Hide resolved
jasonren0403 and others added 2 commits September 1, 2023 22:52
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@jasonren0403
Copy link
Contributor

@SolidBlock-cn 除了named color以外,其他地方还有些修正,可以先看看 👀

@SolidBlock-cn
Copy link
Contributor Author

感谢你们的仔细审阅,我会逐个检查

@jasonren0403
Copy link
Contributor

jasonren0403 commented Sep 4, 2023

建议在File changes选项卡中批量commit suggestions,这样就不会触发太多次构建提醒 @SolidBlock-cn 🙏

image

@SolidBlock-cn
Copy link
Contributor Author

原来还可以这样

Copy link
Contributor

@jasonren0403 jasonren0403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 Thanks @SolidBlock-cn and @yin1999

@jasonren0403 jasonren0403 merged commit 64a570a into mdn:main Sep 6, 2023
7 checks passed
@SolidBlock-cn SolidBlock-cn deleted the patch-2 branch September 6, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants