53 lines
2.4 KiB
HTML
Executable file
53 lines
2.4 KiB
HTML
Executable file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<title>Creating language packs</title>
|
|
<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">Creating language packs</span></td>
|
|
<td align="right"><a href="index.htm">TOC</a></td>
|
|
</tr>
|
|
</table>
|
|
<hr noshade>
|
|
<br>
|
|
Language packs are simply JavaScript name/value arrays placed in the "<FN Code>.js"
|
|
files in the "lang" direcotry. Remember to allways use the "lang_"
|
|
prefix for these value names so that they don't override other variables in the
|
|
templates. The example below shows how the cut, copy and paste texts are lang packed. Notice there are two kinds of language packs one is the general one shared by all themes these are located in the "jscripts/tiny_mce/langs" directory the other optional one is theme specific language packs these are contained in "jscripts/tiny_mce/themes/<some theme>/langs".<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>
|
|
<p>When translating TinyMCE, these are the files that currently needs to be translated:<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>
|
|
Notice some language variables may include a name/url of a gif image or simmilar,
|
|
for example the button for bold has a "F" character in the Swedish
|
|
language pack.</p>
|
|
<hr noshade>
|
|
<table width="100%" border="0" cellpadding="1" cellspacing="3" class="pagefooter">
|
|
<tr>
|
|
<td>Go to: <a href="index.htm">Table of contents</a></td>
|
|
<td align="right"><a href="#">Top</a></td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
</body>
|
|
</html>
|