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-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-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-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.
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-10-03Cleanup: spelling in stringsCampbell Barton
2021-08-09Cleanup: use 'cls' for class methods first argumentCampbell Barton
2021-07-06Cleanup: pep8Campbell Barton
2021-06-15Cleanup: unused argument & variable warningsCampbell Barton
2021-03-06Cleanup: unused importsCampbell Barton
2020-12-11Cleanup: trailing spaceCampbell Barton
2020-12-04i18n utils: Add a helper to list and match po files with languages codes.Bastien Montagne
This code was previously done in the add-on, but we'll need it for the CLI tool as well, so now it is a utils generator instead.
2020-12-04i18n utils : Reduce dependency to Blender bpy API, step 2.Bastien Montagne
Remove some top imports of bpy, only import it in a few specific functions that only make sense when used whithin Blender anyway.
2020-12-04i18n utils: reduce dependency to Blender bpy API, step 1.Bastien Montagne
This involves re-implementing some of Blender-defined helpers in utils, we keep debug code to ensure those are still matching on behavior/results sides. This will allow to get more i18n tools independent from blender executable.
2020-10-02Cleanup: pep8 (indentation, spacing, long lines)Campbell Barton
2020-05-05Various fixes, cleanup and improvements to i18n module.Bastien Montagne
* Remove multi-processing in messages class update, was no giving much speedup if any at all. * Remove some debug prints. * Make messages class pickleable. * Filter better actual setting values from Settings class. * Make settings pickleable. All this will allow to use multi-processing in the i18n addon itself.
2020-03-20Fix T74959: Need to be explicit about UTF8 encoding in py.Bastien Montagne
Because some OSs are still using old 8bits specific encodings... Angry eye @windows...
2020-01-30Cleanup: resolve static analyzer warnings in bl_i18n_utilsCampbell Barton
Reported in T73504
2019-08-16Cleanup: spellingCampbell Barton
2019-08-01Cleanup a bit i18n message extraction code.Bastien Montagne
2019-07-31Spelling fixes in comments and descriptions, patch by luzpazBrecht Van Lommel
Differential Revision: https://developer.blender.org/D3744
2019-03-01Cleanup: use preferences prefix for Python operatorsCampbell Barton
2018-12-24Fix and workaround for i18n messages extraction code.Bastien Montagne
2018-12-21RNA: naming, user-preferences -> preferencesCampbell Barton
2018-09-13PyAPI: remove operator methods that leak memoryCampbell Barton
2018-09-03Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3668
2018-07-07Cleanup: pep8Campbell Barton
2015-06-13Translations utils: add needed bits to update git repo together with svn trunk.Bastien Montagne
2015-05-31Python: avoid mutable default param valuesCampbell Barton
D1328 by @yedpodtrzitko
2015-01-28cleanup: py importsCampbell Barton
2014-09-17Cleanup: pep8Campbell Barton
2014-02-13Code cleanup: styleCampbell Barton
2013-11-04Update i18n tools for new build_hash...Bastien Montagne
2013-10-19More complete handling of printf formatting in msgid/msgstr checks.Bastien Montagne
(That commit, r60813, should never have been done to 2.69 branch, will revert it there, sorry :/ ).
2013-10-17i18n utils: check not only that the number of printf markers are the same in ↵Bastien Montagne
msgid and msgstr, but also that they are of the same type and order. Sorry, should have done that from the beginning... :/ This should prevent any bug like [#37095] Timeline crash when chose any keying set then press keyframe-insert, to appear again.
2013-08-28Fix for #36387, User Preferences "Addons" panel bogs down the whole interface.Lukas Toenne
The addons panel draw function calls addon_utils.modules() which in turn retrieves a list of fake modules from the script paths every time. This can become costly when network paths are included for addons. Solution is to put the scanning process into a dedicated "refresh" function and disable it in frequently called draw and filter functions, i.e. in these cases the cached addons_fake_modules list will be used instead. Note that this may lead to invalid addon lists if script paths are changed (which is not working 100% without restart anyway according to Campbell). For this there is now a "Refresh" operator button in the addons preferences. If necessary and feasible such forced refreshes can be added later too.
2013-04-29Do not report formatting mismatch between org and translation when message ↵Bastien Montagne
is fuzzy (but "fix" it anyway if asked so).
2013-04-19Restore usage of difflib's quick_ratio()... Don't actually know what happens ↵Bastien Montagne
here, my tests with timeit showed it much slower than ratio(), but real-life says the contrary...
2013-04-18Some i18n tools fixes (I'm ashamed...), and merge func for I18nMessages objects.Bastien Montagne
2013-04-18More i18n tools tweaks:Bastien Montagne
* Remove difflib's quick_ratio() call, from quick tests looks it is four times slower than ratio(), and yet it gives the same results... * Moved code to find all po's in a dir into its own func (will be used by i18n addon tools too).
2013-04-12More fixes for addon i18n messages management.Bastien Montagne
2013-04-09Various edits preparing addons' translations tools (not everything yet ↵Bastien Montagne
functionnal/tested, though). Also workaround a nasty bug, where unregistered py classes remain listed in relevant __subclasses__() calls, which would lead to crash with python addons i18n tools (main translation was not affected, as messages extracting tools are executed in a brand new "factory startup" Blender ;) ).
2013-03-28code cleanup: python/pep8 and double-promotion warnings.Campbell Barton
2013-03-19Small changes/additions to i18n tools.Bastien Montagne
2013-03-19Some renaming/cleanup in i18n tools.Bastien Montagne
2013-03-01More tweaks (gaining about ten seconds for each po in update branches process!).Bastien Montagne
2013-02-25Tame that stupid py code not to eat existing fuzzies in po’s when updating ↵Bastien Montagne
from POT file!
2013-02-24Big i18n tools update, I/II.Bastien Montagne
Notes: * Everything is still a bit raw and sometimes hackish. * Not every feature implemented yet. * A bunch of cleanup is still needed. * Doc needs to be updated too!
2013-02-14Gah, forgot some ugly print...Bastien Montagne
2013-02-12Update to how similar messages matching is handled when updating po files ↵Bastien Montagne
from pot one (gain something like 20% in heavy update situations, and save a nice bunch of memory!).
2013-01-29Some optimization (their is much more possible here, but it will have to ↵Bastien Montagne
wait for complete refactor I’m working on currently).