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
2020-07-29Docs: add translation keyword argument default for msgctxtnutti
2020-03-26Cleanup: use doxy sections & add missing sectionsCampbell Barton
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-02-20Cleanup: use named unsigned types in the Python APICampbell Barton
2019-12-20Cleanup: remove redundant 'char *' castsCampbell Barton
2019-10-16Cleanup: warnings building with Python 3.8Campbell Barton
2019-08-16Cleanup: spellingCampbell Barton
2019-04-29Cleanup: comments (long lines) in pythonCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-29Cleanup: style, use braces for the Python APICampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-19Cleanup: add trailing commasCampbell Barton
Prevents clang-format merging into a single line.
2018-11-14Cleanup: python doc-stringsCampbell Barton
Indentation & trailing space.
2018-06-29Cleanup: trailing newlinesCampbell Barton
2016-07-31PyAPI: minor optimization for dictionary creationCampbell Barton
Pass size when its known.
2016-03-01Py (addons) i18n: fix memleak, enhance msgid lookup.Bastien Montagne
Probably did not happen yet (since nobody uses addons translations...), but there was an nice memleak during creation of translation ghash in case a same msgid/msgctx would be added more than once. Also, no need to allocate (and free) a temp key each time we lookup a msgid, we can use given const strings directly here!
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-04-07Cleanup: brace placement /w structsCampbell Barton
2015-04-01Real fix for T44127: Python does not guarantee to free all objects on exit...Bastien Montagne
All kudos to Campbell for the head-up and patch!
2015-03-02cleanup: whitespaceCampbell Barton
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-06PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RETCampbell Barton
Setting all values of a tuple is such a common operation that it deserves its own macro. Also added Py_INCREF_RET to avoid confusing use of comma operator.
2014-12-27Fix a very stupid memleak in own bpy_app_translations.c code...Bastien Montagne
Safe for 2.73.
2014-11-29Cleanup: unused headersCampbell Barton
2014-09-25Fix previous commit rB34abb614f1344a6, which broke addons translations.Bastien Montagne
Ghash comp callbacks must return false in case a & b are equal! Also slightly cleaned up gash code using those comp func, since those return booleans now, let's compare tham against booleans!
2014-09-25Fix ghash comparator used by translationSergey Sharybin
It now need to return bool whether element matched or not.
2014-06-16Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))Campbell Barton
2013-05-21code cleanup: remove callbacks only added to wrap MEM_freeNCampbell Barton
2013-05-14Moved main part of bpy.app.translations doc out of C code, as suggested by ↵Bastien Montagne
Campell, thx.
2013-05-14API doc for bpy.app.translations should look better now.Bastien Montagne
2013-03-22code cleanup: use NULL rather then 0 for pointers, and make vars static ↵Campbell Barton
where possible. also found unintentionally defined enum/struct variables that where only meant to be defining the type.
2013-03-20I18n users request: add the ability to use a translated name for newly ↵Bastien Montagne
added/created objects or other datablocks. This simply adds a third "translation type" (in addition to iface and tip), "new data", with relevant user settings flag and helper funcs/macros (and py api). Currently implemented name translation when adding new objects, as well as modifiers and constraints, will add the others (cd layers, scenes, perhaps nodes [though I think they do not need this], etc.) later.
2013-03-19Various cleanup around default i18n context.Bastien Montagne
Issue is that the real default context is NULL, however, in python and RNA, this value can't be used easily. So we use a specific string instead ("*"), defined as BLF_I18NCONTEXT_DEFAULT_BPYRNA. From now on, all bpy/rna code should only use the BLF_I18NCONTEXT_DEFAULT_BPYRNA value, while all "usual" C code should use the BLF_I18NCONTEXT_DEFAULT value (BLF_pgettext is still able to "understand" both, anyway). Also added BLF_is_default_context helper func, so that we can keep that check in a single place! Finally, we should no need anymore to understand the void string "" as default context too - two values for a same thing are more than enough!
2013-03-04patch [#34103] use boolean in path functions and add comments.Campbell Barton
path_util_1.patch from Lawrence D'Oliveiro (ldo)
2013-02-15style cleanupCampbell Barton
2013-02-13Fix physics' name not translated in main physics panel (reported on ↵Bastien Montagne
bf-translations ML). This also revealed another bug, as you could not explicitely set default context to text_ctxt UI func parameter (None is not accpeted by RNA string props), so I had to change default context from py POV to "*" instead of None. Anyway, that physics UI translation remains weak, as the trick used here (helper func) prevents message extractor script to directly find them. Currently it works because specified labels are also defined elsewhere, but it would be nice to have some kind of "translation markers" in py code too (similar to our N_/CTX_N_ C macros, unfortunately python does not have preprocessing ;) )...
2013-02-10Actually, UI scripts should not use directly pgettext, but rather the iface ↵Bastien Montagne
or tooltip variants. Added those to bpy.app.translations, and used pgettext_iface. (Did not add those when I created that module, because I did not thought we would actually need them in usual UI code, but turned out I was wrong). Also made some optimizations in those py gettext funcs, when i18n is disabled at build time, no need to do pyobject -> cstring -> pyobject conversions!.
2013-01-26Fix [#33997] Units Scale in Metric mode displays wrong face area.Bastien Montagne
Also now display nice "area" units (maybe using "length" units was a perf matter, but anyway, you can't have more than a few tens of values displayed at a time, after that they become unreadable). Easy to undo anyway if we really want to keep ugly "10m" as area display!
2013-01-24Fixed for strict compiler flagsSergey Sharybin
2013-01-24Final memory fix for bpy.app.translations (not really a leak, but unfreed ↵Bastien Montagne
memory at end of program - I thought addons were unregistered at quit time...).
2013-01-23Fix own stupid memory leak in new py i18n code (forgot to free temp keys ↵Bastien Montagne
when searching messages in GHash cache!). Thanks to PerfectionCat for finding this.
2013-01-22Fix for build with scons whithout i18n support.Bastien Montagne
This should not be needed, I really see no reason for this linking error, but I'd rather use this hack than wasting more time over this issue. When will we get rid of this "two build systems to maintain" time-wasting situation?
2013-01-22comments for RNA_def_property_ui_range() and clamp some out-of-range values.Campbell Barton
2013-01-21On second thought, exposes bpy.app.translations also when built without i18n ↵Bastien Montagne
support, this will avoid the need for py scripts to test for its presence everywhere!
2013-01-21Print warnings when invalid py dict/key/value is found in translations data ↵Bastien Montagne
(do not error here, this is not critical and can be ignored/skiped, and it would break translations for other addons as well).
2013-01-21Expose locale_explode in bpy.app.translations, will be handy in i18n ↵Bastien Montagne
manipulation scripts/addons.