Page 1 of 1

Can't delete user in the rental register

Posted: 2006-01-03 22:45:49
by nlights
Hallo!

I think amc is a great tool, i love it, but i experienced a problem:
i can't delete users in the rental register. i only get the message "No argument for format '%s' "

Has anybody the same problem? TIA and sorry for my english...

---------------------------
Information
---------------------------
MovieCatalog.exe: Version 3.5.0.2 (erstellt am 29.05.2005 12:51:40)
AMCExchange.dll: Version 1.0.1.6 (erstellt am 27.06.2004 00:39:22)
AMCReport.exe: Version 1.0.2.2 (erstellt am 15.01.2005 17:13:56)
MediaInfo.dll: Version 0.6.0.0 (erstellt am 18.05.2005 23:45:58)

I use the german translation under WinXPPro.

Posted: 2006-01-04 08:15:02
by antp
That's quite strange :??: The problem does not occur in English.
I guess that you use a translation file? Which one? It probably has an error for the text of the message that asks to confirm the deletion.

Solution

Posted: 2006-01-04 10:23:41
by nlights
I use the german translation, after i skipped to default english ist was no problem - thanks for the hint.
It was a problem with the translation file:
A message string used "%s" two times and this seems to be not working... I replaced

Code: Select all

Messages.Strings.String[0]=Dies löscht "%s" von der Personenliste und gibt alle Filme, die an "%s" ausgeliehen waren, zurück.
with

Code: Select all

Messages.Strings.String[0]=Dies löscht "%s" von der Personenliste und gibt alle Filme, die an diese Person ausgeliehen waren, zurück.
I will write a short mail to the translator. Thanks for your help and this very usefull tool! :grinking:

Posted: 2006-01-04 10:44:25
by antp
Thanks for the info, I'll modify the translation file on my side too ;)

Posted: 2006-01-05 17:06:16
by Alien.de
Thank you very much!

I corrected the error although I am sure Antoine did it allready, Have you?

Since I did not check by some time now, I did not notice the last updates so I did not update the traslation to the newest version. I'll send it Antoine on Monday.

but why the heck is that not working? In the original english there have -obviously ;-) - not been two string placeholder in this line, but this seemed better for the translation, so I inserted the second placeholder

Posted: 2006-01-05 18:33:07
by antp
Yes I made the change.
The error comes because it search for a second string (second %s) and the program does only provide one.
If you want to use two times the same parameter, or change the parameter order, you have to specify their number (starting at 0).
So in this case you have to replace the two %s by two %0:s