Thus, if the Hamiltonian is invariant under translation, the Hamiltonian commutes with the translation operator (loosely speaking, if we translate the system, then measure its energy, then translate it back, it amounts to the same thing as just measuring its energy directly).