Coder Social home page Coder Social logo

docs's Issues

Scripts to update crowdin.yml

crowdin.yml 中指定的翻译内容和原文内容的对应关系。这是 crowdin 的一个配置内容。目前存在一个问题:

  1. 规则使用通配符的方式编写,这使得 crowdin cli 在进行 --delete-obselote 的内容的时候,无法正常剔除内容,因为通配符会全部命中

因此:

  1. 需要使用脚本来生成每一个文件单独规则的清单,并且每次更新时自动更新 crowdin.yml

关于代码段翻译的特殊处理说明

结论:
对于代码段,不应该对其进行翻译。应该使用 "Hide String" 功能对其进行隐藏。操作如下图:
image

该规则可以扩展应用到其他任何不需要翻译的内容上。例如:

  1. 单行代码段
    image
  2. hugo metadata 头部内容
    image
  3. hugo 代码块
    image

注意,混编在文本中的代码段不受此规则约束。

原因:

例如,存在以下代码段

aaaa
bbbb
cccc

如果直接将内容直接拷贝为翻译内容,则该词条会进入TM。如果代码段内容发生了变化,变为:

aaaa
bbbb
cccc
dddd

当使用 TM 进行翻译时,由于 crowdin 的识别问题,可能会导致该段出现内容重复,格式错乱的情况。
故而以上内容若在 TM 中不存在,则不会出现错误的替换。

Scripts to update aliases

There are some docs with aliases like:

---
type: docs
title: "How-To: Configure state store and pub/sub message broker"
linkTitle: "(optional) Configure state & pub/sub"
weight: 80
description: "Configure state store and pub/sub message broker components for Dapr"
aliases:
  - /getting-started/configure-redis/
---

and it should be updated to url with zh-hans prefix like

---
aliases:
  - /zh-hans/getting-started/configure-redis/
---

It should be done at tasks.py
https://github.com/dapr-cn/docs/blob/main/src/scripts/tasks.py

sdks_python

Update new GA criteria and rename GA to Stable in CN docs

Hello,

Please reference the changes documented in dapr/docs#1879 to make the same changes in the Dapr CN docs. Below are the PRs you can reference for the changes that were made to accommodate the new Stable lable and criteria that have replaced the previously named GA as of Dapr release v1.5

Files needing update:

daprdocs/content/en/operations/components/certification-lifecycle.md
daprdocs/content/en/operations/support/support-versioning.md
daprdocs/content/en/reference/*

PRs for reference:

需要一个检查清单来标记文档的翻译完整度

  1. 虽然 crowdin 可以展示当前的翻译度
  2. 但是,我们代码段不翻译
  3. 所以,译者不知道哪些文档确实翻译完了

因此,需要一个检查清单,这个清单需要能够表示

  1. 所有的文件
  2. 文件当前在 crowdin 的翻译完成度
  3. 是否有译者进行的手动确认(当译者手动确认完毕之后,管理员便即可进行代码 hide 操作,以达到 100%

可以考虑使用 github issue 中的 todo list 来表示这份内容

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.