L10n: H->M updated

This commit is contained in:
Worros
2010-09-23 14:10:30 +08:00
parent 016172f78d
commit dee17e8001
6 changed files with 19 additions and 72 deletions
+3 -12
View File
@@ -15,6 +15,9 @@
#along with this program. If not, see <http://www.gnu.org/licenses/>.
#In the "official" distribution you can find the license in agpl-3.0.txt.
import L10n
_ = L10n.get_translation()
# TODO: get writehand() encoding correct
import re
@@ -28,18 +31,6 @@ import time,datetime
from copy import deepcopy
import pprint
import locale
lang=locale.getdefaultlocale()[0][0:2]
if lang=="en":
def _(string): return string
else:
import gettext
try:
trans = gettext.translation("fpdb", localedir="locale", languages=[lang])
trans.install()
except IOError:
def _(string): return string
import logging
# logging has been set up in fpdb.py or HUD_main.py, use their settings:
log = logging.getLogger("parser")