Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-14Fix T100977: Wrong native Ukrainian language name in UI.Bastien Montagne
2022-09-14Cleanup: remove redundant braces from assert & raiseCampbell Barton
autopep8 v1.7 added a space after assert & raise, remove the braces as they aren't needed.
2022-09-12UI: Cleanup/Fixes of some UI messages.Bastien Montagne
2022-09-05I18n: extract keymap preferencesDamien Picard
The per-keymap user preferences messages were not extracted. This goes through the keymap preferences RNA, as well as Python files for UI. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15871
2022-08-30Cleanup: formatCampbell Barton
2022-08-29I18n: make add-ons' info translatableDamien Picard
The info provided by add-ons is very valuable to users, yet it wasn’t translatable yet. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15747
2022-08-29Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-29I18n: Better wording for the skipped languages in language menu file.Bastien Montagne
2022-08-24Cleanup: formatCampbell Barton
2022-08-23I18n: make workspaces translatableDamien Picard
This makes workspaces more translatable: - New Workspace menu - header - preset menus - preset entries - workspace names upon factory file template load - new workspace name upon workspace addition To properly translate those names, an extraction function for workspace names from app templates was added as well. (Do not do anything when loading a user-saved file!) Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15727
2022-08-09I18n: make more parts of the UI translatableDamien Picard
- "Name collisions" label in mesh properties - "Threshold" labels in Vertex Weight Edit modifier - "Particle System" label in Particle Instance modifier - Slot number in the Shader Editor - Status bar keymap items during modal operations: add TIP_() macro to status bar interface template - On dumping messages, sort preset files so their messages are stable between runs Ref. T43295 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15607
2022-08-09I18n: add extraction of modal event names.Bastien Montagne
Alternative fix to the one proposed in D15607. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D15643
2022-08-09I18n: remove Window class from message extraction blacklistDamien Picard
Messages from the bpy.types.Window class were blacklisted in the message extraction script. This change allows a few new messages to be translated, including at least two which show up in the UI. There are only 12 new messages in the .po files, so even if some never need to be translated, that's not too many. Ref. T43295 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15628
2022-08-09I18n: make more parts of the UI translatableDamien Picard
- "Name collisions" label in mesh properties - "Threshold" labels in Vertex Weight Edit modifier - "Particle System" label in Particle Instance modifier - Slot number in the Shader Editor - Status bar keymap items during modal operations: add TIP_() macro to status bar interface template - On dumping messages, sort preset files so their messages are stable between runs Ref. T43295 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15607
2022-08-09I18n: add extraction of modal event names.Bastien Montagne
Alternative fix to the one proposed in D15607. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D15643
2022-08-09I18n: remove Window class from message extraction blacklistDamien Picard
Messages from the bpy.types.Window class were blacklisted in the message extraction script. This change allows a few new messages to be translated, including at least two which show up in the UI. There are only 12 new messages in the .po files, so even if some never need to be translated, that's not too many. Ref. T43295 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15628
2022-08-01tweaks & fixes to UI messages.Bastien Montagne
2022-08-01I18n: make presets translatableDamien Picard
Presets are used all over the Blender UI, but were so far untranslatable. This adds the translation code as well as a new `dump_preset_messages()` function in the message extraction. This goes over all bundled preset file names and extracts them. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15570
2022-07-20I18n: fixes to add-on message extractionDamien Picard
This commit fixes several issues in add-ons UI messages extraction code: - In multi-file modules, the script would crash because it tried to write to the dir instead of a `translations.py` file; - The add-on message extraction works by enabling the add-on, getting all messages; disabling the add-on, getting all messages; then comparing the two message sets. But often a bug happens where a class gets a description from somewhere else in memory. I couldn’t debug that, so a workaround is to check that the message isn’t a corrupted one before removing it; - `printf()` doesn't exist in Python and would crash the script; - `self.src[self.settings.PARSER_PY_ID]` can be replaced by `self.py_file` in class `I18n`, since a property exists to do that; - At one point a generator was printed instead of its values, so let's unpack the generator to get the values. Maybe the print could be deleted entirely; - Use SPDX license identifier instead of GPL license block, to be more in line with other scripts from the codebase. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15474
2022-07-15I18n: Add suport for labels from modifiers' subpanels.Bastien Montagne
Was a bit oif a struggle since those functions take a first string which is not our label, but should work fine now. Reported/detected as part of D15418.
2022-07-14I18n: Fix regex for messages from `BKE_modifier_set_error`.Bastien Montagne
Signature of this function changed at some point, regex to extract messages from it was no longer working. Reported/detected as part of D15418.
2022-07-11Fix/Cleanup UI messages.Bastien Montagne
2022-06-07Fix T98527 : corrected label for Korean language in Blender preferencesJoseph Faulkner
Patch changes label from '한국 언어' to '한국어' Reviewed By: persun, PratikPB2123, mont29 Maniphest Tasks: T98527 Differential Revision: https://developer.blender.org/D15120
2022-06-02Cleanup: remove "<pep8 compliant>" from headersCampbell Barton
It can be assumed that all scripts comply with basic pep8 formatting regarding white-space, indentation etc. Also remove note in best practices page & update `tests/python/pep8.py`. If we want to exclude some scripts from make format, this can be done by adding them to `ignore_files` in: source/tools/utils_maintenance/autopep8_format_paths.py Or using `# nopep8` for to ignore for individual lines. Ref T98554
2022-05-19Cleanup: format, reduce line length & strip trailing spaceCampbell Barton
2022-05-09Tweak i18n messages extraction script to avoid unwanted messages.Bastien Montagne
Code would add a bit too often the identifier of an RNA class to translated messages, this is only needed if there is no valid label available for it.
2022-04-26Cleanup: line length for Python scriptsCampbell Barton
2022-04-26Cleanup: autopep8Campbell Barton
2022-04-22Fix various typos and other UI messages issues.Bastien Montagne
2022-04-22Fix T97429: Translateable Unit Names Missing in the File.Bastien Montagne
Added some regex magic in i18n py module to also extract UI names from all of our units definitions. Those enum values are fully dynamically generated, so they cannot be extracted from RNA introspection.
2022-04-20Cleanup: run autopep8 with max-line-length=120 (missed a file)Campbell Barton
2022-04-20Cleanup: use autopep8 for bl_i18n_utils.settingsCampbell Barton
Disable autopep8 for some regex blocks that use indentation to signify regex grouping.
2022-04-20Cleanup: run autopep8 on release/scripts/modules/Campbell Barton
2022-04-11Fix/workaround i18n script not finding some messages anymore.Bastien Montagne
For some reasons(c) some base classes (like `bpy.types.Modifier`) are not listed anymore by a call to `bpy.types.ID.__base__.__subclasses__()`, unless they are first accessed explicitely (e.g. by executing `bpy.types.Modifier` etc.).
2022-03-28Fix various UI messages issues.Bastien Montagne
2022-02-11Cleanup: remove white-space before headersCampbell Barton
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2022-02-07Fix UI messages (typos etc.).Bastien Montagne
2022-01-03Fix (unreported) i18n utils failing to create MO files in trunk.Bastien Montagne
Not really important anymore, since those are not used by Blender, but better be consistent.
2022-01-03Add Georgian to our list of languages.Bastien Montagne
CC @Tamuna who started the translation for this language.
2021-11-17cleanup: fix typos in comments and docsluzpaz
Followup to https://developer.blender.org/D10288 Reviewed By: Blendify Differential Revision: https://developer.blender.org/D10346
2021-11-10Fix: Incorrect translation search for modifier error messagesHans Goudey
This function was renamed in rB2bb9a465e6c0e1ca765, but it looks like that commit missed changing the corresponding translation regular expression. Differential Revision: https://developer.blender.org/D13171
2021-11-03I18n: Add some more acronyms to the spellchecker.Bastien Montagne
2021-11-03I18n: Fix several issues with UI messages extraction script.Bastien Montagne
* Fix systematic skipping of labels when they are the same as the identifier (Some cases are valid, like `RGB` or `HSV` e.g.). * Add instead heuristics checks to skip non-UI properties (non-capitalized, or same name as identifier and Operator properties, mainly). * Skip `bl_icon` and `icon` properties. * Properly search for properties in all parent classes (some cases with e.g. `Panel` would break due to intermediary utils classes, leading to those internal UI properties not being skipped as expected). Related to T43295.
2021-11-02I18n: Fix all new cpp files not being parsed by UI message extractor.Bastien Montagne
The 'new' `.cc`/`.hh` extensions were never added to UI message extractor. Related to T43295.
2021-11-01Fix UI messages, typos, etc.Bastien Montagne
2021-10-24Cleanup: line length in Python scriptsCampbell Barton
2021-10-04I18n tools: Fix issue when extracting messages on release builds.Bastien Montagne
This was also affecting prototype of buildbot-driven UI messages extraction...
2021-10-04Cleanup: `Neighbour` -> `Neighbor`. and other minor UI messages fixes.Bastien Montagne
Blender English should use 'American' variants, not 'British' variants.
2021-10-03Cleanup: spelling in stringsCampbell Barton