FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-es/scripts/completed_files.py at fix_create_issue_script · sofide/python-docs-es · GitHub
sofide
/
python-docs-es
Public
forked from
python/python-docs-es
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docs-es
/
scripts
/
completed_files.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
25 lines (18 loc) · 542 Bytes
Breadcrumbs
python-docs-es
/
scripts
/
completed_files.py
Copy path
File metadata and controls
executable file
·
25 lines (18 loc) · 542 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python
import
glob
import
os
import
polib
# fades
PO_DIR
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
))
def
main
():
for
pofilename
in
sorted
(
glob
.
glob
(
PO_DIR
+
'**/*/*.po'
)):
po
=
polib
.
pofile
(
pofilename
)
percent_translated
=
po
.
percent_translated
()
if
percent_translated
>
90
:
pofilename
=
pofilename
.
replace
(
PO_DIR
+
os
.
sep
,
''
)
print
(
f"
{
pofilename
:<30
}
::
{
percent_translated
}
%"
)
if
__name__
==
"__main__"
:
main
()
Back
|
FazBrowse Home
|
New Git URL