change ERB to HAML and some translations