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(){
|
$(document).on('click', '#ajax_form_submit', function(){
|
||||||
// $('#ajaxForm').ajaxSubmit({
|
// $('#ajaxForm').ajaxSubmit({
|
||||||
// beforeSubmit: function(a,f,o) {
|
// beforeSubmit: function(a,f,o) {
|
||||||
|
@ -35,6 +36,7 @@ $(document).on('click', '#ajax_form_submit', function(){
|
||||||
})
|
})
|
||||||
if(!sub){
|
if(!sub){
|
||||||
$("#dyn_error").text("Cannot be empty.");
|
$("#dyn_error").text("Cannot be empty.");
|
||||||
|
$("#dyn_error").text("<%= I18n.t('cant_empty_star') %>");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
|
@ -11,6 +11,7 @@ en:
|
||||||
back: Back
|
back: Back
|
||||||
browse: Browse
|
browse: Browse
|
||||||
cancel: Cancel
|
cancel: Cancel
|
||||||
|
cant_empty_star: Cannot be empty (*)
|
||||||
create_fail: Creation failed
|
create_fail: Creation failed
|
||||||
create: Create
|
create: Create
|
||||||
delete: Delete
|
delete: Delete
|
||||||
|
|
|
@ -8,6 +8,7 @@ zh_tw:
|
||||||
back: 回上一步
|
back: 回上一步
|
||||||
browse: 選擇檔案
|
browse: 選擇檔案
|
||||||
cancel: 取消
|
cancel: 取消
|
||||||
|
cant_empty_star: 不能為空 (*)
|
||||||
create: 新增
|
create: 新增
|
||||||
create_fail: 創建失敗
|
create_fail: 創建失敗
|
||||||
delete: 刪除
|
delete: 刪除
|
||||||
|
|
Reference in New Issue