mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-02 04:43:46 +01:00
17710c20ab
see tinymce.moxiecode.com/ for more info
48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html>
|
|
<head>
|
|
<title>Customization - Creating a language pack</title>
|
|
<link href="css/screen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div class="header">
|
|
<h1>Customization - Creating a language pack</h1>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<h2>Making language packs</h2>
|
|
<p>Language packs are simply JavaScript name/value arrays placed in the "<ISO-639-2 code>.js" files in the "lang" directory. 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".
|
|
</p>
|
|
<p>
|
|
<div class="example">
|
|
<pre>
|
|
tinyMCELang['lang_cut_desc'] = 'Cut (Ctrl+X)';
|
|
tinyMCELang['lang_copy_desc'] = 'Copy (Ctrl+C)';
|
|
tinyMCELang['lang_paste_desc'] = 'Paste (Ctrl+P)';
|
|
</pre>
|
|
</div>
|
|
</p>
|
|
|
|
<p><h3>Files to edit</h3>
|
|
When translating TinyMCE, these are the files that currently needs to be translated:
|
|
</p>
|
|
<p>
|
|
/tinymce/jscripts/tiny_mce/langs/en.js<br />
|
|
/tinymce/jscripts/tiny_mce/plugins/<plugin>/langs/en.js<br />
|
|
/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js<br />
|
|
</p>
|
|
<p>
|
|
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>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<div class="helpindexlink"><a href="index.html">Index</a></div>
|
|
<div class="copyright">Copyright © 2005 Moxiecode Systems AB</div>
|
|
<br style="clear: both" />
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|