Ramin Gharib created FLINK-41744:
------------------------------------

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


FLINK-41743 moves the date and time functions to pages of their own, generated 
from {{docs/data/functions/date-and-time/<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/date-and-time/<name>.yml}}. The rest is no longer 
shown: 1059 of the 1548 Chinese characters of the 46 rows. The summaries of 
CURRENT_TIME, CURRENT_TIMESTAMP, NOW, CURRENT_ROW_TIMESTAMP, UNIX_TIMESTAMP, 
FROM_UNIXTIME, CONVERT_TZ, TIMESTAMPDIFF and the INTERVAL literal contradicted 
or misstated their pages and were dropped, so these pages show the English 
summary. The category page also lost one Chinese sentence about Table API unit 
names, which the corrected unit table replaces.

h3. Scope
* The 35 pages under {{docs/data/functions/date-and-time/}}, and the English 
sentences of 
{{docs/content.zh/docs/sql/built-in-functions/date-and-time/_index.md}}.
* Some summaries still name the arguments of the old rows. The pages name them 
{{temporal}}, {{unit}}, {{str}}, {{format}}, {{ts}}, {{tz}} and so on, and the 
translation should use those names.

h3. How to translate
* Put the translation in {{docs/data/functions_zh/date-and-time/<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-41743 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 and FLINK-41738 
cover the earlier categories the same way.



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

Reply via email to