Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Traductions manquantes library/datetime.po #1338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 6, 2020
Merged

Traductions manquantes library/datetime.po #1338

merged 5 commits into from
Jun 6, 2020

Conversation

alkimya
Copy link
Contributor

@alkimya alkimya commented Jun 2, 2020

Close #1308
Les dernières traductions manquantes de library/datime.po.
Je m'occuperais des fuzzies après, mais j'ai moins de temps en ce moment.
Je me suis rajouté aussi dans le fichier TRANSLATORS.

@alkimya
Copy link
Contributor Author

alkimya commented Jun 2, 2020

Je fais quoi pour le C89 qui ne passe pas avec pospell, je le rajoute au dictionnaire?

@deronnax
Copy link
Collaborator

deronnax commented Jun 2, 2020

vas-y

Copy link
Contributor

@christopheNan christopheNan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci beaucoup. Quelques remarques.

alkimya and others added 2 commits June 2, 2020 22:55
Copy link
Contributor

@christopheNan christopheNan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@deronnax
Copy link
Collaborator

deronnax commented Jun 6, 2020

Je merge ! Encore une fois, merci beaucoup @alkimya !

@deronnax deronnax merged commit 46213b2 into python:3.8 Jun 6, 2020
@deronnax
Copy link
Collaborator

deronnax commented Jun 6, 2020

@JulienPalard forward-port stp ? (et tu nous explique comment faire ?)

@christopheNan
Copy link
Contributor

Pour passer d'une version à une autre, dans le principe :

  • tu construis ta base de traductions valides grâce à polib, sous la forme d'un dictionnaire :
    trad_source = {entry.msgid: entry.msgstr 
                  for entry in posource.translated_entries() 
                  if not entry.fuzzy}
    
  • tu pousses ces traductions vers la nouvelle version :
    if (entry.msgid in trad_source and entry.msgstr != trad_source[entry.msgid]):
        cpt += 1
        entry.msgstr = trad_source[entry.msgid]
        try:
            entry.flags.remove('fuzzy')
            fuzzies += 1
        except ValueError:
            pass
    

Ensuite, en pratique, pomerge utilise un fichier tampon et charge les 2 versions l'une après l'autre dans le répertoire git. Moi, pour backporter vers la 3.7, j'utilisais directement 2 arborescences l'une à côté de l'autre.
il me semble que pomerge marque les traductions en fuzzy, moi ici non. pomerge construit la base de traductions à partir de tous les fichiers et injecte les traductions dans tous les fichiers. Moi, je faisais une base par fichier que je poussais dans le fichier de même nom.

@alkimya
Copy link
Contributor Author

alkimya commented Jun 6, 2020

Super, merci pour les relectures.

@alkimya alkimya deleted the datetime branch June 6, 2020 21:09
@JulienPalard
Copy link
Member

@deronnax C'est documenté : #1339
@christopheNan : il me semble que pomerge marque les traductions en fuzzy oui, avec l'option --mark-as-fuzzy, (pas très intéressante pour du forward porting).

@JulienPalard
Copy link
Member

@alkimya J'ai ouvert #1340 pour copier ton travail sur la 3.9 (juste pour information, tu n'as pas d'action spécifique à faire sur cette PR). À partir de maintenant on travaille sur la 3.9, donc pour ta prochaine PR n'oublie pas de baser ta branche sur une upstream/3.9 fraîchement git fetchée.

JulienPalard pushed a commit to JulienPalard/python-docs-fr that referenced this pull request Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Je travaille sur library/datetime.po
4 participants