Translating view and ajax

Related to #629
can you fix the indent here?