[FEAT] Translate the fixed words in values when key-language is set
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The fixed English strings for uptime units and the bracketed Display, GPU, Battery and Disk tags are the values to find; search the C sources for the uptime formatting and the bracketed tag output, and check how --key-language is already read. Done means that with a Russian key language the uptime line reads 3 часа, 27 минут with correct plurals, while the default output stays byte-for-byte identical and languages without a string fall back to English. Confirm the scope with the maintainer before starting, since the issue is still open and has only one comment.
索引モデルが issue の本文から書いたものです。
説明
Description
Follow-up to #2503. With --key-language ru the keys are Russian, but the fixed words in the values are still English (dev e09925d):
Время работы: 3 hours, 27 mins
Дисплей (CMN1629): 1920x1080 in 16", 165 Hz [Built-in]
Видеокарта 1: NVIDIA GeForce RTX 4070 Laptop GPU [Discrete]
Батарея (PABAS0241231): 100% [AC Connected]
Would you take a PR that translates those words (duration units, the bracketed tags of Display / GPU / Battery / Disk) only when a key language is set? Without the option the output stays byte-for-byte the same; JSON, {type} and the other placeholders keep English; units like GiB and Hz are not touched; languages without a string fall back to English. I would start small: uptime only (3 часа, 27 минут, with proper plural forms), Russian set.
Motivation
These are fastfetch's own strings, so Command does not help, and a mixed-language line looks broken in screenshots.
Additional context
Happy to do it in whatever shape you prefer, or to drop it if values are out of scope.
- 主要言語
- C
- スター
- 25.5k
- フォーク
- 965
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fastfetch-cli/fastfetch のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
fastfetch-cli/fastfetch#2780 ·
メンテナーはふだん 1 日以内に返信
-
[LOGO] B1ackOSオープンlogo request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
fastfetch-cli/fastfetch#2773 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[LOGO] Kedi GNU/Linux対応中かも @avfx5 が 5 日前に担当しました。 オープンlogo request
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
fastfetch-cli/fastfetch#2755 ·
メンテナーはふだん 1 日以内に返信
-
[LOGO] Auxoオープンlogo request
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
fastfetch-cli/fastfetch#2754 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
[LOGO] VentoOS対応中かも @Goldloli が 9 日前に担当しました。 オープンlogo request
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
fastfetch-cli/fastfetch#2742 ·
メンテナーはふだん 1 日以内に返信
fastfetch-cli/fastfetch の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elliotchance/vsql#2079 ·
メンテナーはふだん 1 日以内に返信
-
category:port-update
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 2 日以内に返信
-
docs
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
meshcore-dev/MeshCore#4015 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
メンテナーはふだん 13 日以内に返信