Add i18n for message in editor pop-up

This commit is contained in:
Christophe Vilayphiou 2012-08-14 01:19:27 +08:00
parent bd56685b07
commit ab1c457a51
3 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
<%#= encoding: utf-8 %>
$(document).on('click', '#ajax_form_submit', function(){
// $('#ajaxForm').ajaxSubmit({
// beforeSubmit: function(a,f,o) {
@ -35,6 +36,7 @@ $(document).on('click', '#ajax_form_submit', function(){
})
if(!sub){
$("#dyn_error").text("Cannot be empty.");
$("#dyn_error").text("<%= I18n.t('cant_empty_star') %>");
return false;
}
},

View File

@ -11,6 +11,7 @@ en:
back: Back
browse: Browse
cancel: Cancel
cant_empty_star: Cannot be empty (*)
create_fail: Creation failed
create: Create
delete: Delete

View File

@ -8,6 +8,7 @@ zh_tw:
back: 回上一步
browse: 選擇檔案
cancel: 取消
cant_empty_star: 不能為空 (*)
create: 新增
create_fail: 創建失敗
delete: 刪除