From 099db5e7d0a64175aff1ad3a69eb20da083884e9 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Mon, 30 Aug 2010 17:24:28 +0200 Subject: [PATCH 1/2] THP: add header --- pyfpdb/TestHandsPlayers.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) mode change 100644 => 100755 pyfpdb/TestHandsPlayers.py diff --git a/pyfpdb/TestHandsPlayers.py b/pyfpdb/TestHandsPlayers.py old mode 100644 new mode 100755 index ae521f71..f1039115 --- a/pyfpdb/TestHandsPlayers.py +++ b/pyfpdb/TestHandsPlayers.py @@ -1,4 +1,23 @@ +#!/usr/bin/env python # -*- coding: utf-8 -*- +# +# Copyright 2010, Carl Gherardi +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +######################################################################## + import sys import os import codecs From dadeb82b4b7376c01b65d9d95f8eca4aa7ed0380 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Mon, 30 Aug 2010 17:25:08 +0200 Subject: [PATCH 2/2] l10n: add french to localise script --- pyfpdb/locale/localise.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/locale/localise.sh b/pyfpdb/locale/localise.sh index 7f214c38..b9d57292 100755 --- a/pyfpdb/locale/localise.sh +++ b/pyfpdb/locale/localise.sh @@ -5,11 +5,12 @@ echo "creating template po file" python /usr/share/doc/python-2.7/examples/Tools/i18n/pygettext.py --output-dir=locale --default-domain=fpdb --output=fpdb-en_GB.pot *.py* echo "merging template with existing translations" -msgmerge --update locale/fpdb-hu_HU.po locale/fpdb-en_GB.pot msgmerge --update locale/fpdb-de_DE.po locale/fpdb-en_GB.pot +msgmerge --update locale/fpdb-fr_FR.po locale/fpdb-en_GB.pot +msgmerge --update locale/fpdb-hu_HU.po locale/fpdb-en_GB.pot echo "compiling mo files" -python /usr/share/doc/python-2.7/examples/Tools/i18n/msgfmt.py --output-file=locale/hu/LC_MESSAGES/fpdb.mo locale/fpdb-hu_HU.po python /usr/share/doc/python-2.7/examples/Tools/i18n/msgfmt.py --output-file=locale/de/LC_MESSAGES/fpdb.mo locale/fpdb-de_DE.po +python /usr/share/doc/python-2.7/examples/Tools/i18n/msgfmt.py --output-file=locale/hu/LC_MESSAGES/fpdb.mo locale/fpdb-hu_HU.po pocount locale/*.po