[FEAT] Translate the fixed words in values when key-language is set
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C
- Estrelas
- 25.5k
- Forks
- 965
- Merge médio
- 1d 3h
- PRs com merge (30d)
- 25
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de fastfetch-cli/fastfetch
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
fastfetch-cli/fastfetch#2780 ·
Mantenedores costumam responder em até 1 dia
-
[LOGO] B1ackOSAbertalogo request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
fastfetch-cli/fastfetch#2773 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
[LOGO] Kedi GNU/LinuxTalvez já em andamento @avfx5 assumiu há 5 dias. Abertalogo request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
fastfetch-cli/fastfetch#2755 ·
Mantenedores costumam responder em até 1 dia
-
[LOGO] AuxoAbertalogo request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
fastfetch-cli/fastfetch#2754 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
[LOGO] VentoOSTalvez já em andamento @Goldloli assumiu há 9 dias. Abertalogo request
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 80/100
fastfetch-cli/fastfetch#2742 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de fastfetch-cli/fastfetch
Issues semelhantes
-
Status: Opened
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
espressif/esp-protocols#1224 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Mantenedores costumam responder em até 1 dia
-
bot-triaged module: bfloat16 module: cuda module: half module: numerical-stability triage review
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
zephyrproject-rtos/zephyr#128115 ·
Mantenedores costumam responder em até 2 dias
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
elliotchance/vsql#2079 ·
Mantenedores costumam responder em até 1 dia