Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
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-addons
Commits
20652ce4
Commit
20652ce4
authored
2 years ago
by
Damien Picard
Browse files
Options
Downloads
Patches
Plain Diff
Sun Position: fix translations
parent
0b6aaad9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sun_position/properties.py
+1
-0
1 addition, 0 deletions
sun_position/properties.py
sun_position/translations.py
+34
-3
34 additions, 3 deletions
sun_position/translations.py
sun_position/ui_sun.py
+4
-4
4 additions, 4 deletions
sun_position/ui_sun.py
with
39 additions
and
7 deletions
sun_position/properties.py
+
1
−
0
View file @
20652ce4
...
@@ -174,6 +174,7 @@ class SunPosProperties(PropertyGroup):
...
@@ -174,6 +174,7 @@ class SunPosProperties(PropertyGroup):
update
=
sun_update
)
update
=
sun_update
)
bind_to_sun
:
BoolProperty
(
bind_to_sun
:
BoolProperty
(
name
=
"
Bind Texture to Sun
"
,
description
=
"
If true, Environment texture moves with sun
"
,
description
=
"
If true, Environment texture moves with sun
"
,
default
=
False
,
default
=
False
,
update
=
sun_update
)
update
=
sun_update
)
...
...
This diff is collapsed.
Click to expand it.
sun_position/translations.py
+
34
−
3
View file @
20652ce4
...
@@ -105,7 +105,8 @@ translations_tuple = (
...
@@ -105,7 +105,8 @@ translations_tuple = (
),
),
((
"
*
"
,
"
Sun Position
"
),
((
"
*
"
,
"
Sun Position
"
),
((
"
bpy.types.Scene.sun_pos_properties
"
,
((
"
bpy.types.Scene.sun_pos_properties
"
,
"
bpy.types.SUNPOS_PT_Panel
"
),
"
bpy.types.SUNPOS_PT_Panel
"
,
"
Add-on Sun Position info: name
"
),
()),
()),
(
"
fr_FR
"
,
"
Position du Soleil
"
,
(
"
fr_FR
"
,
"
Position du Soleil
"
,
(
False
,
())),
(
False
,
())),
...
@@ -122,6 +123,12 @@ translations_tuple = (
...
@@ -122,6 +123,12 @@ translations_tuple = (
(
"
fr_FR
"
,
"
Préréglages de position du Soleil
"
,
(
"
fr_FR
"
,
"
Préréglages de position du Soleil
"
,
(
False
,
())),
(
False
,
())),
),
),
((
"
Operator
"
,
"
Sync Sun to Texture
"
),
((
"
bpy.types.WORLD_OT_sunpos_show_hdr
"
,),
()),
(
"
fr_FR
"
,
"
Synchroniser Soleil et texture
"
,
(
False
,
())),
),
((
"
*
"
,
"
UTC zone
"
),
((
"
*
"
,
"
UTC zone
"
),
((
"
bpy.types.SunPosProperties.UTC_zone
"
,),
((
"
bpy.types.SunPosProperties.UTC_zone
"
,),
()),
()),
...
@@ -134,6 +141,13 @@ translations_tuple = (
...
@@ -134,6 +141,13 @@ translations_tuple = (
(
"
fr_FR
"
,
"
Fuseau horaire : différence avec Greenwich, Angleterre, en heures
"
,
(
"
fr_FR
"
,
"
Fuseau horaire : différence avec Greenwich, Angleterre, en heures
"
,
(
False
,
())),
(
False
,
())),
),
),
((
"
*
"
,
"
Bind Texture to Sun
"
),
((
"
bpy.types.SunPosProperties.bind_to_sun
"
,
"
scripts/addons/sun_position/ui_sun.py:119
"
),
()),
(
"
fr_FR
"
,
"
Lier la texture au Soleil
"
,
(
False
,
())),
),
((
"
*
"
,
"
If true, Environment texture moves with sun
"
),
((
"
*
"
,
"
If true, Environment texture moves with sun
"
),
((
"
bpy.types.SunPosProperties.bind_to_sun
"
,),
((
"
bpy.types.SunPosProperties.bind_to_sun
"
,),
()),
()),
...
@@ -185,7 +199,6 @@ translations_tuple = (
...
@@ -185,7 +199,6 @@ translations_tuple = (
((
"
*
"
,
"
Name of texture to use. World nodes must be enabled and color set to Environment Texture
"
),
((
"
*
"
,
"
Name of texture to use. World nodes must be enabled and color set to Environment Texture
"
),
((
"
bpy.types.SunPosProperties.hdr_texture
"
,),
((
"
bpy.types.SunPosProperties.hdr_texture
"
,),
()),
()),
# TODO
(
"
fr_FR
"
,
"
Nom de la texture à utiliser. Les nœuds de shader du monde doivent être activés, et la couleur utiliser une texture d’environnement
"
,
(
"
fr_FR
"
,
"
Nom de la texture à utiliser. Les nœuds de shader du monde doivent être activés, et la couleur utiliser une texture d’environnement
"
,
(
False
,
())),
(
False
,
())),
),
),
...
@@ -377,7 +390,7 @@ translations_tuple = (
...
@@ -377,7 +390,7 @@ translations_tuple = (
(
False
,
())),
(
False
,
())),
),
),
((
"
*
"
,
"
Show options or labels:
"
),
((
"
*
"
,
"
Show options or labels:
"
),
((
"
scripts/addons/sun_position/properties.py:24
1
"
,),
((
"
scripts/addons/sun_position/properties.py:24
2
"
,),
()),
()),
(
"
fr_FR
"
,
"
Afficher les options et étiquettes :
"
,
(
"
fr_FR
"
,
"
Afficher les options et étiquettes :
"
,
(
False
,
())),
(
False
,
())),
...
@@ -419,6 +432,12 @@ translations_tuple = (
...
@@ -419,6 +432,12 @@ translations_tuple = (
(
"
fr_FR
"
,
"
Veuillez sélectionner le monde dans le panneau Monde
"
,
(
"
fr_FR
"
,
"
Veuillez sélectionner le monde dans le panneau Monde
"
,
(
False
,
())),
(
False
,
())),
),
),
((
"
*
"
,
"
Release binding
"
),
((
"
scripts/addons/sun_position/ui_sun.py:116
"
,),
()),
(
"
fr_FR
"
,
"
Annuler le lien
"
,
(
False
,
())),
),
((
"
*
"
,
"
Azimuth:
"
),
((
"
*
"
,
"
Azimuth:
"
),
((
"
scripts/addons/sun_position/ui_sun.py:205
"
,),
((
"
scripts/addons/sun_position/ui_sun.py:205
"
,),
()),
()),
...
@@ -450,6 +469,18 @@ translations_tuple = (
...
@@ -450,6 +469,18 @@ translations_tuple = (
(
"
fr_FR
"
,
"
Veuillez activer Utiliser nœuds dans le panneau Monde
"
,
(
"
fr_FR
"
,
"
Veuillez activer Utiliser nœuds dans le panneau Monde
"
,
(
False
,
())),
(
False
,
())),
),
),
((
"
*
"
,
"
World > Sun Position
"
),
((
"
Add-on Sun Position info: location
"
,),
()),
(
"
fr_FR
"
,
"
Monde > Position du Soleil
"
,
(
False
,
())),
),
((
"
*
"
,
"
Show sun position with objects and/or sky texture
"
),
((
"
Add-on Sun Position info: description
"
,),
()),
(
"
fr_FR
"
,
"
Afficher la position du Soleil avec des objets ou une texture de ciel
"
,
(
False
,
())),
),
)
)
translations_dict
=
{}
translations_dict
=
{}
...
...
This diff is collapsed.
Click to expand it.
sun_position/ui_sun.py
+
4
−
4
View file @
20652ce4
...
@@ -112,11 +112,11 @@ class SUNPOS_PT_Panel(bpy.types.Panel):
...
@@ -112,11 +112,11 @@ class SUNPOS_PT_Panel(bpy.types.Panel):
col
=
flow
.
column
(
align
=
True
)
col
=
flow
.
column
(
align
=
True
)
if
sp
.
bind_to_sun
:
if
sp
.
bind_to_sun
:
prop_text
=
"
Release binding
"
col
.
prop
(
sp
,
"
bind_to_sun
"
,
toggle
=
True
,
icon
=
"
CONSTRAINT
"
,
text
=
"
Release binding
"
)
else
:
else
:
prop_text
=
"
Bind Texture to Sun
"
col
.
prop
(
sp
,
"
bind_to_sun
"
,
toggle
=
True
,
icon
=
"
CONSTRAINT
"
,
col
.
prop
(
sp
,
"
bind_to_sun
"
,
toggle
=
True
,
icon
=
"
CONSTRAINT
"
,
text
=
"
Bind Texture to Sun
"
)
text
=
prop_text
)
row
=
col
.
row
(
align
=
True
)
row
=
col
.
row
(
align
=
True
)
row
.
enabled
=
not
sp
.
bind_to_sun
row
.
enabled
=
not
sp
.
bind_to_sun
...
...
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