I locked the door
Eu tranquei a porta, no caso de alguém querer entrar.
I locked the door in case someone tried to come in.
Eu tranquei a porta atrás de mim.
I locked the door behind me.
Did I lock the door?
Eu tranquei a porta da frente.
I locked the front door.