[FEAT] Translate the fixed words in values when key-language is set
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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 小时
- 30 天内合并 PR
- 25
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
-
难度 2/5 1-3 小时 新手友好度 72/100
zephyrproject-rtos/zephyr#128115 ·
维护者通常 2 天内回复
-
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 天内回复