Removed the "hardcoded" method to find the block name, the correct is to ask the block itself. It was causing errors for blocks with no lang file. Also, removed some useless commented code.
Removed the "hardcoded" method to find the block name, the correct is to ask
the block itself. It was causing errors for blocks with no lang file. Also,
removed some useless commented code.

dilawar/moodle