Commit Graph

62 Commits

Author SHA1 Message Date
Campbell Barton
5da894b1fe misc edits
- cmake/windows was installing locale & font when internationalization was disabled, twice when enabled.
- file selector was using the string size-1, where this isn't needed since string buttons expected this value to be the sizeof(), accounting for '\0'.
- use const char for extension checking funcs.
- minor pep8 edits
2011-10-15 05:01:47 +00:00
Xiao Xiangquan
f7b922fe93 rna source files are not needed in POTFILE.in, and small fix on readme 2011-10-11 06:24:11 +00:00
Bastien Montagne
9d70e050a2 Fix for update_msg.py, wasn’t filtering out prop names identical to prop identifiers (e.g. "float_array"...). Also updated french po & mo. 2011-10-09 12:41:42 +00:00
Bastien Montagne
cc43a5bbde Added Macro and KeyingSetInfo to blacklisted msg classes. Also updated french po & mo. 2011-10-07 08:57:08 +00:00
Campbell Barton
f7737153e6 filter RNA classes for translation (removes over 1300 lines from messages.txt)
- omit operators tagged as INTERNAL
- omit classes  for internal use: Event, Context, Property, Function, Window.
2011-10-05 03:39:22 +00:00
Campbell Barton
ccb7a81d86 - fix for keymap test operator
- cleanup pep8 warnings and unused py imports
py pep8 cleanup
2011-10-02 18:09:36 +00:00
Sergey Sharybin
a92cfcd74e i18n: fixed mistage in message generator which lead to some messages disappeared.
Also, cleaned up po files from unused messages.
2011-09-30 09:25:53 +00:00
Campbell Barton
265c113820 fix for crash generating messages.txt, I wasn't getting this crash because I had 'WITH_PYTHON_SAFETY' enabled which was using different iterators (which dont crash), now there on by default.
made headless and no-python configurations work again and added --factory-startup to doc building command.
2011-09-30 07:47:45 +00:00
Dalai Felinto
ad8df4843e po : adding note for windows translators/devs + remove backup function in update_po.py
(no more tons of *.po~ in the folder)
2011-09-30 05:36:56 +00:00
Campbell Barton
ff74afc45f remove the pot and messages file, they change too much with only minor changes to the source and can be regenerated. 2011-09-29 17:19:51 +00:00
Campbell Barton
9a0776c54a improvements to translation message generator
- for rna stringsinclude the path as comment, eg:
  #~ bpy.types.VertexGroup.name

- skip strings like %dx%d or -X.

- for strings extracted from python scripts include file:line reference as with C files.

- have messages in order they appear in the file, files and classes sorted so it reads more logically.

- extract these comments from the messages.txt file into the pot file.
2011-09-29 17:15:58 +00:00
Dalai Felinto
9701a58fec making PO/POT/... update scripts py3.2 compatible + making it almost win compatible
Adding from codecs import open + the encoding in update_pot.py so it works for python 3.2.
Now it should be easier to replace the executable folders in the first lines of the file.
It now also works if you are in the same folder as the .po files (i.e. os.path.dirname(__FILE__) is empty)

It's still not working for me on Mingw because I need gettext 1.8 and so far I found only the 1.7
(in 1.7 msgmerge --lang is not supported)
2011-09-29 06:34:58 +00:00
Sergey Sharybin
c941403bc3 i18n: wrote small instruction for translators
- Added po/README.txt file with translation instructions
- If update_po and update_mo scripts now allows to provide list
  of languages which should be handled only, i.e.

	./update_mo.py ru

- Removed obsolete file from POTFILES.in
2011-09-28 08:13:06 +00:00
Sergey Sharybin
b0e7dc3545 Fix for messages.txt generator -- KM_HIERARCHY was moved to other module 2011-09-27 09:43:35 +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
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
Guillermo S. Romero
68367e8c01 SVN maintenance. 2011-09-20 21:22: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
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
bba54a051a i18n: fake_gettext is no longer needed for python 2011-09-20 08:38:16 +00:00
Sergey Sharybin
0eda51f2ea Fixing issues with i18n stuff:
- Make gettext stuff draw-time. so switching between languages
  can happens without restart now.
- Added option to translate visible interface (menus, buttons, labels)
  and tooltips. Now it's possible to have english UI and localized tooltips.
- Clean-up sources, do not use gettext stuff for things which can be
  collected with RNA.
- Fix issues with windows 64bit and ru_RU locale on my desktop
  (it was codepage issue).
- Added operator "Get Messages" which generates new text block with
  with all strings collected from RNA.
- Changed script for updating blender.pot so now it appends
  messages collected from rna to automatically gathered messages.
  To update .pot you have to re-generate messages.txt using "Get Messages"
  operator and then run update_pot script.
- Clean up old translation stuff which wasn't used and most probably
  wouldn't be used.
- Return back "International Fonts" option, so if it's disabled, no
  gettext lookups happens on draw.
- Merged read_homefile function back. No need in splitting it.

TODO:
- Custom fonts and font size.
  Current font isn't nice at least for russian locale, it's
  difficult to read it.
- Put references to messages.txt so gettext can merge translation when
  name/description of some property changes.
2011-09-15 13:20:18 +00:00
Xiao Xiangquan
fa76a45dc6 update language packs 2011-09-09 15:09:20 +00:00
Xiao Xiangquan
117ac6ac68 delete update_all.py, as it is no longer needed 2011-08-22 04:45:03 +00:00
Xiao Xiangquan
ed158eeeb9 update property strings cover. 461 new items 2011-08-18 15:53:30 +00:00
Xiao Xiangquan
18d95a8462 fix a small bug , and update language-packs 2011-08-16 16:58:35 +00:00
Xiao Xiangquan
79656a65e0 finish handle for properties_XXX scripts 2011-08-02 16:51:50 +00:00
Xiao Xiangquan
287b24926f merge with trunk r38787 2011-07-29 17:42:53 +00:00
Xiao Xiangquan
8454f2b8b3 complete the language-select feature 2011-07-25 17:05:43 +00:00
Xiao Xiangquan
08645d9293 switch language in User Preference's System page. with some known switch failure bugs 2011-07-22 14:14:28 +00:00
Xiao Xiangquan
470a5017fb complete space outliner, space node, space nla, etc. 2011-07-13 14:41:12 +00:00
Xiao Xiangquan
b4c02ee722 finish user preference dlg's input handles 2011-07-08 04:32:45 +00:00
Xiao Xiangquan
9b8538c69c 3D view, graph editor, etc. done 2011-07-02 03:17:09 +00:00
Xiao Xiangquan
79c129647e right panel done 2011-06-24 04:22:27 +00:00
Xiao Xiangquan
9a2f36b50f handle SpaceType and UserPref popups 2011-06-20 10:07:46 +00:00
Xiao Xiangquan
558d549aeb handle View and Object menu 2011-06-17 03:53:51 +00:00
Xiao Xiangquan
de12f8049a translate left panel 2011-06-15 11:41:15 +00:00
Xiao Xiangquan
34a22b3b78 Add i18n support for C code, and most menu items can be translated, now 2011-06-10 04:36:51 +00:00
Xiao Xiangquan
b0cc5b9d4c Enable the po&pot update system, simply with two python scripts. 2011-06-01 07:57:09 +00:00
Campbell Barton
89c617a116 remove nan-makefiles 2011-01-30 15:29:22 +00:00
Campbell Barton
bed40ed8e3 move directories:
dlltool --> build_files/make/dlltool
 bin --> release/bin
 
Since dlltool is only used make + mingw and ./bin is misleading because it would seem the blender binary would be copied there, but its just used for home directory files.

updated scons/cmake/make
2010-07-26 11:47:33 +00:00
Guillermo S. Romero
581cb64f2c Make verification of committed .mo files optional. 2009-09-15 22:34:10 +00:00
Guillermo S. Romero
95b43536f6 Some Makefile changes still laying around. 2009-04-21 17:24:16 +00:00
Kent Mein
4fbacd6717 Move Korean file from kr to ko also updated it to newer file.
Kent
2008-09-29 15:02:20 +00:00
Chris Want
5d0a207ecb Patch from GSR that a) fixes a whole bunch of GPL/BL license
blocks that were previously missed; and b) greatly increase my
ohloh stats!
2008-04-16 22:40:48 +00:00
Chris Want
05c7798729 Fix for the Finnish po from GSR. 2008-03-10 16:04:34 +00:00
Chris Want
715a721c4b == Makefiles ==
Patch from GSR to correctly disable processing of po's when
international support is disabled.
2008-03-05 20:58:29 +00:00
Tom Musgrove
f8f6a049bd This commit contains the addition of a greek translation thanks to
Κωστής Καρβουνιάρης
Kostas Gerontis

Also a patch from Markus Schulz that 

adds buttons to the material, light, and world texture panels to make it 
easy to rearrange the textures in the list without having to 
use copy and paste.
2008-03-01 03:56:16 +00:00
Kent Mein
0d8b28e2a3 This is patch: [#7823] Improvements for the German translation
and also a small part of a patch from sgefant that fixes a typo
in the Makefiles.

Kent
2007-11-29 16:56:09 +00:00
Campbell Barton
0170c66dd5 svn-commit.2 2007-09-01 18:50:40 +00:00
Kent Mein
cb2d93e09d Cleaned up some case issues with language files...
Kent
2007-07-24 15:24:19 +00:00