Add method to query a translation

Added method to query a translation's state.
The other changes in the diff are trailing whitespace removal.