[FEAT] Translate the fixed words in values when key-language is set
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C
- Sterne
- 25.5k
- Forks
- 965
- Ø Merge
- 1 T. 3 Std.
- Gemergte PRs (30 T.)
- 25
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus fastfetch-cli/fastfetch
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
fastfetch-cli/fastfetch#2780 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[LOGO] B1ackOSOffenlogo request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
fastfetch-cli/fastfetch#2773 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[LOGO] Kedi GNU/LinuxEvtl. vergeben @avfx5 hat das vor 5 Tagen übernommen. Offenlogo request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
fastfetch-cli/fastfetch#2755 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[LOGO] AuxoOffenlogo request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
fastfetch-cli/fastfetch#2754 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
[LOGO] VentoOSEvtl. vergeben @Goldloli hat das vor 9 Tagen übernommen. Offenlogo request
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 80/100
fastfetch-cli/fastfetch#2742 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in fastfetch-cli/fastfetch
Ähnliche Issues
-
Status: Opened
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
espressif/esp-protocols#1224 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
Maintainer antworten meist innerhalb von 1 Tag
-
bot-triaged module: bfloat16 module: cuda module: half module: numerical-stability triage review
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
zephyrproject-rtos/zephyr#128115 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
elliotchance/vsql#2079 ·
Maintainer antworten meist innerhalb von 1 Tag