webgui/www/extras/tinymce/docs/zh_cn/langs.htm
2005-02-12 14:55:11 +00:00

49 lines
2.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
<title>创建语言包</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellpadding="1" cellspacing="3" class="pageheader">
<tr>
<td><span class="title">创建语言包</span></td>
<td align="right"><a href="index.htm">内容提要</a></td>
</tr>
</table>
<hr noshade>
<br>
语言包只是简单的将&quot;lang&quot;目录下&quot;&lt;FN Code&gt;.js&quot;文件中的JavaScript<U>名称-值</U>数组对替换而已。记得在这些名称中一定要使用&quot;lang_&quot;前缀,以免其跟模板中的其他变量冲突。<BR>
以下例子表明了cut, copy和paste的文字语言是如何被处理的<BR>
<br>
<table border="0" cellspacing="3" cellpadding="2" class="sample">
<tr>
<td class="samplecontent">tinyMCELang['<font color="#CC0000">lang</font>_cut_desc']
= 'Cut (Ctrl+X)';<br>
tinyMCELang['<font color="#CC0000">lang</font>_copy_desc'] = 'Copy (Ctrl+C)';<br>
tinyMCELang['<font color="#CC0000">lang</font>_paste_desc'] = 'Paste (Ctrl+P)';</td>
</tr>
</table>
<BR>注意有两种类型的语言包,一种是被全部主题所共享的全局语言,它在&quot;jscripts/tiny_mce/langs&quot;目录中;<BR>另外一种是某主题特定语言,一般放在&quot;jscripts/tiny_mce/themes/&lt;some theme&gt;/langs&quot;目录中。<br>
<p>当翻译TinyMCE时以下是目前所需要翻译的文件<br>
<br>
tinymce/jscripts/tiny_mce/langs/uk.js<br>
tinymce/jscripts/tiny_mce/plugins/emotions/langs/uk.js<br>
tinymce/jscripts/tiny_mce/plugins/iespell/langs/uk.js<br>
tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/uk.js<br>
tinymce/jscripts/tiny_mce/plugins/preview/langs/uk.js<br>
tinymce/jscripts/tiny_mce/themes/advanced/langs/uk.js<br>
<br>注意某些语言变量可能会包含gif图片的name/url或类似例如在瑞典语言包中粗体的按钮有一个&quot;F&quot;字符。</p>
<hr noshade>
<table width="100%" border="0" cellpadding="1" cellspacing="3" class="pagefooter">
<tr>
<td>返回&nbsp;<a href="index.htm">内容提要</a></td>
<td align="right"><a href="#">顶部</a></td>
</tr>
</table>
<br>
</body>
</html>