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

Ouverte
#2,753 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
45/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
c
Domaine
cli

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
C
Étoiles
25.5k
Forks
965
Merge moyen
1 j 3 h
PR mergées (30 j)
25

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de fastfetch-cli/fastfetch

Toutes les issues de fastfetch-cli/fastfetch

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.