From 6ee12769aea83ee5339cfd0e65dd54754ab7db20 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Sun, 15 Aug 2010 07:32:23 +0200 Subject: [PATCH] add gettext import to card --- pyfpdb/Card.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyfpdb/Card.py b/pyfpdb/Card.py index 83cc8318..81edfb9c 100755 --- a/pyfpdb/Card.py +++ b/pyfpdb/Card.py @@ -15,6 +15,9 @@ #along with this program. If not, see . #In the "official" distribution you can find the license in agpl-3.0.txt. +import gettext +trans = gettext.translation("fpdb", localedir="locale", languages=["de_DE"]) +trans.install() # From fpdb_simple card_map = { "0": 0, "2": 2, "3" : 3, "4" : 4, "5" : 5, "6" : 6, "7" : 7, "8" : 8,