Add i18n for message in editor pop-up
This commit is contained in:
parent
bd56685b07
commit
ab1c457a51
|
@ -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;
|
||||
}
|
||||
},
|
|
@ -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
|
||||
|
|
|
@ -8,6 +8,7 @@ zh_tw:
|
|||
back: 回上一步
|
||||
browse: 選擇檔案
|
||||
cancel: 取消
|
||||
cant_empty_star: 不能為空 (*)
|
||||
create: 新增
|
||||
create_fail: 創建失敗
|
||||
delete: 刪除
|
||||
|
|
Loading…
Reference in New Issue