Hi.

A goal for the next release is to make PythonCAD work using translations
to a user's native language. Achieving this goal requires the use of
the 'gettext' module in Python, then enclosing the translatable strings
in the program within the special _() function. I've started making
these changes today, and the first bits of code are at the repo. The
'gtkpycad.py' file imports the gettext module, and I've gone through
the files under the PythonCAD/Interface/Gtk directory and changed all
the setPrompt() calls as needed. There are still many more strings that
must be enclosed within _(), so numerous more changes still need to
be made. The various menus and window titles need changing still, for
example. I'll be tackling them in the coming days. The current changes
are available at the repo; get them with 'svn update'.

People that are willing to start making the translations will need to
read up on the 'gettext' module and then start sending me the '.mo'
files. We'll tackle installation issues once these files start
appearing. If anyone has worked on providing translations for other
programs, I'd appreciate a message or two on avoid common pitfalls
and how to make it easy for translators to contribute.

Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
_______________________________________________
PythonCAD mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythoncad

Reply via email to