Skip to content

Commit

Permalink
Add a note about translating code examples (#1382)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
m-aciek and AA-Turner authored Aug 31, 2024
1 parent 3cea249 commit 3a7f528
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions documentation/translating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,13 @@ As for every project, we have a *branch* per version. We store ``.po``
files in the root of the repository using the ``gettext_compact=0``
style.


How should I translate code examples?
-------------------------------------

Translate values in code examples (i.e. string literals) and comments.
Don't translate keywords or names,
including variable, function, class, argument, and attribute names.

.. _translation_wg: https://wiki.python.org/psf/TranslationWG/Charter
.. _translation_ml: https://mail.python.org/mailman3/lists/translation.python.org/

0 comments on commit 3a7f528

Please sign in to comment.