[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread Rafael Fontenelle

New submission from Rafael Fontenelle :

The following string can be found in What's New in Python 3.10 source file 
(Doc/whatsnew/3.10.rst):

> For major changes, see `New Features Related to Type Hints`_.

where "`New Features Related to Type Hints`_" is a link to a section in the 
very same page with this name.

The issue with this link text is that translators should translate it (in 
python-doc organization in Transifex) but warning as errors will pop up if 
translated. For example, in Portuguese:

> Para mais alterações, veja `Novos recrusos relacionados a dicas de tipo`_

or to

> Para mais alterações, veja `Novos recrusos relacionados a dicas de tipo  Features Related to Type Hints>`_

Sphinx would complain with:

Doc/whatsnew/3.10.rst:1432: WARNING: inconsistent references in translated 
message. original: ['`New Features Related to Type Hints`_'], translated: []

To solve this issue, I see two solutions:

1- Create an anchor for "New Features Related to Type Hints" section in this 
page (let's say, "new-feat-related-type-hints") and then call it like 
:ref:`new-feat-related-type-hints` so that it gets the section title name 
automatically. Translators won't need to edit it in order to get translated 
title name. (recommended)

2- Rewrite the source string adding the internal link to the paragraph using 
`New Features Related to Type Hints <#new-features-related-to-type-hints>`_, so 
that it can be translated without popping up the warning message.

--
assignee: docs@python
components: Documentation
messages: 408889
nosy: docs@python, rffontenelle
priority: normal
severity: normal
status: open
title: Untranslatable link text in whatsnew/3.10
versions: Python 3.10, Python 3.11

___
Python tracker 
<https://bugs.python.org/issue46130>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-19 Thread Rafael Fontenelle


Change by Rafael Fontenelle :


--
keywords: +patch
pull_requests: +28420
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30199

___
Python tracker 
<https://bugs.python.org/issue46130>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46130] Untranslatable link text in whatsnew/3.10

2021-12-23 Thread Rafael Fontenelle


Change by Rafael Fontenelle :


--
pull_requests: +28457
pull_request: https://github.com/python/cpython/pull/30236

___
Python tracker 
<https://bugs.python.org/issue46130>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44010] IDLE: highlight soft keywords

2021-11-06 Thread Rafael Fontenelle


Change by Rafael Fontenelle :


--
nosy: +rffontenelle
nosy_count: 5.0 -> 6.0
pull_requests: +27709
pull_request: https://github.com/python/cpython/pull/29454

___
Python tracker 
<https://bugs.python.org/issue44010>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45741] entry points singular?

2021-11-06 Thread Rafael Fontenelle


New submission from Rafael Fontenelle :

whatsnew/3.10 on importlib.metadata has the following paragraph:

"importlib.metadata entry points now provides a nicer experience for selecting 
entry points by group and name through a new importlib.metadata.EntryPoints 
class. See the Compatibility Note in the docs for more info on the deprecation 
and usage."

In the above paragraph should "provides" -> "provide", or "entry points" is 
somehow considered singular?

[1] https://docs.python.org/pt-br/3/whatsnew/3.10.html#importlib-metadata

--
assignee: docs@python
components: Documentation
messages: 405888
nosy: docs@python, rffontenelle
priority: normal
severity: normal
status: open
title: entry points singular?
versions: Python 3.10, Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45741>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45741] entry points singular?

2021-11-07 Thread Rafael Fontenelle


Change by Rafael Fontenelle :


--
keywords: +patch
pull_requests: +27715
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29461

___
Python tracker 
<https://bugs.python.org/issue45741>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39183] Text divided in two strings due to wrong formatting

2020-01-01 Thread Rafael Fontenelle


New submission from Rafael Fontenelle :

When translating Python docs, the 'library/ensurepip' module [1] has an bullet 
list where one item's text is split in two due to a simple extra whitespace 
character. This causes two separated translations strings

"``--default-pip``: if a \"default pip\" installation is requested, the"

and

"``pip`` script will be installed in addition to the two regular scripts."

, which clearly should be a single one.

Its effect can be seen also in the resulting documentation, where these strings 
are shown in different lines even when there are enough space in the browser 
window to should it all.

Solution is to remove the extra space and formatting is good again.

[1] https://docs.python.org/3/library/ensurepip.html

--
assignee: docs@python
components: Documentation
messages: 359170
nosy: docs@python, rffontenelle
priority: normal
severity: normal
status: open
title: Text divided in two strings due to wrong formatting
type: enhancement
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue39183>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39183] Text divided in two strings due to wrong formatting

2020-01-03 Thread Rafael Fontenelle


Rafael Fontenelle  added the comment:

Fix confirmed, closing.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue39183>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39229] library/functions.rst causes translated builds to fail

2020-01-05 Thread Rafael Fontenelle


New submission from Rafael Fontenelle :

Documentation file library/functions.rst has a syntax issue that when building 
documentation with warnings as errors, the following message appears:

cpython/Doc/library/functions.rst:: WARNING: inconsistent term references in 
translated message. original: [], translated: [':ref:`evento de auditoria 
`']

After several testing, it seems that what is causing this is 
librar/functions.rst's line 795 not having a reference ":ref:`auditing event 
`".


Steps to reproduce the issue:

1. git clone --depth 1 https://github.com/python/cpython

2. mkdir -p locale/pt_BR/LC_MESSAGES
3. git clone --depth 1 https://github.com/python/python-docs-pt-br 
locale/pt_BR/LC_MESSAGES

4. cd locale/pt_BR/LC_MESSAGES

# This takes about 40 minutes (can be ignored for outdated po files with more 
unrelated syntax errors) 
5. tx pull --force --language pt_BR --parallel

6. cd ../../..

7. cd cpython/Doc/

8. make venv

9. make html\
SPHINXOPTS='-q --keep-going -jauto  \
-D locale_dirs=../../locale \
-D language=pt_BR   \
-D gettext_compact=0\
-D latex_engine=xelatex \
-D latex_elements.inputenc= \
-D latex_elements.fontenc='

10. Look for library/functions.rst "WARNING" error message between the output.

--
assignee: docs@python
components: Documentation
messages: 359401
nosy: docs@python, rffontenelle
priority: normal
severity: normal
status: open
title: library/functions.rst causes translated builds to fail
type: enhancement
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue39229>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39229] library/functions.rst causes translated builds to fail

2020-01-05 Thread Rafael Fontenelle


Change by Rafael Fontenelle :


--
keywords: +patch
pull_requests: +17277
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17857

___
Python tracker 
<https://bugs.python.org/issue39229>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39229] library/functions.rst causes translated builds to fail

2020-01-08 Thread Rafael Fontenelle


Rafael Fontenelle  added the comment:

Hey Julien! I already fixed once, now I fixed them again, but the message 
persists:


make[1]: Entering directory 
'/home/rffontenelle/repos/python-docs-pt-br/venv/workdirs/cpython/Doc'
mkdir -p build
Building NEWS from Misc/NEWS.d with blurb
PATH=/home/rffontenelle/repos/python-docs-pt-br/venv/workdirs/cpython/Doc/venv/bin:$PATH
 sphinx-build -b html -d build/doctrees  -q --keep-going -jauto   \
-D 
locale_dirs=/home/rffontenelle/repos/python-docs-pt-br/venv/workdirs/locale 
   \
-D language=pt_BR \
-D gettext_compact=0\
-D latex_engine=xelatex \
-D latex_elements.inputenc= \
-D latex_elements.fontenc= -W . build/html 
/home/rffontenelle/repos/python-docs-pt-br/venv/workdirs/cpython/Doc/library/functions.rst::
 WARNING: inconsistent term references in translated message. original: [], 
translated: [':ref:`evento de auditoria `']
make[1]: *** [Makefile:51: build] Error 1
make[1]: Leaving directory 
'/home/rffontenelle/repos/python-docs-pt-br/venv/workdirs/cpython/Doc'

--

___
Python tracker 
<https://bugs.python.org/issue39229>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40719] Add pt-br to the language switcher at the Python 3.6 and 2.7 docs website

2020-05-21 Thread Rafael Fontenelle


New submission from Rafael Fontenelle :

Thanks to bpo-38592, pt-br is listed in 3.8 and 3.7 versions.  Now, pt-br 
team's repository has 3.6 and 2.7 branches daily pomerged from 3.8 branch.  So, 
I believe it would nice to have it in those older versions' language switcher.

--
assignee: docs@python
components: Documentation
messages: 369540
nosy: docs@python, rffontenelle
priority: normal
severity: normal
status: open
title: Add pt-br to the language switcher at the Python 3.6 and 2.7 docs website
type: enhancement
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue40719>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40719] Add pt-br to the language switcher at the Python 3.6 and 2.7 docs website

2020-05-21 Thread Rafael Fontenelle


Change by Rafael Fontenelle :


--
keywords: +patch
pull_requests: +19572
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20301

___
Python tracker 
<https://bugs.python.org/issue40719>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40719] Add pt-br to the language switcher at the Python 3.6 and 2.7 docs website

2020-05-26 Thread Rafael Fontenelle


Rafael Fontenelle  added the comment:

3.6 applied. Since 2.7 was already "sunsetted", leave as is. Closing.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue40719>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42180] Missing a plural in library/functions

2020-10-28 Thread Rafael Fontenelle


New submission from Rafael Fontenelle :

Missing plural in the start of the following sentence from library/functions:

"The optional argument *flags* and *dont_inherit* controls which :ref:`compiler 
options ` should be activated and which :ref:`future 
features ` should be allowed."

This was introduced in bpo-40484, probably by accident.

Link to source code: 
https://github.com/python/cpython/blob/master/Doc/library/functions.rst#L262

--
messages: 379827
nosy: rffontenelle
priority: normal
severity: normal
status: open
title: Missing a plural in library/functions
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue42180>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42180] Missing a plural in library/functions

2020-10-28 Thread Rafael Fontenelle


Change by Rafael Fontenelle :


--
keywords: +patch
pull_requests: +21931
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23015

___
Python tracker 
<https://bugs.python.org/issue42180>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com