Can't delete user in the rental register

If you need help on how to use the program
Post Reply
nlights
Posts: 2
Joined: 2006-01-03 22:36:45

Can't delete user in the rental register

Post 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.
antp
Site Admin
Posts: 9660
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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.
nlights
Posts: 2
Joined: 2006-01-03 22:36:45

Solution

Post 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:
antp
Site Admin
Posts: 9660
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thanks for the info, I'll modify the translation file on my side too ;)
Alien.de
Posts: 7
Joined: 2005-02-18 12:47:08

Post 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
antp
Site Admin
Posts: 9660
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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
Post Reply