Commit Graph

32172 Commits

Author SHA1 Message Date
Campbell Barton
280684c35d remove blf.gettext, add blf.unload(font) 2011-09-21 16:06:47 +00:00
Campbell Barton
f4c56a879d remove use of gettext: _("...") style translation now its handled by rna. 2011-09-21 15:18:38 +00:00
Brecht Van Lommel
ae0124157f Translation: reload font on enabling/disabling use international fonts. 2011-09-21 15:15:30 +00:00
Brecht Van Lommel
a12e06dc35 Blenfont: add BLF_unload function to unload/reload fonts. 2011-09-21 15:14:47 +00:00
Sergey Sharybin
2dbfa5a3e4 Attempt to fix #28709: change language to simplified Chinese: sequencer -> add image strip crashes Blender
Crash was caused by sprintf which tried to parse bytes sequence belongs to chinese letter.
Using codepage 1252 for LC_ALL seems to fix this issue, but needs further testing.
2011-09-21 15:07:19 +00:00
Campbell Barton
c589dec2ea add missing define for last commit and tag bl_label & bl_descriptions for translating too 2011-09-21 14:10:26 +00:00
Campbell Barton
943a026c60 py/rna string subtypes for strings which should be automatically translated:
layout.prop("blah", text="Translate Me!")
2011-09-21 13:53:35 +00:00
Antony Riakiotakis
f56759bb20 Fix compilation for MinGW. 2011-09-21 13:30:52 +00:00
Campbell Barton
9d68dc0668 update_msg.py now extracts strings from UI files, eg:
layout.prop("some_prop", text="Some Other Name")

So the text argument can be listed for translation.
2011-09-21 13:16:42 +00:00
Sergey Sharybin
b3c6a2383a Tweak for unifont: use droid with glyphs from default bfont.
Would make interface look like it used to be before garlic merge until
we're working on making font configurable.
2011-09-21 13:04:58 +00:00
Campbell Barton
39e0cbe883 updates to rna message extractor, write utf8 files and use a set rather than a dict 2011-09-21 12:23:23 +00:00
Bastien Montagne
b88fe134f6 Revreting 39792 making paste pose only on selected bones by default.
Will contact aligorith anyway for confirmation.
2011-09-21 10:24:53 +00:00
Campbell Barton
4b449aefea remove support for irix 2011-09-21 08:40:30 +00:00
Campbell Barton
b4907ced60 fix breakage in 40417 - test compile please even for doc changes. 2011-09-21 08:35:07 +00:00
Bastien Montagne
c5d286f1cb Minor: Other UI strings typos and tweaks. 2011-09-21 08:02:26 +00:00
Guillermo S. Romero
68367e8c01 SVN maintenance. 2011-09-20 21:22:19 +00:00
Campbell Barton
8f5112f191 pep8 update & some minor cmake edits. 2011-09-20 18:29:19 +00:00
Campbell Barton
0af633a36c move message.txt generator out of wm.py (which was loaded with blender always), into it own py script which runs on its own, also added this to 'make translations' target. 2011-09-20 17:44:45 +00:00
Miika Hamalainen
bc788a3607 Reserved modifier enum for Dynamic Paint to not break save files again. 2011-09-20 17:30:54 +00:00
Sergey Sharybin
3449c0270a Another set of fixes for MSVC 2011-09-20 17:23:52 +00:00
Campbell Barton
8cf8fd7326 - translation scripts now run with py3.x
- added convenience make target 'make translations'
- some MEM_malloc strings were not unique enough, expanded them.
2011-09-20 17:07:33 +00:00
Sergey Sharybin
9d1b4b63b3 Fix for recent commit:
- Some declarations after statement left.
- Do not use static inline functions in MOD_navmesh. It produces errors
  with msvc and not sure it's actually helps -- optimizer should
  make it inlined itself.
2011-09-20 17:06:17 +00:00
Sergey Sharybin
0169079bd1 Get rid of c++ in blenkernel and modifiers
Also use guarded allocations for navmesh stuff.
2011-09-20 16:24:50 +00:00
Brecht Van Lommel
219eeb3e54 Internationalization: fix OS X scons install to copy font and language files
correctly.
2011-09-20 15:55:28 +00:00
Guillermo S. Romero
73bb1be1b7 SVN maintenance. 2011-09-20 15:30:18 +00:00
Campbell Barton
da88486c0b 2011-09-20 15:17:24 +00:00
Campbell Barton
f5bb22d088 have blf.gettext even when internationalization is disabled (just passes through). 2011-09-20 15:11:17 +00:00
Sergey Sharybin
2af7bb8aaf Fix for BLI_ungzip_to_mem: it'll return NULL now if file is not found.
It makes default bfont used if unifont isn't found. Useful for install-less
launch when debugging.
2011-09-20 14:49:12 +00:00
Sergey Sharybin
f198961ebc Ignore .Blanguages and .bfont.ttf when installing.
This files aren't used by blender anymore but they leads to
portable install when using scons.
2011-09-20 14:41:01 +00:00
Thomas Dinges
a130d29817 We are now in Bcon 3 - Beta. 2011-09-20 14:28:54 +00:00
Sergey Sharybin
07ed73caee - Fix for compiling without international support
- Enable international support for win64 msvc by default
2011-09-20 14:07:40 +00:00
Sergey Sharybin
f0aac81466 Improved Internationalization and Localization
==============================================

Commiting GSoC project by Xiangquan Xiao trunk.

Applied as separated patch, because svn merge produces to much false
conflicts and worked really slow.

Details for usage would be published on code.blender.org soon.

Thanks to Xiao for implementation of project, Campbell to code review,
Dalai and Gez for pointing to nice font and everybody else who took
part in improving i18n support.
2011-09-20 13:41:43 +00:00
Campbell Barton
1657cbe61a fix [#28672] Blender segfault after exiting a game that was opened with
autoplay on (Blender, not blenderplayer)

blender now stops the sound system and free's its self on Pythons
sys.exit().
2011-09-20 12:22:19 +00:00
Sergey Sharybin
7172316b94 Merging r40366 through r40392 from trunk into soc-2011-garlic 2011-09-20 12:01:16 +00:00
Campbell Barton
78d4260144 committed change to transforms THRESHOLD by accident, also update convenience makefile to regenerate real makefiles before static checking. 2011-09-20 10:15:57 +00:00
Sergey Sharybin
2015eefef7 i18n: some fixes for windows, scons and game engine 2011-09-20 09:32:14 +00:00
Campbell Barton
84d06f252e tag & comment unused vars with /* UNUSED */ 2011-09-20 08:48:48 +00:00
Sergey Sharybin
bba54a051a i18n: fake_gettext is no longer needed for python 2011-09-20 08:38:16 +00:00
Sergey Sharybin
16e21f49f7 i18n: forgot this files in recent commit 2011-09-20 08:17:26 +00:00
Bastien Montagne
e1de1214a4 Minor: Other UI strings typos and tweaks. 2011-09-20 07:56:58 +00:00
Nathan Letwory
a199c9a4bb Don't set BF_NUMJOBS in default config, but instead let users do that in user-config.py. 2011-09-20 07:53:20 +00:00
Sergey Sharybin
e49e403953 i18n: replace some bit checks from U.transopts with utility functions UI_translate* 2011-09-20 07:47:27 +00:00
Sergey Sharybin
6d125e159d i18n: code clean-up
- Move all translation-related declarations to BLF_translation.h
- Reverted some changes to match trunk svn rev40365
2011-09-20 07:39:25 +00:00
Campbell Barton
d321397930 fix from Juha Mäki-Kanto (kanttori), was calculating connectivity data when proportional editmode was enabled, even if connectivity setting was off. 2011-09-20 06:47:43 +00:00
Campbell Barton
13dfd82997 changes for materials to treat them as shorts not int/chars (since they are stored as shorts intermally)
- converting nurbs to mesh was casting the material to unsigned char.
- subsurf was casting to char, then int -> short in a loop.
- have material functions take & return shorts.
2011-09-20 06:25:15 +00:00
Dalai Felinto
2b1513dbda texface - quick speedup
I doubt this makes any difference but still, good practises are always good.
2011-09-20 05:45:54 +00:00
Campbell Barton
79c19590e9 fix for bug in do_version_tface(), was assigning 'tf->mode' before tf was defined, also comment unused var. 2011-09-20 04:54:13 +00:00
Campbell Barton
c61ab5f5d1 fix possible crasg in recent texface commit - material pointer could be used un-inirialized. 2011-09-20 04:45:01 +00:00
Campbell Barton
6791052832 tidy up
- quiet some warnings
- set some functions static
- replace materialbyname with generic BLI_findstring call
2011-09-20 04:38:59 +00:00
Campbell Barton
0e421f429a modify the python gettext function to pass through the original string when no translation is done, this means the cached info such as byte representation and hash will be kept. 2011-09-20 02:25:57 +00:00