Andrej730
|
ba6ba29da8
|
auto enable "Manage UI Translations" addon if it's not enabled
|
2024-01-16 17:34:24 +05:00 |
|
Andrej730
|
1112b102f7
|
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-01-16 17:06:43 +05:00 |
|
Andrej730
|
04b8172ea9
|
black format
|
2024-01-16 15:28:55 +05:00 |
|
Andrej730
|
f5f3edbc79
|
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-01-16 15:27:43 +05:00 |
|
Andrej730
|
30029e3dc7
|
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-01-16 15:24:03 +05:00 |
|
Andrej730
|
ed836f5b4a
|
Update bbim_setup_translations.py
|
2024-01-16 15:18:05 +05:00 |
|
Andrej730
|
a88b708442
|
fix issues with empty paths accepted as valid paths
|
2024-01-16 15:15:11 +05:00 |
|
Andrej730
|
764c3bbb85
|
separate developer/translator ui
|
2024-01-16 15:08:55 +05:00 |
|
Andrej730
|
382d3f1f9f
|
generate pot file too converting translations.py
|
2024-01-16 15:04:02 +05:00 |
|
Andrej730
|
3546f13593
|
change test addon name from localization_test
|
2024-01-16 11:42:34 +05:00 |
|
Andrej730
|
35223d968c
|
semi-automatic setup for necessary directories
|
2024-01-15 14:43:23 +05:00 |
|
Andrej730
|
e106dc4502
|
register translations dict only if addon is already loaded
|
2024-01-15 13:39:27 +05:00 |
|
Andrej730
|
2995b73c2d
|
open .po directory operator
|
2024-01-15 13:39:27 +05:00 |
|
Andrej730
|
770bc6ea61
|
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-01-15 13:38:34 +05:00 |
|
Andrej730
|
f5736a7144
|
convert setup_translations to blender addon for UI
|
2024-01-15 12:18:53 +05:00 |
|