Translation changes

This commit is contained in:
chris committed 2012-12-03 23:00:04 +08:00
1 parent 9c6c622a49
commit dc3be3c9a1
128 files changed
+295 -1114

No files matched your search

@@ -37,7 +37,7 @@ class Desktop::CoAuthorsController < ApplicationController
@co_author.name_id= current_user.id
if @co_author.save
render json: {success:true, msg: "Co-author successfully saved!"}.to_json
render json: {success:true, msg: t('create.sucess.co_author')}.to_json
else
error_msg = @co_author.errors.full_messages.join("<br />")
render json: {success: false, msg: error_msg}.to_json
@@ -48,7 +48,7 @@ class Desktop::CoAuthorsController < ApplicationController
@co_author = CoAuthor.find(params[:id])
if @co_author.update_attributes(params[:co_author])
render json: {success:true, msg: "Co-author successfully update!"}.to_json
render json: {success:true, msg: t('update.sucess.co_author')}.to_json
else
error_msg = @co_author.errors.full_messages.join("<br />")
render json: {success: false, msg: error_msg}.to_json