[Bf-extensions-cvs] [7faf9ac0] master: Sun Position: add French translation
Damien Picard
noreply at git.blender.org
Sun Jul 10 14:29:20 CEST 2022
Commit: 7faf9ac035a7e0b0cc3f4b98e46bbd2daf3dfe7b
Author: Damien Picard
Date: Thu Jun 30 18:26:50 2022 +0200
Branches: master
https://developer.blender.org/rBA7faf9ac035a7e0b0cc3f4b98e46bbd2daf3dfe7b
Sun Position: add French translation
===================================================================
M sun_position/__init__.py
M sun_position/properties.py
A sun_position/translations.py
M sun_position/ui_sun.py
===================================================================
diff --git a/sun_position/__init__.py b/sun_position/__init__.py
index 01e22df0..9a3e5b72 100644
--- a/sun_position/__init__.py
+++ b/sun_position/__init__.py
@@ -29,39 +29,35 @@ if "bpy" in locals():
importlib.reload(properties)
importlib.reload(ui_sun)
importlib.reload(hdr)
+ importlib.reload(translations)
else:
- from . import properties, ui_sun, hdr
+ from . import properties, ui_sun, hdr, translations
import bpy
+register_classes, unregister_classes = bpy.utils.register_classes_factory(
+ (properties.SunPosProperties,
+ properties.SunPosAddonPreferences, ui_sun.SUNPOS_OT_AddPreset,
+ ui_sun.SUNPOS_MT_Presets, ui_sun.SUNPOS_PT_Panel,
+ ui_sun.SUNPOS_PT_Location, ui_sun.SUNPOS_PT_Time, hdr.SUNPOS_OT_ShowHdr))
+
+
def register():
- bpy.utils.register_class(properties.SunPosProperties)
+ register_classes()
bpy.types.Scene.sun_pos_properties = (
bpy.props.PointerProperty(type=properties.SunPosProperties,
name="Sun Position",
description="Sun Position Settings"))
- bpy.utils.register_class(properties.SunPosAddonPreferences)
- bpy.utils.register_class(ui_sun.SUNPOS_OT_AddPreset)
- bpy.utils.register_class(ui_sun.SUNPOS_MT_Presets)
- bpy.utils.register_class(ui_sun.SUNPOS_PT_Panel)
- bpy.utils.register_class(ui_sun.SUNPOS_PT_Location)
- bpy.utils.register_class(ui_sun.SUNPOS_PT_Time)
- bpy.utils.register_class(hdr.SUNPOS_OT_ShowHdr)
+ bpy.app.translations.register(__name__, translations.translations_dict)
bpy.app.handlers.frame_change_post.append(sun_calc.sun_handler)
def unregister():
- bpy.utils.unregister_class(hdr.SUNPOS_OT_ShowHdr)
- bpy.utils.unregister_class(ui_sun.SUNPOS_PT_Panel)
- bpy.utils.unregister_class(ui_sun.SUNPOS_PT_Location)
- bpy.utils.unregister_class(ui_sun.SUNPOS_PT_Time)
- bpy.utils.unregister_class(ui_sun.SUNPOS_MT_Presets)
- bpy.utils.unregister_class(ui_sun.SUNPOS_OT_AddPreset)
- bpy.utils.unregister_class(properties.SunPosAddonPreferences)
del bpy.types.Scene.sun_pos_properties
- bpy.utils.unregister_class(properties.SunPosProperties)
+ unregister_classes()
+ bpy.app.translations.unregister(__name__)
bpy.app.handlers.frame_change_post.remove(sun_calc.sun_handler)
diff --git a/sun_position/properties.py b/sun_position/properties.py
index ef3a21e3..ac791d43 100644
--- a/sun_position/properties.py
+++ b/sun_position/properties.py
@@ -136,7 +136,7 @@ class SunPosProperties(PropertyGroup):
object_collection_type: EnumProperty(
name="Display type",
- description="Show object group as sun motion",
+ description="Show object collection as sun motion",
items=(
('ANALEMMA', "Analemma", ""),
('DIURNAL', "Diurnal", ""),
diff --git a/sun_position/translations.py b/sun_position/translations.py
new file mode 100644
index 00000000..cd247ffd
--- /dev/null
+++ b/sun_position/translations.py
@@ -0,0 +1,467 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# Tuple of tuples:
+# ((msgctxt, msgid), (sources, gen_comments), (lang, translation, (is_fuzzy, comments)), ...)
+translations_tuple = (
+ (("*", ""),
+ ((), ()),
+ ("fr_FR", "Project-Id-Version: Sun Position 3.1.2 (0)\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2022-06-30 15:02:06.261278\nPO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\nLast-Translator: FULL NAME <EMAIL at ADDRESS>\nLanguage-Team: LANGUAGE <LL at li.org>\nLanguage: __POT__\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit",
+ (False,
+ ("Blender's translation file (po format).",
+ "Copyright (C) 2022 The Blender Foundation.",
+ "This file is distributed under the same license as the Blender package.",
+ "Damien Picard <dam.pic at free.fr>, 2022."))),
+ ),
+ (("*", "Azimuth and elevation info"),
+ (("bpy.types.SunPosAddonPreferences.show_az_el",),
+ ()),
+ ("fr_FR", "Infos d’azimut et de hauteur",
+ (False, ())),
+ ),
+ (("*", "Show azimuth and solar elevation info"),
+ (("bpy.types.SunPosAddonPreferences.show_az_el",),
+ ()),
+ ("fr_FR", "Afficher les infos d’azimut et de hauteur du soleil",
+ (False, ())),
+ ),
+ (("*", "Daylight savings"),
+ (("bpy.types.SunPosAddonPreferences.show_daylight_savings",
+ "bpy.types.SunPosProperties.use_daylight_savings"),
+ ()),
+ ("fr_FR", "Heure d’été",
+ (False, ())),
+ ),
+ (("*", "Show daylight savings time choice"),
+ (("bpy.types.SunPosAddonPreferences.show_daylight_savings",),
+ ()),
+ ("fr_FR", "Afficher l’option de changement d’heure",
+ (False, ())),
+ ),
+ (("*", "D° M' S\""),
+ (("bpy.types.SunPosAddonPreferences.show_dms",),
+ ()),
+ ("fr_FR", "",
+ (False, ())),
+ ),
+ (("*", "Show lat/long degrees, minutes, seconds labels"),
+ (("bpy.types.SunPosAddonPreferences.show_dms",),
+ ()),
+ ("fr_FR", "Afficher les étiquettes de latitude et longitude en degrés, minutes, secondes",
+ (False, ())),
+ ),
+ (("*", "Show North"),
+ (("bpy.types.SunPosAddonPreferences.show_north",
+ "bpy.types.SunPosProperties.show_north"),
+ ()),
+ ("fr_FR", "Afficher le nord",
+ (False, ())),
+ ),
+ (("*", "Show north offset choice and slider"),
+ (("bpy.types.SunPosAddonPreferences.show_north",),
+ ()),
+ ("fr_FR", "Afficher l’option et le curseur de décalage du nord",
+ (False, ())),
+ ),
+ (("*", "Refraction"),
+ (("bpy.types.SunPosAddonPreferences.show_refraction",),
+ ()),
+ ("fr_FR", "Réfraction",
+ (False, ())),
+ ),
+ (("*", "Show sun refraction choice"),
+ (("bpy.types.SunPosAddonPreferences.show_refraction",),
+ ()),
+ ("fr_FR", "Afficher l’option de réfraction du soleil",
+ (False, ())),
+ ),
+ (("*", "Sunrise and sunset info"),
+ (("bpy.types.SunPosAddonPreferences.show_rise_set",),
+ ()),
+ ("fr_FR", "Infos de lever et coucher",
+ (False, ())),
+ ),
+ (("*", "Show sunrise and sunset labels"),
+ (("bpy.types.SunPosAddonPreferences.show_rise_set",),
+ ()),
+ ("fr_FR", "Afficher les informations de lever et coucher du soleil",
+ (False, ())),
+ ),
+ (("*", "Time and place presets"),
+ (("bpy.types.SunPosAddonPreferences.show_time_place",),
+ ()),
+ ("fr_FR", "Préréglages d’heure et de lieu",
+ (False, ())),
+ ),
+ (("*", "Show time/place presets"),
+ (("bpy.types.SunPosAddonPreferences.show_time_place",),
+ ()),
+ ("fr_FR", "Afficher les préréglages d’heure et de lieu",
+ (False, ())),
+ ),
+ (("*", "Sun Position"),
+ (("bpy.types.Scene.sun_pos_properties",
+ "bpy.types.SUNPOS_PT_Panel"),
+ ()),
+ ("fr_FR", "Position du Soleil",
+ (False, ())),
+ ),
+ (("*", "Sun Position Settings"),
+ (("bpy.types.Scene.sun_pos_properties",),
+ ()),
+ ("fr_FR", "Options de Position du Soleil",
+ (False, ())),
+ ),
+ (("*", "Sun Position Presets"),
+ (("bpy.types.SUNPOS_MT_Presets",),
+ ()),
+ ("fr_FR", "Préréglages de position du Soleil",
+ (False, ())),
+ ),
+ (("Operator", "Synchroniser Soleil et texture"),
+ (("bpy.types.WORLD_OT_sunpos_show_hdr",),
+ ()),
+ ("fr_FR", "",
+ (False, ())),
+ ),
+ (("*", "UTC zone"),
+ (("bpy.types.SunPosProperties.UTC_zone",),
+ ()),
+ ("fr_FR", "Fuseau horaire",
+ (False, ())),
+ ),
+ (("*", "Time zone: Difference from Greenwich, England in hours"),
+ (("bpy.types.SunPosProperties.UTC_zone",),
+ ()),
+ ("fr_FR", "Fuseau horaire : différence avec Greenwich, Angleterre, en heures",
+ (False, ())),
+ ),
+ (("*", "If true, Environment texture moves with sun"),
+ (("bpy.types.SunPosProperties.bind_to_sun",),
+ ()),
+ ("fr_FR", "Si actif, la texture d’environnement tourne avec le Soleil",
+ (False, ())),
+ ),
+ (("*", "Enter coordinates"),
+ (("bpy.types.SunPosProperties.co_parser",),
+ ()),
+ ("fr_FR", "Saisir coordonnées",
+ (False, ())),
+ ),
+ (("*", "Enter coordinates from an online map"),
+ (("bpy.types.SunPosProperties.co_parser",),
+ ()),
+ ("fr_FR", "Saisir des coordonnées depuis une carte",
+ (False, ())),
+ ),
+ (("*", "Day"),
+ (("bpy.types.SunPosProperties.day",),
+ ()),
+ ("fr_FR", "Jour",
+ (False, ())),
+ ),
+ (("*", "Day of year"),
+ (("bpy.types.SunPosProperties.day_of_year",),
+ ()),
+ ("fr_FR", "Jour de l’année",
+ (False, ())),
+ ),
+ (("*", "Rotation angle of sun and environment texture"),
+ (("bpy.types.SunPosProperties.hdr_azimuth",),
+ ()),
+ ("fr_FR", "Angle de rotation du Soleil et de la texture d’environnement",
+ (False, ())),
+ ),
+ (("*", "Elevation"),
+ (("bpy.types.SunPosProperties.hdr_elevation",),
+ ()),
+ ("fr_FR", "Hauteur",
+ (False, ())),
+ ),
+ (("*", "Elevation angle of sun"),
+ (("bpy.types.SunPosProperties.hdr_elevation",),
+ ()),
+ ("fr_FR", "Angle de hauteur du Soleil",
+ (False, ())),
+ ),
+ (("*", "Name of texture to use. World nodes must be enabled and color set to Environment 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",
+ (False, ())),
+ ),
+ (("*", "Latitude"),
+ (("bpy.types.SunPosProperties.latitude",),
+ ()),
+ ("fr_FR", "Latitude",
+ (False, ())),
+ ),
+ (("*", "Latitude: (+) Northern (-) Southern"),
+ (("bpy.types.SunPosProper
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list