Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
0febc053
Kaydet (Commit)
0febc053
authored
Şub 23, 2018
tarafından
cocoatomo
Kaydeden (comit)
INADA Naoki
Şub 23, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-32087: Doc: Make "deprecated-removed" directive translatable (GH-4473)
üst
58a10967
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
pyspecific.py
Doc/tools/extensions/pyspecific.py
+7
-5
dummy.html
Doc/tools/templates/dummy.html
+1
-0
No files found.
Doc/tools/extensions/pyspecific.py
Dosyayı görüntüle @
0febc053
...
...
@@ -196,7 +196,7 @@ class DeprecatedRemoved(Directive):
final_argument_whitespace
=
True
option_spec
=
{}
_label
=
'Deprecated since version
%
s, will be removed in version
%
s
'
_label
=
'Deprecated since version
{deprecated}, will be removed in version {removed}
'
def
run
(
self
):
node
=
addnodes
.
versionmodified
()
...
...
@@ -204,11 +204,12 @@ class DeprecatedRemoved(Directive):
node
[
'type'
]
=
'deprecated-removed'
version
=
(
self
.
arguments
[
0
],
self
.
arguments
[
1
])
node
[
'version'
]
=
version
text
=
self
.
_label
%
version
label
=
translators
[
'sphinx'
]
.
gettext
(
self
.
_label
)
text
=
label
.
format
(
deprecated
=
self
.
arguments
[
0
],
removed
=
self
.
arguments
[
1
])
if
len
(
self
.
arguments
)
==
3
:
inodes
,
messages
=
self
.
state
.
inline_text
(
self
.
arguments
[
2
],
self
.
lineno
+
1
)
para
=
nodes
.
paragraph
(
self
.
arguments
[
2
],
''
,
*
inodes
)
para
=
nodes
.
paragraph
(
self
.
arguments
[
2
],
''
,
*
inodes
,
translatable
=
False
)
node
.
append
(
para
)
else
:
messages
=
[]
...
...
@@ -220,13 +221,14 @@ class DeprecatedRemoved(Directive):
content
.
source
=
node
[
0
]
.
source
content
.
line
=
node
[
0
]
.
line
content
+=
node
[
0
]
.
children
node
[
0
]
.
replace_self
(
nodes
.
paragraph
(
''
,
''
,
content
))
node
[
0
]
.
replace_self
(
nodes
.
paragraph
(
''
,
''
,
content
,
translatable
=
False
))
node
[
0
]
.
insert
(
0
,
nodes
.
inline
(
''
,
'
%
s: '
%
text
,
classes
=
[
'versionmodified'
]))
else
:
para
=
nodes
.
paragraph
(
''
,
''
,
nodes
.
inline
(
''
,
'
%
s.'
%
text
,
classes
=
[
'versionmodified'
]))
classes
=
[
'versionmodified'
]),
translatable
=
False
)
node
.
append
(
para
)
env
=
self
.
state
.
document
.
settings
.
env
env
.
note_versionchange
(
'deprecated'
,
version
[
0
],
node
,
self
.
lineno
)
...
...
Doc/tools/templates/dummy.html
Dosyayı görüntüle @
0febc053
...
...
@@ -4,3 +4,4 @@ texts in extensions to sphinx.pot file.
In extensions/pyspecific.py:
{% trans %}CPython implementation detail:{% endtrans %}
{% trans %}Deprecated since version {deprecated}, will be removed in version {removed}{% endtrans %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment