i18n: 创建i18n.json(4语言25条); tip统一包i18n._()
This commit is contained in:
parent
235af19b2e
commit
15c8f3a4ef
@ -499,7 +499,7 @@ bricks.UiAudio =class extends bricks.UiFile {
|
||||
this.uitype='audio';
|
||||
this.camera_w = new bricks.Svg({
|
||||
url:bricks_resource('imgs/mic.svg'),
|
||||
tip:'use mic to record audio',
|
||||
tip:bricks.app.i18n._('use mic to record audio'),
|
||||
rate:2});
|
||||
this.add_widget(this.camera_w);
|
||||
this.camera_w.bind('click', this.open_recorder.bind(this));
|
||||
@ -571,7 +571,7 @@ bricks.UiVideo =class extends bricks.UiFile {
|
||||
this.uitype='video';
|
||||
this.camera_w = new bricks.Svg({
|
||||
url:bricks_resource('imgs/video-recorder.svg'),
|
||||
tip:'use cemera to record video',
|
||||
tip:bricks.app.i18n._('use cemera to record video'),
|
||||
rate:2});
|
||||
this.set_css('droparea');
|
||||
this.add_widget(this.camera_w);
|
||||
@ -642,7 +642,7 @@ bricks.UiImage =class extends bricks.UiFile {
|
||||
this.uitype='image';
|
||||
this.camera_w = new bricks.Svg({
|
||||
url:bricks_resource('imgs/camera.svg'),
|
||||
tip:'use cemera to take a picture',
|
||||
tip:bricks.app.i18n._('use cemera to take a picture'),
|
||||
rate:2});
|
||||
this.set_css('droparea');
|
||||
this.add_widget(this.camera_w);
|
||||
|
||||
@ -518,19 +518,19 @@ bricks.PopupWindow = class extends bricks.Popup {
|
||||
name:'delete',
|
||||
icon:bricks_resource('imgs/app_delete.svg'),
|
||||
dynsize:true,
|
||||
tip:'Destroy this window'
|
||||
tip:bricks.app.i18n._('Destroy this window')
|
||||
},
|
||||
{
|
||||
name:'minimize',
|
||||
icon:bricks_resource('imgs/app_minimize.svg'),
|
||||
dynsize:true,
|
||||
tip:'minimize this window'
|
||||
tip:bricks.app.i18n._('minimize this window')
|
||||
},
|
||||
{
|
||||
name:'fullscreen',
|
||||
icon:bricks_resource('imgs/app_fullscreen.svg'),
|
||||
dynsize:true,
|
||||
tip:'fullscreen this window'
|
||||
tip:bricks.app.i18n._('fullscreen this window')
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@ -13,7 +13,7 @@ bricks.MediaRecorder = class extends bricks.Popup {
|
||||
this.controls = new bricks.HBox({width: '100%', cheight: 2.5});
|
||||
this.toggle_record = new bricks.Svg({
|
||||
url: bricks_resource('/imgs/start_recording.svg'),
|
||||
tip: 'start or stop record',
|
||||
tip: bricks.app.i18n._('start or stop record'),
|
||||
rate: 2
|
||||
});
|
||||
this.timepass = new bricks.Text({text:'00:00:00', cheight: 1.2});
|
||||
@ -21,7 +21,7 @@ bricks.MediaRecorder = class extends bricks.Popup {
|
||||
var cancel = new bricks.Svg({
|
||||
url: bricks_resource('imgs/delete.svg'),
|
||||
rate:2,
|
||||
tip: 'cancel recording'});
|
||||
tip: bricks.app.i18n._('cancel recording')});
|
||||
cancel.bind('click', this.cancel_record.bind(this))
|
||||
this.add_widget(this.preview);
|
||||
this.add_widget(this.controls);
|
||||
|
||||
@ -31,7 +31,7 @@ bricks.JsWidget = class {
|
||||
this.dom_element.bricks_widget = this;
|
||||
if (this.opts.tip){
|
||||
var w = bricks.app.tooltip;
|
||||
this.bind('mousemove', w.show.bind(w, this.opts.tip));
|
||||
this.bind('mousemove', w.show.bind(w, bricks.app.i18n._(this.opts.tip||'')));
|
||||
this.bind('mouseout', w.hide.bind(w));
|
||||
this.bind('click', w.hide.bind(w));
|
||||
}
|
||||
|
||||
27
i18n/en/i18n.json
Normal file
27
i18n/en/i18n.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"Conform": "Confirm",
|
||||
"Discard": "Discard",
|
||||
"add a new record": "Add a new record",
|
||||
"Submit": "Submit",
|
||||
"Reset": "Reset",
|
||||
"Cancel": "Cancel",
|
||||
"Requirement": "Requirement",
|
||||
"required field must input": "Required field must input",
|
||||
"access error": "Access error",
|
||||
"知识库": "Knowledge Base",
|
||||
"召回数量": "Recall Count",
|
||||
"模版": "Template",
|
||||
"Destroy this window": "Destroy this window",
|
||||
"minimize this window": "Minimize this window",
|
||||
"fullscreen this window": "Fullscreen this window",
|
||||
"start or stop record": "Start or stop recording",
|
||||
"cancel recording": "Cancel recording",
|
||||
"use mic to record audio": "Use microphone to record audio",
|
||||
"use cemera to record video": "Use camera to record video",
|
||||
"use cemera to take a picture": "Use camera to take a picture",
|
||||
"Add record": "Add record",
|
||||
"Update record": "Update record",
|
||||
"Clone record": "Clone record",
|
||||
"Are you sure to delete this record?": "Are you sure to delete this record?",
|
||||
"[Untitle window]": "[Untitled window]"
|
||||
}
|
||||
27
i18n/jp/i18n.json
Normal file
27
i18n/jp/i18n.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"Conform": "確認",
|
||||
"Discard": "破棄",
|
||||
"add a new record": "新規レコード追加",
|
||||
"Submit": "提出",
|
||||
"Reset": "リセット",
|
||||
"Cancel": "キャンセル",
|
||||
"Requirement": "必須",
|
||||
"required field must input": "必須フィールドを入力してください",
|
||||
"access error": "アクセスエラー",
|
||||
"知识库": "知識ベース",
|
||||
"召回数量": "検索数",
|
||||
"模版": "テンプレート",
|
||||
"Destroy this window": "ウィンドウを閉じる",
|
||||
"minimize this window": "ウィンドウを最小化",
|
||||
"fullscreen this window": "フルスクリーン",
|
||||
"start or stop record": "録音開始/停止",
|
||||
"cancel recording": "録音キャンセル",
|
||||
"use mic to record audio": "マイクで録音",
|
||||
"use cemera to record video": "カメラで録画",
|
||||
"use cemera to take a picture": "カメラで撮影",
|
||||
"Add record": "レコード追加",
|
||||
"Update record": "レコード更新",
|
||||
"Clone record": "レコード複製",
|
||||
"Are you sure to delete this record?": "このレコードを削除しますか?",
|
||||
"[Untitle window]": "[無題ウィンドウ]"
|
||||
}
|
||||
27
i18n/ko/i18n.json
Normal file
27
i18n/ko/i18n.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"Conform": "확인",
|
||||
"Discard": "취소",
|
||||
"add a new record": "새 레코드 추가",
|
||||
"Submit": "제출",
|
||||
"Reset": "재설정",
|
||||
"Cancel": "취소",
|
||||
"Requirement": "필수",
|
||||
"required field must input": "필수 필드를 입력하세요",
|
||||
"access error": "액세스 오류",
|
||||
"知识库": "지식 베이스",
|
||||
"召回数量": "검색 수",
|
||||
"模版": "템플릿",
|
||||
"Destroy this window": "창 닫기",
|
||||
"minimize this window": "창 최소화",
|
||||
"fullscreen this window": "전체 화면",
|
||||
"start or stop record": "녹음 시작/중지",
|
||||
"cancel recording": "녹음 취소",
|
||||
"use mic to record audio": "마이크로 녹음",
|
||||
"use cemera to record video": "카메라로 녹화",
|
||||
"use cemera to take a picture": "카메라로 촬영",
|
||||
"Add record": "레코드 추가",
|
||||
"Update record": "레코드 수정",
|
||||
"Clone record": "레코드 복제",
|
||||
"Are you sure to delete this record?": "이 레코드를 삭제하시겠습니까?",
|
||||
"[Untitle window]": "[제목 없음]"
|
||||
}
|
||||
27
i18n/zh/i18n.json
Normal file
27
i18n/zh/i18n.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"Conform": "确认",
|
||||
"Discard": "放弃",
|
||||
"add a new record": "添加新记录",
|
||||
"Submit": "提交",
|
||||
"Reset": "重置",
|
||||
"Cancel": "取消",
|
||||
"Requirement": "必填",
|
||||
"required field must input": "必填字段必须输入",
|
||||
"access error": "访问错误",
|
||||
"知识库": "知识库",
|
||||
"召回数量": "召回数量",
|
||||
"模版": "模版",
|
||||
"Destroy this window": "关闭窗口",
|
||||
"minimize this window": "最小化窗口",
|
||||
"fullscreen this window": "全屏显示",
|
||||
"start or stop record": "开始/停止录音",
|
||||
"cancel recording": "取消录音",
|
||||
"use mic to record audio": "使用麦克风录音",
|
||||
"use cemera to record video": "使用摄像头录像",
|
||||
"use cemera to take a picture": "使用摄像头拍照",
|
||||
"Add record": "添加记录",
|
||||
"Update record": "更新记录",
|
||||
"Clone record": "克隆记录",
|
||||
"Are you sure to delete this record?": "确定删除此记录?",
|
||||
"[Untitle window]": "[未命名窗口]"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user