english comments added

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-04-06 16:48:06 +00:00
parent 693e215bc1
commit 4d272994dd
219 changed files with 6407 additions and 8705 deletions

View file

@ -2,18 +2,17 @@
/**
* @class emoticon
* @author NHN (developers@xpressengine.com)
* @brief 이모티콘 이미지 연결 컴포넌트
* @brief Emoticons image connected components
**/
class emoticon extends EditorHandler {
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
// editor_sequence from the editor must attend mandatory wearing ....
var $editor_sequence = 0;
var $component_path = '';
var $emoticon_path = '';
/**
* @brief editor_sequence컴포넌트의 경로를 받음
* @brief editor_sequence and components out of the path
**/
function emoticon($editor_sequence, $component_path) {
$this->editor_sequence = $editor_sequence;
@ -22,7 +21,7 @@
}
/**
* @brief 이모티콘 파일 목록을 리턴
* @brief Returns a list of emoticons file
**/
function getEmoticonList() {
$emoticon = Context::get('emoticon');
@ -34,7 +33,7 @@
}
/**
* @brief 재귀적으로 이모티콘이 법한 파일들을 하위 디렉토리까지 전부 검색한다. 8,000개까지는 테스트 해봤는데 스택오버프로우를 일으킬지 어떨지는 모르겠음.(2007.9.6, 베니)
* @brief Likely to be recursively emoticons will search all the files to a subdirectory. 8000 gaekkajineun ran tests whether the stack and raise beef pro-overs and Unsure. (06/09/2007, Benny)
**/
function getEmoticons($path) {
$emoticon_path = sprintf("%s/%s", $this->emoticon_path, $path);
@ -51,10 +50,10 @@
}
/**
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
* @brief popup window to display in popup window request is to add content
**/
function getPopupContent() {
// 이모티콘 디렉토리 목록을 가져옴
// Bringing a list of emoticons directory
$emoticon_dirs = FileHandler::readDir($this->emoticon_path);
$emoticon_list = array();
if($emoticon_dirs) {
@ -63,12 +62,10 @@
}
}
Context::set('emoticon_list', $emoticon_list);
// 첫번째 이모티콘 디렉토리의 이미지 파일을 구함
// The first emoticon image files in the directory Wanted
$emoticons = $this->getEmoticons($emoticon_list[0]);
Context::set('emoticons', $emoticons);
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
// Pre-compiled source code to compile template return to
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
@ -77,7 +74,7 @@
}
/**
* @brief 이모티콘의 경로 문제 해결을 하기 위해 추가하였다. (2007.9.6 베니)
* @brief Emoticon of the path were added to solve the problem. (06/09/2007 Benny)
**/
function transHTML($xml_obj) {
$src = $xml_obj->attrs->src;

View file

@ -2,17 +2,16 @@
/**
* @class image_gallery
* @author NHN (developers@xpressengine.com)
* @brief 업로드된 이미지로 이미지갤러리를 만듬
* @brief Making images uploaded to the image gallery
**/
class image_gallery extends EditorHandler {
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
// editor_sequence from the editor must attend mandatory wearing ....
var $editor_sequence = 0;
var $component_path = '';
/**
* @brief editor_sequence컴포넌트의 경로를 받음
* @brief editor_sequence and components out of the path
**/
function image_gallery($editor_sequence, $component_path) {
$this->editor_sequence = $editor_sequence;
@ -20,10 +19,10 @@
}
/**
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
* @brief popup window to display in popup window request is to add content
**/
function getPopupContent() {
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
// Pre-compiled source code to compile template return to
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
@ -34,10 +33,10 @@
}
/**
* @brief 에디터 컴포넌트가 별도의 고유 코드를 이용한다면 코드를 html로 변경하여 주는 method
* @brief Editor of the components separately if you use a unique code to the html code for a method to change
*
* 이미지나 멀티미디어, 설문등 고유 코드가 필요한 에디터 컴포넌트는 고유코드를 내용에 추가하고 나서
* DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경
* Images and multimedia, seolmundeung unique code is required for the editor component added to its own code, and then
* DocumentModule:: transContent() of its components transHtml() method call to change the html code for your own
**/
function transHTML($xml_obj) {
$gallery_info->srl = rand(111111,999999);
@ -50,8 +49,7 @@
$images_list = $xml_obj->attrs->images_list;
$images_list = preg_replace('/\.(gif|jpg|jpeg|png) /i',".\\1\n",$images_list);
$gallery_info->images_list = explode("\n",trim($images_list));
// 만약 출력설정이 XML일 경우 이미지 목록만 출력하도록 코드 생성
// If you set the output to output the XML code generated a list of the image
if(Context::getResponseMethod() == 'XMLRPC') {
$output = '';
for($i=0;$i<count($gallery_info->images_list);$i++) {
@ -59,8 +57,7 @@
}
return $output;
}
// HTML 출력일 경우 템플릿 변환을 거쳐서 갤러리 출력 설정에 맞는 html코드를 생성하도록 함
// HTML gallery output, the output settings via the template for the conversion to generate the html code should
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$xml_obj->attrs->style,$matches);
$gallery_info->width = trim($matches[3][0]);
if(!$gallery_info->width) $gallery_info->width = 400;

View file

@ -2,17 +2,16 @@
/**
* @class image_link
* @author NHN (developers@xpressengine.com)
* @brief 이미지를 추가하거나 속성을 수정하는 컴포넌트
* @brief Add an image, or to modify the properties of components
**/
class image_link extends EditorHandler {
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
// editor_sequence from the editor must attend mandatory wearing ....
var $editor_sequence = 0;
var $component_path = '';
/**
* @brief editor_sequence컴포넌트의 경로를 받음
* @brief editor_sequence and components out of the path
**/
function image_link($editor_sequence, $component_path) {
$this->editor_sequence = $editor_sequence;
@ -20,10 +19,10 @@
}
/**
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
* @brief popup window to display in popup window request is to add content
**/
function getPopupContent() {
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
// Pre-compiled source code to compile template return to
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
@ -34,10 +33,10 @@
}
/**
* @brief 에디터 컴포넌트가 별도의 고유 코드를 이용한다면 코드를 html로 변경하여 주는 method
* @brief Editor of the components separately if you use a unique code to the html code for a method to change
*
* 이미지나 멀티미디어, 설문등 고유 코드가 필요한 에디터 컴포넌트는 고유코드를 내용에 추가하고 나서
* DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경
* Images and multimedia, seolmundeung unique code is required for the editor component added to its own code, and then
* DocumentModule:: transContent() of its components transHtml() method call to change the html code for your own
**/
function transHTML($xml_obj) {
$src = $xml_obj->attrs->src;
@ -60,7 +59,7 @@
$src = str_replace('&amp;amp;', '&amp;', $src);
if(!$alt) $alt = $src;
// 이미지 주소를 request uri가 포함된 주소로 변환 (rss출력, 등등을 위함)
// Image containing the address to the address conversion request uri (rss output, etc. purposes)
$temp_src = explode('/', $src);
if(substr($src, 0,2)=='./') $src = Context::getRequestUri().substr($src, 2);
elseif(substr($src , 0, 1)=='/') {

View file

@ -2,17 +2,16 @@
/**
* @class multimedia_link
* @author NHN (developers@xpressengine.com)
* @brief 본문에 멀티미디어 자료를 연결하는 컴포넌트
* @brief The components connected to the body of multimedia data
**/
class multimedia_link extends EditorHandler {
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
// editor_sequence from the editor must attend mandatory wearing ....
var $editor_sequence = 0;
var $component_path = '';
/**
* @brief editor_sequence컴포넌트의 경로를 받음
* @brief editor_sequence and components out of the path
**/
function multimedia_link($editor_sequence, $component_path) {
$this->editor_sequence = $editor_sequence;
@ -20,10 +19,10 @@
}
/**
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
* @brief popup window to display in popup window request is to add content
**/
function getPopupContent() {
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
// Pre-compiled source code to compile template return to
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
@ -34,10 +33,10 @@
}
/**
* @brief 에디터 컴포넌트가 별도의 고유 코드를 이용한다면 코드를 html로 변경하여 주는 method
* @brief Editor of the components separately if you use a unique code to the html code for a method to change
*
* 이미지나 멀티미디어, 설문등 고유 코드가 필요한 에디터 컴포넌트는 고유코드를 내용에 추가하고 나서
* DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경
* Images and multimedia, seolmundeung unique code is required for the editor component added to its own code, and then
* DocumentModule:: transContent() of its components transHtml() method call to change the html code for your own
**/
function transHTML($xml_obj) {
$src = $xml_obj->attrs->multimedia_src;

View file

@ -2,17 +2,16 @@
/**
* @class poll_maker
* @author NHN (developers@xpressengine.com)
* @brief 에디터에서 url링크하는 기능 제공.
* @brief Editor provides the ability to link to the url.
**/
class poll_maker extends EditorHandler {
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함....
// editor_sequence from the editor must attend mandatory wearing ....
var $editor_sequence = 0;
var $component_path = '';
/**
* @brief editor_sequence컴포넌트의 경로를 받음
* @brief editor_sequence and components out of the path
**/
function poll_maker($editor_sequence, $component_path) {
$this->editor_sequence = $editor_sequence;
@ -20,15 +19,14 @@
}
/**
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
* @brief popup window to display in popup window request is to add content
**/
function getPopupContent() {
// 설문조사 스킨을 구함
// Wanted Skins survey
$oModuleModel = &getModel('module');
$skin_list = $oModuleModel->getSkins("./modules/poll/");
Context::set('skin_list', $skin_list);
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
// Pre-compiled source code to compile template return to
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
@ -37,10 +35,10 @@
}
/**
* @brief 에디터 컴포넌트가 별도의 고유 코드를 이용한다면 코드를 html로 변경하여 주는 method
* @brief Editor of the components separately if you use a unique code to the html code for a method to change
*
* 이미지나 멀티미디어, 설문등 고유 코드가 필요한 에디터 컴포넌트는 고유코드를 내용에 추가하고 나서
* DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경
* Images and multimedia, seolmundeung unique code is required for the editor component added to its own code, and then
* DocumentModule:: transContent() of its components transHtml() method call to change the html code for your own
**/
function transHTML($xml_obj) {
$poll_srl = $xml_obj->attrs->poll_srl;
@ -51,8 +49,7 @@
$width = $matches[2];
if(!$width) $width = 400;
$style = sprintf('width:%dpx', $width);
// poll model 객체 생성해서 html 얻어와서 return
// poll model object creation to come get it return html
$oPollModel = &getModel('poll');
return $oPollModel->getPollHtml($poll_srl, $style, $skin);
}