wxPythonで作った簡易XMLエディタ
| Revision | 7371548215aa9bfaabbc3ed1f45f71e82d0074d3 (tree) |
|---|---|
| Time | 2014-04-14 02:15:27 |
| Author | tamanegi <tamanegi@user...> |
| Commiter | tamanegi |
fix translation setting in wmutils
| @@ -27,6 +27,13 @@ import os | ||
| 27 | 27 | import re |
| 28 | 28 | import xml.etree.ElementTree as ET |
| 29 | 29 | import copy |
| 30 | +import gettext | |
| 31 | + | |
| 32 | +DIR_FILE = os.path.dirname( os.path.abspath( __file__ ) ) | |
| 33 | +LOCALEDIR = os.path.join( DIR_FILE, 'translations' ) | |
| 34 | +_ = gettext.translation( domain='wmxmled', | |
| 35 | + localedir=LOCALEDIR, | |
| 36 | + fallback=True ).ugettext | |
| 30 | 37 | |
| 31 | 38 | """utility classes for WMXmlEditor.""" |
| 32 | 39 |
| @@ -23,11 +23,11 @@ | ||
| 23 | 23 | |
| 24 | 24 | import wx |
| 25 | 25 | from wx import xrc |
| 26 | -import gettext | |
| 27 | 26 | |
| 28 | 27 | import sys |
| 29 | 28 | import os |
| 30 | 29 | import copy |
| 30 | +import gettext | |
| 31 | 31 | import xml.etree.ElementTree as ET |
| 32 | 32 | from wmutils import * |
| 33 | 33 |