Andrej730
|
1b69de2fd4
|
auto enable "Manage UI Translations" addon if it's not enabled
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
a3d029f9d9
|
add without-blender-way to generate translations module from po files
though it does require `bpy` module which is available only for python 3.10.
Actually, `bpy` module by itself is not necessary - we just need `bl_i18n_utils` that becomes available after `import `bpy`. So alternatively we can just download that module from Blender https://projects.blender.org/blender/blender/src/branch/main/scripts/modules/bl_i18n_utils
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
e1147c1cb8
|
black format
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
364c6efc68
|
check if translation ui is loaded by current Blender session instead of current Blender file
as it's more reliable and thing could change after Blender restart
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
793eebbdbb
|
expose i18n path in translator UI
removed bim.open_po_directory operator as it's now available just from alt-clicking on the path browsing button
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
37d6b24e84
|
Update bbim_setup_translations.py
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
e76ef4bb73
|
fix issues with empty paths accepted as valid paths
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
1435207ab6
|
separate developer/translator ui
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
41b9000401
|
generate pot file too converting translations.py
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
94b1a1ba4e
|
change test addon name from localization_test
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
b34882e6d1
|
semi-automatic setup for necessary directories
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
4a0625e730
|
register translations dict only if addon is already loaded
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
3973a6ab4d
|
open .po directory operator
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
b9ecc394cf
|
Operator to disable BBIM and restart Blender
as it's needed to reload the translations
Update bbim_setup_translations.py
Update bbim_setup_translations.py
|
2024-04-16 11:26:46 +02:00 |
|
Andrej730
|
b3990e7267
|
convert setup_translations to blender addon for UI
|
2024-04-16 11:26:46 +02:00 |
|