[FEAT] Translate the fixed words in values when key-language is set
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C
- Stelle
- 25.5k
- Fork
- 965
- Merge medio
- 1g 3h
- PR unite (30g)
- 25
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fastfetch-cli/fastfetch
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
fastfetch-cli/fastfetch#2780 ·
I maintainer di solito rispondono entro 1 giorno
-
[LOGO] B1ackOSApertalogo request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
fastfetch-cli/fastfetch#2773 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[LOGO] Kedi GNU/LinuxForse già presa @avfx5 l’ha presa 5 giorni fa. Apertalogo request
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
fastfetch-cli/fastfetch#2755 ·
I maintainer di solito rispondono entro 1 giorno
-
[LOGO] AuxoApertalogo request
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
fastfetch-cli/fastfetch#2754 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[LOGO] VentoOSForse già presa @Goldloli l’ha presa 9 giorni fa. Apertalogo request
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
fastfetch-cli/fastfetch#2742 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fastfetch-cli/fastfetch
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elliotchance/vsql#2079 ·
I maintainer di solito rispondono entro 1 giorno
-
[libcbor] update to 0.15.1Apertacategory:port-update
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 2 giorni
-
docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
meshcore-dev/MeshCore#4015 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
I maintainer di solito rispondono entro 13 giorni