Bug in languages.ini

Romnames would display as langauges - needed a prior check
Refactoring Mame Perl Script