Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-dev-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-dev-tools
Commits
85df1676
Commit
85df1676
authored
5 years ago
by
Aaron Carlisle
Browse files
Options
Downloads
Patches
Plain Diff
RNA Manual Reference: Cleanup Comments
parent
0d3cc45e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils_doc/rna_manual_reference_updater.py
+4
-3
4 additions, 3 deletions
utils_doc/rna_manual_reference_updater.py
with
4 additions
and
3 deletions
utils_doc/rna_manual_reference_updater.py
+
4
−
3
View file @
85df1676
...
...
@@ -96,8 +96,8 @@ fw(" \"ko_KR\": \"ko\",\n") # Korean
fw
(
"
\"
pt_PT
\"
:
\"
pt
\"
,
\n
"
)
# Portuguese
fw
(
"
\"
pt_BR
\"
:
\"
pt
\"
,
\n
"
)
# Portuguese - for until we have a pt_BR version
fw
(
"
\"
vi_VN
\"
:
\"
vi
\"
,
\n
"
)
# Vietnamese
fw
(
"
\"
zh_CN
\"
:
\"
zh-hans
\"
,
\n
"
)
#
Chinese - Should be changed to "zh_cn" but there is a bug in sphinx-intl
fw
(
"
\"
zh_TW
\"
:
\"
zh-hant
\"
,
\n
"
)
# T
aiwanese
Chinese
fw
(
"
\"
zh_CN
\"
:
\"
zh-hans
\"
,
\n
"
)
#
Simplified Chinese
fw
(
"
\"
zh_TW
\"
:
\"
zh-hant
\"
,
\n
"
)
# T
raditional
Chinese
fw
(
"
}.get(language)
\n\n
"
)
fw
(
"
if LANG is not None:
\n
"
)
fw
(
"
url_manual_prefix = url_manual_prefix.replace(
\"
manual/en
\"
,
\"
manual/
\"
+ LANG)
\n\n
"
)
...
...
@@ -106,7 +106,8 @@ fw("url_manual_mapping = (\n")
# Logic to manipulate strings from objects.inv
with
open
(
"
objects.tmp
"
,
encoding
=
"
utf8
"
)
as
obj_tmp
:
lines
=
[
l
for
l
in
obj_tmp
if
(
l
.
startswith
(
"
bpy.types
"
)
or
l
.
startswith
(
"
bpy.ops
"
))]
lines
.
sort
(
key
=
lambda
l
:
l
.
find
(
"
"
),
reverse
=
True
)
# Finding first space will return length of rna path...
# Finding first space will return length of rna path
lines
.
sort
(
key
=
lambda
l
:
l
.
find
(
"
"
),
reverse
=
True
)
for
line
in
lines
:
split
=
line
.
split
(
"
"
)
fw
(
"
\t
(
\"
"
+
split
[
0
]
+
"
*
\"
,
\"
"
+
split
[
3
]
+
"
\"
),
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment