TinyMCE:LanguagePack
From Moxiecode Documentation Wiki
Contents |
[edit]
Using a Language Pack
tinyMCE.init({
... language : 'en', ...
});
Edit the html file tinymce\examples\simple.html
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Simple theme example</title>
<!-- TinyMCE -->
<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
language : "sv", // change language here
mode : "textareas",
theme : "simple"
});
</script>
<!-- /TinyMCE -->
</head>
[edit]
Download
The language pack download is seperated from TinyMCE, you can search for a language pack here.
[edit]
Unzip
After you have downloaded the package, unzip and upload it into the tinymce folder, make sure that the paths match up from the zip to the structure on your TinyMCE install.
[edit]
Upload
/tinymce/jscripts/tiny_mce/langs/ /tinymce/jscripts/tiny_mce/themes/advanced/langs/ /tinymce/jscripts/tiny_mce/plugins/<pluginname>/langs/
- The themes and langs folder, simply upload the folders into /tinymce-advanced
- The third one is a bit more complicated. Enter the plugins folder. It contains several folders. This contents of the plugins folder: upload it into the folder /tinymce-advanced/mce .
Tip To Synchronization
Use Meld, Kdiff on linux or WinMerge on win32.
[edit]
Creating a language pack
If you wish to submit a language pack, read more ES.JPS on how to make a language pack. After you have made the package, please upload it using the Sourceforge patch system.
