If I am not mistaken, when the door the company went through to enter Moria was made, it was not yet called Moria, yet that name seems to have been written on the door. I ascribe this to translation mix-ups and confusions, probably even before the Westron-to-English translation of the text.