[FEAT] Translate the fixed words in values when key-language is set

オープン
#2,753 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c
領域
cli

調査の方向性

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fastfetch-cli/fastfetch のほかの issue

fastfetch-cli/fastfetch の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。