add angular-translate
refactor the app.js and add angular translate
fix a issue of undefined function 'checkPattern'
add dependence of translate and server language
refactor the code with best practice
resolve the conflict
add server language