[Mattricks] Error when starting Mattricks 0.6 on Debian Sarge
oscar at lysator.liu.se
Tue Sep 14 16:01:09 CEST 2004
It runed out that the translation was a bit messed up. After generating a
new file, some of the old translations were in incorrect format.
Download the updated file:
and run the msgfmt command again.
There are some really crappy translations as the software takes guesses
based on similar words (and I also filled in a few), but you'll have to
live with that.
poEdit or Kbabel are otherwise recommended tools for translating. :-)
I would otherwise recommend downloading the current CVS-tarball as quite
some things have improved (although you may also run in to new problems).
On Tue, 14 Sep 2004, Niels Schröter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Oscar Gustafsson wrote :
> > A guess would be that the german translation is incorrect. Looking at the
> > de.po it turns out that the last line
> > #line
> > 3071 msgid "%d week"
> > 3072 msgid_plural "%d weeks"
> > 3073 msgstr "%d Woche"
> > 3074 msgstr ""
> > should read
> > msgstr "%d Wochen" (if week in plrual is Wochen).
> > You can edit this file yourself and then run
> > msgfmt -o locale/de/LC_MESSAGES/mattricks.mo po/de.po
> > standing in
> This fixed the error, thank you ( by the way, in my de.po the line# was 3920).
> Now mattrick.py started, asked for HT login name and password, downloaded both
> 'team details' and 'data for all players' and then exited with:
> Conversion error: not all arguments converted during string formatting
> ( ^ multiple times)
> Traceback (most recent call last):
> File "./mattricks.py", line 36, in ?
> File "/home/niels/Mattricks/Mattricks/Init.py", line 57, in start
> File "/home/niels/Mattricks/Mattricks/Commandline.py", line 105, in
> all_commands[command](args, help_command)
> File "/home/niels/Mattricks/Mattricks/Commandline.py", line 121, in
> File "/home/niels/Mattricks/Mattricks/Main.py", line 465, in main
> app = Main(filename)
> File "/home/niels/Mattricks/Mattricks/Main.py", line 417, in __init__
> File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in
> File "/home/niels/Mattricks/Mattricks/Main.py", line 424, in OnInit
> frame = MainFrame(NULL, Main.ID_FRAME, "Mattricks", self.initial_file)
> File "/home/niels/Mattricks/Mattricks/Main.py", line 213, in __init__
> the_pages = [
> File "/home/niels/Mattricks/Mattricks/TeamSelectorPage.py", line 78, in
> File "/home/niels/Mattricks/Mattricks/Players.py", line 159, in __init__
> self.__extract_data(date, team)
> File "/home/niels/Mattricks/Mattricks/Players.py", line 194, in
> player.data["CompetitionGoals"] = (compgoals,
> TypeError: not all arguments converted during string formatting
> For information, I have installed libwxgtk2.4-python (220.127.116.11), I don't know
> if that is important.
> And yes, the plural of week in german is Wochen :)
> Greetz, Niels
> - --
> niels.schroeter at uni-koblenz.de
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> -----END PGP SIGNATURE-----
> Mattricks mailing list
> Mattricks at lists.lysator.liu.se
| Oscar Gustafsson \o/
| oscar at lysator.liu.se ]
More information about the Mattricks