I'm writing a research report (based on the book template) and I am using the algorithm package. I want to number the algorithms using {chapter}{algorithm}, but I don't understand the Algorithm document I found on ctan. It says
"The numbering of algorithms can be influenced by providing the name of
the document component within which numbering should be recommenced.
The legal values for this option are: part, chapter, section, subsection,
subsubsection or nothing. The default value is nothing which causes algorithms
to be numbered sequentially throughout the document."
But I am new using LaTex and I don't know what and where to write it.
Also I am working in spanish and I like to have them inthe TOC but (obviously) when I generate the Algorithms List it comes in english. I found I need to use the \floatname but I don't know how to use it

Thanks a lot
Mariamar