GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Doc: content of availability directive lost in i18n · Issue #101845 · python/cpython

Doc: content of availability directive lost in i18n #101845

New issue
Copy link
New issue
Copy link
Closed
Closed
Doc: content of availability directive lost in i18n#101845
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@jeanas
jeanas
opened on Feb 12, 2023
Issue body actions

Bug report

See https://git.afpy.org/AFPy/python-docs-fr/issues/28

For example, take the os.getgid function. https://docs.python.org/3/library/os.html#os.getgid reads

"""
os.getgid()

Return the real group id of the current process.

Availability: Unix.

The function is a stub on Emscripten and WASI, see WebAssembly platforms for more information.
"""

However, the French translation reads

"""
os.getgid()

Renvoie l'identifiant de groupe réel du processus actuel.

Disponibilité : Unix.
"""

This is unexpected. When a paragraph is not translated yet, the original is normally shown. Here, it is dropped.

Not only does this lose content, but it leads to build failures when warnings are turned into errors because the translation can lose some references.

CC @tiran (commit e3b6ff1)

Linked PRs

  • gh-101845: pyspecific: Fix i18n for availability directive #101846
  • [3.11] gh-101845: pyspecific: Fix i18n for availability directive (GH-101846) #101852

Activity

  1. jeanas
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Feb 12, 2023
  2. arhadthedev
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Feb 12, 2023
  3. JulienPalard
    added a commit that references this issue on Feb 12, 2023

    gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)

    6ef6915
  4. miss-islington
    added 2 commits that reference this issue on Feb 12, 2023

    pythongh-101845: pyspecific: Fix i18n for availability directive (pyt…

    6db46e9

    gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)

    1b73683
  5. carljm
    added a commit that references this issue on Feb 13, 2023

    Merge branch 'main' into inlinecomp2

    ae0bd02
  6. hauntsaninja commented on Mar 11, 2023

    @hauntsaninja
    hauntsaninja
    on Mar 11, 2023
    Contributor
    More actions

    Thanks!

  7. hauntsaninja
    closed this as completedon Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.