root/trunk/peppy.py

Revision 1048, 327 bytes (checked in by rob, 9 months ago)

Refs #377: Added Language class and some boilerplate to support i18n
* using wx.Locale for automatic translation of stock wx stuff
* not using wx.Locale for message catalogs; will borrow TaskCoach?'s approach of dictifying the message catalogs
* added leet and piglatin translators as example translations before I have a real one
* added localization calls that were missing from actions, menu entry processing and the minibuffer labels
* added updateAllFrames method to main app that recreates the UI after a language switch
* removed old i18n code that was superfluous with this new approach

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to "Url Rev Author Date Id"
Line 
1#!/usr/bin/env python
2"""
3Main driver program for the peppy editor.
4"""
5
6import os,sys
7
8# Set default translation as a no-op for the moment (the actual translation is
9# performed on-demand during the GUI creation, not at application start time).
10import __builtin__
11__builtin__._ = unicode
12
13import peppy.main
14
15peppy.main.main()
Note: See TracBrowser for help on using the browser.