What exactly are you trying to achieve please?
Given the information you state I am not sure that you should have edited moodle.php, rather than provided your own lang directory. For an example of a custom format with the lang folder etc. please have a look at my format http://docs.moodle.org/en/Collapsed_Topics_course_format
I hope this helps.