Ramin Gharib created FLINK-41738:
------------------------------------
Summary: Translate the pages of the string and binary functions
into Chinese
Key: FLINK-41738
URL: https://issues.apache.org/jira/browse/FLINK-41738
Project: Flink
Issue Type: Sub-task
Components: chinese-translation, Documentation
Reporter: Ramin Gharib
FLINK-41737 moves the string and binary functions to pages of their own,
generated from {{docs/data/functions/string-and-binary/<name>.yml}}. The
Chinese pages show the English sections. Where a converted row in
{{docs/data/sql_functions_zh.yml}} had a Chinese description, only its first
sentence was kept, as the summary in
{{docs/data/functions_zh/string-and-binary/<name>.yml}}. The rest is no longer
shown: 1063 of the 1700 Chinese characters of the 51 rows. The summaries of
CONCAT_WS, LOCATE, TRIM, CHR, DECODE, ENCODE and UNHEX contradicted their pages
and were dropped, so these pages show the English summary.
h3. Scope
* The 51 pages under {{docs/data/functions/string-and-binary/}}.
* Some summaries still name the arguments of the old rows. The pages name them
{{str}}, {{search_str}}, {{pos}}, {{len}} and so on, and the translation should
use those names.
h3. How to translate
* Put the translation in
{{docs/data/functions_zh/string-and-binary/<name>.yml}}. Each field it sets,
such as {{notes}} or {{returns}}, replaces the English one. The fields it
doesn't set fall back to English.
* The Chinese descriptions of these rows before FLINK-41737 are in
{{docs/data/sql_functions_zh.yml}} at commit
{{67f699dd3aec9c8e936a9b8f5a95f6d5eef625f8}}. They can be reused where they
still match the English page.
* {{docs/README.md}}, section "Built-in function pages", describes the fields.
The translation needs a native speaker. Until then, the English text is the
placeholder. FLINK-41529, FLINK-41590, FLINK-41717 and FLINK-41730 cover the
earlier categories the same way.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)