Hi guys :-)
In the Match viewer, when I click on "Teams", I get this:
Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/Mattricks/MatchViewerPage.py", line 109, in OnTeams tl=TeamList.TeamList(self) File "/usr/lib/python2.3/site-packages/Mattricks/TeamList.py", line 108, in __init__ team_id=int(team_id) ValueError: invalid literal for int():
and nothing happens.
Linux (Debian Sarge), Mattrick 0.6_rc1, python 2.3.3.
Moreover, I'd like to start the Italian translation of Mattricks. If you agfree, please tell me how to proceed and whom to send the translated message file to.
Please, Cc: me on reply, since I'm not (yet) subscribed to the list.
Thank you for the great work! Gabriele :-)
P.S.: the address shown on the help.en.html page of the site is wrong: it's "mattricks(at)lysator(dot)liu(dot)se", instead of "mattricks(at)lists(dot)lysator(dot)liu(dot)se" (the "list" is missing) :-)
On Thu, 6 May 2004, Gabriele 'LightKnight' Stilli wrote:
Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/Mattricks/MatchViewerPage.py", line 109, in OnTeams tl=TeamList.TeamList(self) File "/usr/lib/python2.3/site-packages/Mattricks/TeamList.py", line 108, in __init__ team_id=int(team_id) ValueError: invalid literal for int():
Strange, was this the first time you ran Mattricks?
Could you please add the following lines around line 108 in Mattricks/TeamList.py and run again?
if id_str is not None: --> print id_str for team_id in id_str.split(","): --> print team_id team_id=int(team_id) self.__add_team(team_id)
Moreover, I'd like to start the Italian translation of Mattricks. If you agfree, please tell me how to proceed and whom to send the translated message file to.
That would be really nice!
The file to translate should be available as po/Mattricks.pot or http://cvs.lysator.liu.se/viewcvs/viewcvs.cgi/~checkout~/Mattricks/po/Mattri...
rename it to it.po and start translating, the idea is:
venerdì 07 maggio 2004, alle 09:31, Oscar Gustafsson scrive:
Sorry for being so late :P
Strange, was this the first time you ran Mattricks?
Actually, no. The error didn't show up on first run, only on a successive reload. I moved the Choices/ directory away and the problem disappeared. Now I can't reproduce it anymore. I'll holler when I hit it again. :-)
Now I have another similar problem:
when I run Mattricks from afresh and change the hrf catalog directory in the preferences, I get this output on successive reloads of the program:
Traceback (most recent call last):
File "./mattricks.py", line 36, in ? Init.start() File "/home/gabry/Mattricks-0.6_rc1/Mattricks/Init.py", line 57, in start Commandline.parse_and_start() File "/home/gabry/Mattricks-0.6_rc1/Mattricks/Commandline.py", line 105, in parse_and_start all_commands[command](args, help_command) File "/home/gabry/Mattricks-0.6_rc1/Mattricks/Commandline.py", line 121, in parse_cmd_gui Main.main(*args) File "/home/gabry/Mattricks-0.6_rc1/Mattricks/Main.py", line 520, in main app = Main(filename) File "/home/gabry/Mattricks-0.6_rc1/Mattricks/Main.py", line 472, in __init__ wxApp.__init__(self) File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in __init__ _wxStart(self.OnInit) File "/home/gabry/Mattricks-0.6_rc1/Mattricks/Main.py", line 479, in OnInit frame = MainFrame(NULL, Main.ID_FRAME, "Mattricks", self.initial_file) File "/home/gabry/Mattricks-0.6_rc1/Mattricks/Main.py", line 214, in __init__ the_pages = [ File "/home/gabry/Mattricks-0.6_rc1/Mattricks/SummaryPage.py", line 40, in __init__ self.htdata = (filename, HRFData.hrfstorage[filename]) File "/home/gabry/Mattricks-0.6_rc1/Mattricks/HRFData.py", line 125, in __getitem__ self.hrfdata[f] = (HRFData(f), t) File "/home/gabry/Mattricks-0.6_rc1/Mattricks/HRFData.py", line 225, in __init__ self.__extract_data() File "/home/gabry/Mattricks-0.6_rc1/Mattricks/HRFData.py", line 287, in __extract_data section_attributes_convert = self.__extract_data_section(section, []) File "/home/gabry/Mattricks-0.6_rc1/Mattricks/HRFData.py", line 364, in __extract_data_section for data_name, (hrf_name, description, convert_func, display_func) in attr_list.items(): AttributeError: 'list' object has no attribute 'items'
And mattricks refuses to start up.
Actually, the problem is that I use Hattrick Organizer to download the .hrf files, and seems that from a certain point onward it changed slightly the format it saves the data in, and this causes the crash. If it's useful, I can provide some of those "treacherous" .hrf,
Regarding the translation, it's almost finished, I'm stuck on a few items that are a bit tricky to render in Italian.
Should I use UTF-8 (Unicode) or ISO-8859-15 to translate strings?
These are some issues I met when translating the .po file:
* Found these typos while translating:
1) #: Mattricks/LeaguePage.py:348 msgid "Entered legaue id is not valid."
*** replace "legaue" with "league".
2) " -A --not-always Only download a new hrf file if no\n" " hrf file exits for the day.\n"
*** replace "exits" with "exists".
3) #: Mattricks/XMLDataInfo.py:820 msgid "Transder id"
*** replace "Transder" with "Transfer".
* In the column editor, the column "Winger" appears twice. Moreover, in Preferences->PLayer lists, the columns appear with theis original Swedish headings; maybe they need a bit of translation too :-)
* The "resultat" caption at the bottom of "Game prediction" panel has been left untranslatable (and, as a sidenote, I think it should be "result" or such).
* Seems that the labels "larger report panel", "equal size" and "larger event panel" in Preferences->Game viewer->Size ratios... remain untranslatable, even if I translated them in the .po file.
* In the "Summary" panel, on the top-right corner, I see a strange word, reading "itma", appearing. I guess it should be from "bitmap" and maybe it's an error of some sort. Screenshot available on request.
Two little errors regarding the levels denominations in Terms.py (at least, according to the terms list I found on the Hattrick site):
1) For the Aggressivity, the "unstable" level is missing (it's the top one);
2) For the Team self confidence, there's a "passable" level that shouldn't be there (at least, not in that position in the scale).
* What is "Acc. profit" in the Economists dialog box?
* Finally, remember to add Italian ("italiano") in the Preferences->General languages menu in the final version :-)
Sorry for asking so many questions all at once, I hope I'll be able to send you a decent translation :)
P.S.: the address shown on the help.en.html page of the site is wrong: it's "mattricks(at)lysator(dot)liu(dot)se", instead of "mattricks(at)lists(dot)lysator(dot)liu(dot)se" (the "list" is missing) :-)
Thanks for notifying us!
You're welcome, but the mistake remains :)
Do you have any plans on when releasing 0.6? This way, I can plan my work better.
Thank you, Gabriele :-)
On Sat, May 22, 2004 at 01:42:54AM +0200, Gabriele 'LightKnight' Stilli wrote:
[...]
- What is "Acc. profit" in the Economists dialog box?
I understood this as an aggregate/totality profits. At least that's how I translated it to Polish ;)
I hope that they'll agree with me ;)
regards fEnIo
On Sat, 22 May 2004, Gabriele 'LightKnight' Stilli wrote:
venerdì 07 maggio 2004, alle 09:31, Oscar Gustafsson scrive:
Sorry for being so late :P
I am late in answering this as well it seems. :)
Strange, was this the first time you ran Mattricks?
Actually, no. The error didn't show up on first run, only on a successive reload. I moved the Choices/ directory away and the problem disappeared. Now I can't reproduce it anymore. I'll holler when I hit it again. :-)
Do so.
Now I have another similar problem:
when I run Mattricks from afresh and change the hrf catalog directory in the preferences, I get this output on successive reloads of the program:
Traceback (most recent call last): And mattricks refuses to start up. [...]
Actually, the problem is that I use Hattrick Organizer to download the .hrf files, and seems that from a certain point onward it changed slightly the format it saves the data in, and this causes the crash. If it's useful, I can provide some of those "treacherous" .hrf,
WE have so far made no attempt at supporting hrf:s not conforming with HT:s hrf:s. Sorry, but that's the way it is. When we have fully converted from hrf:s to xml:s, we will provide a hrf to xml convertor and then we might try to support other hrf:s, but not right now.
Regarding the translation, it's almost finished, I'm stuck on a few items that are a bit tricky to render in Italian.
Should I use UTF-8 (Unicode) or ISO-8859-15 to translate strings?
ISO-8859-1 or ISO-8859-15 for now, until we use unicode internally, then I will convert the translations to use UTF-8 too.
These are some issues I met when translating the .po file:
- Found these typos while translating:
- #: Mattricks/LeaguePage.py:348
msgid "Entered legaue id is not valid."
*** replace "legaue" with "league".
Fixed.
- " -A --not-always Only download a new hrf file if no\n"
" hrf file exits for the day.\n" *** replace "exits" with "exists".
Fixed
- #: Mattricks/XMLDataInfo.py:820
msgid "Transder id"
*** replace "Transder" with "Transfer".
Fixed
- In the column editor, the column "Winger" appears twice. Moreover, in
Winger appears twice, because there are two different winger attributes, one his winger ability, then his assessed winger value. Sorry about this, but it'll stay this way for now.
Preferences->PLayer lists, the columns appear with theis original Swedish headings; maybe they need a bit of translation too :-)
It's the internal hrf name that is used. Preferences->Player lists shuold probably go away at some point and only be configurable (and better too) from the player list page (through edit columns).
- The "resultat" caption at the bottom of "Game prediction" panel has been
left untranslatable (and, as a sidenote, I think it should be "result" or such).
Correct. Now fixed.
- Seems that the labels "larger report panel", "equal size" and "larger event
panel" in Preferences->Game viewer->Size ratios... remain untranslatable, even if I translated them in the .po file.
I've made this to work better and should now be translatable.
- In the "Summary" panel, on the top-right corner, I see a strange word,
reading "itma", appearing. I guess it should be from "bitmap" and maybe it's an error of some sort. Screenshot available on request.
It's from empty bitmaps. I know of this and will fix it sometime. :)
Two little errors regarding the levels denominations in Terms.py (at least, according to the terms list I found on the Hattrick site):
- For the Aggressivity, the "unstable" level is missing (it's the top one);
Are you referring to the levels in Italian or the English here?
- For the Team self confidence, there's a "passable" level that shouldn't
be there (at least, not in that position in the scale).
There are one extra level in Swedish and this is a fix for that.
- What is "Acc. profit" in the Economists dialog box?
Accumulated profit, i.e. the sum of all profit.
- Finally, remember to add Italian ("italiano") in the Preferences->General
languages menu in the final version :-)
Yes, of course.
Sorry for asking so many questions all at once, I hope I'll be able to send you a decent translation :)
P.S.: the address shown on the help.en.html page of the site is wrong: it's "mattricks(at)lysator(dot)liu(dot)se", instead of "mattricks(at)lists(dot)lysator(dot)liu(dot)se" (the "list" is missing) :-)
Thanks for notifying us!
You're welcome, but the mistake remains :)
I will change that real soon now. :)
Do you have any plans on when releasing 0.6? This way, I can plan my work better.
Thank you, Gabriele :-)
Sometime soon. There will be a rc2 first though.
/Ragnar
mattricks@lists.lysator.liu.se