You should use the babel package and set the language to hungarian. This also changes the typesetting rules. If Number Figure is the proper sequence in Hungarian, it should automatically change this. On this (Hungarian) site you can find Babel documentation.
Edit: If you check page 207 of this document is says:
In the part, chapter, appendix name the number (or letter) goes before the
name, so ‘Part I’ translates to ‘I. rész’.
The same is true with captions (‘Table 2.1’ goes to ‘2.1. táblázat’).
Best Answer
You have a mes in definition of caption ... try something like
which gives
figure
in boldface italic text orif you like to have
Figure
only in italic shape. The latter case can be shortly written as: