git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-12 03:59:52 +00:00
commit 8326004cb2
2773 changed files with 91485 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<widget version="0.1">
<title xml:lang="ko">언어 선택</title>
<title xml:lang="jp">言語選択</title>
<title xml:lang="zh-CN">多国语言切换</title>
<title xml:lang="en">Language Selection</title>
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">zero</name>
<name xml:lang="jp">Zero</name>
<name xml:lang="zh-CN">zero</name>
<name xml:lang="en">zero</name>
<description xml:lang="ko">사용자의 접속언어를 변경할 수 있는 select폼을 출력합니다.</description>
<description xml:lang="jp">言語を変更することができるセレクトselectフォームを表示します。</description>
<description xml:lang="zh-CN">可以实现多国语言相互切换。</description>
<description xml:lang="en">This widget displays a select form for change of users' language.</description>
</author>
<extra_vars />
</widget>

View file

@ -0,0 +1,27 @@
<?php
/**
* @class language_select
* @author zero (zero@zeroboard.com)
* @brief 언어선택기
* @version 0.1
**/
class language_select extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
*
* ./widgets/위젯/conf/info.xml 선언한 extra_vars를 args로 받는다
* 결과를 만든후 print가 아니라 return 해주어야 한다
**/
function proc($args) {
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
$tpl_file = 'language_select';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>

View file

@ -0,0 +1,10 @@
<div class="tCenter">
<select name="lang_type" onchange="doChangeLangType(this)">
<option value="{$lang_type}">{$lang_type}</option>
<!--@foreach($lang_supported as $val)-->
<!--@if($val != $lang_type)-->
<option value="{$val}">{$val}</option>
<!--@end-->
<!--@end-->
</select>
</div>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<skin>
<title xml:lang="ko">언어 출력</title>
<title xml:lang="jp">言語選択</title>
<title xml:lang="zh-CN">多国语言切换</title>
<title xml:lang="en">Display Language</title>
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">zero</name>
<name xml:lang="jp">Zero</name>
<name xml:lang="zh-CN">zero</name>
<name xml:lang="en">zero</name>
<description xml:lang="ko">스킨 기능이 없습니다</description>
<description xml:lang="jp">スキン機能がありません。</description>
<description xml:lang="zh-CN">不支持皮肤。</description>
<description xml:lang="en">There is no skin function</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본</title>
<title xml:lang="jp">デフォルト</title>
<title xml:lang="zh-CN">默认</title>
<title xml:lang="en">default</title>
</color>
</colorset>
</skin>