Ramin Gharib created FLINK-41746:
------------------------------------

             Summary: Translate the pages of the collection and row and 
structured type functions into Chinese
                 Key: FLINK-41746
                 URL: https://issues.apache.org/jira/browse/FLINK-41746
             Project: Flink
          Issue Type: Sub-task
          Components: chinese-translation, Documentation
            Reporter: Ramin Gharib


FLINK-41745 moves the collection and the row and structured type functions to 
pages of their own, generated from 
{{docs/data/functions/collection/<name>.yml}} and 
{{docs/data/functions/row-and-structured-types/<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/<category>/<name>.yml}}. The rest is no longer shown: 
584 of the 930 Chinese characters of the 33 rows. The summaries of MAP_UNION, 
field access and the ROW constructor contradicted or misstated their pages and 
were dropped, so these pages show the English summary. ARRAY_MIN and ARRAY_SORT 
had no row in the Chinese table and now link to their English pages.

h3. Scope
* The 29 pages under {{docs/data/functions/collection/}} and the 5 pages under 
{{docs/data/functions/row-and-structured-types/}}.
* Some summaries still name the arguments of the old rows, such as 
{{haystack}}, {{array1}} and {{value1}}. The pages name them {{arr}}, {{arr1}}, 
{{m}}, {{needle}}, {{element}} and so on, and the translation should use those 
names.

h3. How to translate
* Put the translation in {{docs/data/functions_zh/<category>/<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-41745 are in 
{{docs/data/sql_functions_zh.yml}} at commit 
{{75a3d070198c9bd2957a953f54f257aa8387b2c5}}. 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, FLINK-41730, FLINK-41738 
and FLINK-41744 cover the other categories the same way.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to