update Chinese translation, and add the function of specifing date format. #7

Merged
Sweetbread merged 2 commits from Eilles/kolibrios.org:main into main 2026-01-18 12:10:09 +00:00
Contributor
  1. Upload Chinese translation(simplified for zh-Hans, traditional for zh-Hant)
  2. Add a way to specifing date format in the "Download" page
  3. Formatted the Python code using Black
1. Upload Chinese translation(simplified for zh-Hans, traditional for zh-Hant) 2. Add a way to specifing date format in the "Download" page 3. Formatted the Python code using Black
Eilles added 1 commit 2026-01-17 23:04:38 +00:00
Sweetbread requested review from Burer 2026-01-17 23:05:37 +00:00
Sweetbread requested review from Sweetbread 2026-01-17 23:05:37 +00:00
Owner

Could you split the commit into those 3 points, please?

Could you split the commit into those 3 points, please?
Author
Contributor

Explain for Line 68-69 in app.py

In the case of some space-charater-sensitive languages like Chinese, Japanese or Korean, if we remain the trailing single new-line(\n) in a HTML text, the web renderer will put a space there. So a space between some place that shouldn't have a space will just break a word. So I use the .replace method to remove all \n, and before it using another .replace to avoid influencing the other cases like:

A quick fox\n\
\n\
jumps over...

That's why the two line happen.

**Explain for [Line 68-69 in app.py](https://git.kolibrios.org/KolibriOS/kolibrios.org/src/commit/3fda67d67125391cdc5c0c521ccb7b0a13a298cc/app.py#L68)** In the case of some space-charater-sensitive languages like Chinese, Japanese or Korean, if we remain the trailing single new-line(`\n`) in a HTML text, the web renderer will put a space there. So a space between some place that shouldn't have a space will just break a word. So I use the `.replace` method to remove all `\n`, and before it using another `.replace` to avoid influencing the other cases like: ``` A quick fox\n\ \n\ jumps over... ``` That's why the two line happen.
Author
Contributor

Could you split the commit into those 3 points, please?

oh, okay~

> Could you split the commit into those 3 points, please? oh, okay~
Eilles added 3 commits 2026-01-17 23:39:44 +00:00
Burer force-pushed main from f0db9c2089 to 2c0f65e59f 2026-01-18 11:40:00 +00:00 Compare
Sweetbread added 2 commits 2026-01-18 11:51:17 +00:00
Sweetbread force-pushed main from 87dc628232 to a0b12f2cba 2026-01-18 11:55:45 +00:00 Compare
Burer approved these changes 2026-01-18 12:00:46 +00:00
Sweetbread force-pushed main from a0b12f2cba to ea969132f8 2026-01-18 12:04:02 +00:00 Compare
Owner

Note

We removed merge commit and removed two extra lines in locales/zh-Hant.ini

> [!note] > We removed merge commit and removed two extra lines in `locales/zh-Hant.ini`
Sweetbread approved these changes 2026-01-18 12:09:46 +00:00
Sweetbread merged commit ea969132f8 into main 2026-01-18 12:10:09 +00:00
Sign in to join this conversation.
No Reviewers
No Label
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios.org#7