forked from hrkenshin/OpenGraph
-
Notifications
You must be signed in to change notification settings - Fork 9
Internationalization
Basquiat Yoon edited this page Oct 24, 2016
·
3 revisions
Opengraph queries the localized message by calling the getMessage(key) method. If you want to customize the messages, you can override it.
OG.handler.EventHandler.prototype.getMessage = function(key){
return OG.messages[key];
};
OG.messages = {
'selectAll' : '모두 선택',
'select' : '선택',
'paste' : '붙여넣기',
'view' : '스케일',
'view_actualSize' : '실제 사이즈',
'view_fitWindow' : '윈도우에 맞추기',
'view_zoomin' : '확대',
'view_zoomout' : '축소',
'fillColor' : '색상',
'white' : '하양',
'gray' : '회색',
'blue' : '파랑',
'red' : '빨강',
'yellow' : '노랑',
'orange' : '오렌지',
'green' : '녹색',
'black' : '검정',
'direct_write' : '직접입력',
'fillOpacity' : '투명도',
'lineStyle' : '선 스타일',
'lineColor' : '선 색상',
'lineWidth' : '선 두께',
'text' : '글꼴',
'fontFamily' : '폰트',
'fontColor' : '글 색상',
'fontSize' : '글 크기',
'fontWeight_bold' : '굵게',
'fontWeight_italic' : '이탤릭',
'position' : '글 위치',
'left' : '왼쪽',
'center' : '가운데',
'right' : '오른쪽',
'top' : '위',
'bottom' : '아래',
'vertical' : '수직 정렬',
'horizontal' : '수평 정렬',
'textRotate' : '글 회전각',
'bringToFront' : '맨 앞으로 가져오기',
'bringForward' : '앞으로 가져오기',
'sendToBack' : '맨 뒤로 보내기',
'sendBackward' : '뒤로 보내기',
'property' : '속성',
'change' : '변경',
'A_Task' : '추상',
'A_HumanTask' : '사용자',
'A_WebServiceTask' : '서비스',
'A_ManualTask' : '수동',
'addEvent' : '이벤트 추가',
'message' : '메시지',
'timer' : '타이머',
'error' : '에러',
'conditional' : '조건부',
'delete' : '삭제',
'copy' : '복사',
'align' : '도형 정렬',
'align-top' : '위로정렬',
'align-left' : '왼쪽정렬',
'align-right' : '오른쪽정렬',
'align-bottom' : '아래로정렬',
'start' : '시작',
'start_message' : '메시지 시작',
'start_timer' : '타이머 시작',
'start_conditional' : '조건부 시작',
'intermediate' : '중간',
'intermediate_openMessage' : '열린 메시지 중간',
'intermediate_closeMessage' : '닫힌 메시지 중간',
'intermediate_timer' : '타이머 중간',
'intermediate_conditional' : '조건부 중간',
'end' : '종료',
'end_message' : '메시지 종료',
'end_process' : '프로세스 종료',
'gateway' : '베타적',
'parallel' : '병렬',
'inclusive' : '포괄적',
'format' : '형식'
};
OG.handler.EventHandler내에 존재하는 enableRootContextMenu에서부터 makeFormat function까지 한글로 되어 있는 부분을 수정한다