http://tinymce.moxiecode.com/download_i18n.php
Yeah i know this site, but where to copy xml file in conrete ? And which files i should change ?
I do execly like thathttp://wiki.moxiecode.com/index.php/TinyMCE:LanguagePack...
but still english language. In /langs catalogs are en.js files. Which files i have to change ?
I do execly like thathttp://wiki.moxiecode.com/index.php/TinyMCE:LanguagePack...
but still english language. In /langs catalogs are en.js files. Which files i have to change ?
No, thats the wrong url (v4).
Concrete5 5621 / 562RC2 uses tinyMCE v3:
http://www.tinymce.com/i18n3x/index.php?ctrl=lang&act=download&...
Concrete5 5621 / 562RC2 uses tinyMCE v3:
http://www.tinymce.com/i18n3x/index.php?ctrl=lang&act=download&...
Download the files from TinyMCE like you already have. Then, merge the various directories in
concrete/js/tiny_mce_309/langs
concrete/js/tiny_mce_309/themes
concrete/js/tiny_mce_309/plugins
Then, to actually get it to take, you'll need to add
"language=de" (or whatever language you're using) to the blocks/content/editor_init.php (look for the large JavaScript block toward the top.)
TinyMCE is such a pain to localize that we haven't really attempted it yet. This is the last major hurdle but editing the files above should really do it, although in the little bit of testing I had some troubles. Are you able to make it work?
concrete/js/tiny_mce_309/langs
concrete/js/tiny_mce_309/themes
concrete/js/tiny_mce_309/plugins
Then, to actually get it to take, you'll need to add
"language=de" (or whatever language you're using) to the blocks/content/editor_init.php (look for the large JavaScript block toward the top.)
TinyMCE is such a pain to localize that we haven't really attempted it yet. This is the last major hurdle but editing the files above should really do it, although in the little bit of testing I had some troubles. Are you able to make it work?
OK.
I've almost finished working on translating TinyMCE to Japanese.
So I will share my experience to others just in case if you want to work on translating TinyMCE.
What I ended up doing for 5.2.1 was....
1. Go to TinyMCE web site to download the language pack
http://tinymce.moxiecode.com/download_i18n.php...
2. I used the language files as just a reference since some of the translation didn't make sense to me.
3. Go to /concrete/js/tiny_mce_309/ folder and look for all 17 lang folders underneath it.
4. translate directly into en.js files. I did not create ja.js files (with a several reasons)
5. Under /themes/ folder, there are three themes and htm files... I've added
So all htm files.
They are now working ok. Took me about 5-6 hours.
I've almost finished working on translating TinyMCE to Japanese.
So I will share my experience to others just in case if you want to work on translating TinyMCE.
What I ended up doing for 5.2.1 was....
1. Go to TinyMCE web site to download the language pack
http://tinymce.moxiecode.com/download_i18n.php...
2. I used the language files as just a reference since some of the translation didn't make sense to me.
3. Go to /concrete/js/tiny_mce_309/ folder and look for all 17 lang folders underneath it.
4. translate directly into en.js files. I did not create ja.js files (with a several reasons)
5. Under /themes/ folder, there are three themes and htm files... I've added
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
So all htm files.
They are now working ok. Took me about 5-6 hours.
Thx katz515 for sharing this, it's very helpful.
wouldn't it be nice, if concrete5 ships with these language packs too and uses the gettext parameter to include the correct tinymce translation as well?
Maybe it already does it, but from reading what you wrote, it doesn't look like...
Maybe it already does it, but from reading what you wrote, it doesn't look like...
Currently, the c5's TinyMCE is not synced up with language locale settings. I think it's good now for the following reason.
Even if you do sync up..., if the user set up the different locate which TinyMCE language files do not exist, the messages will get messed up like {#save}, {#cancel} and stuff.
So unless we write the checking system that if the particular language does not exist, and then go read the English one.... which is a lot of work, I would prefer to ship the entire c5 package according to the language.
That's why I decided to put Japanese translation directly onto en.js files.
Of course, if we could put all languages files into one folder (including c5 mainframe, add-on, and this TinyMCE) to maintain, that would be ideal.
Even if you do sync up..., if the user set up the different locate which TinyMCE language files do not exist, the messages will get messed up like {#save}, {#cancel} and stuff.
So unless we write the checking system that if the particular language does not exist, and then go read the English one.... which is a lot of work, I would prefer to ship the entire c5 package according to the language.
That's why I decided to put Japanese translation directly onto en.js files.
Of course, if we could put all languages files into one folder (including c5 mainframe, add-on, and this TinyMCE) to maintain, that would be ideal.
Hey andrew, I’ve tried your suggestions but had no success at first. However, eventually I found out how it works and I’d like to correct your suggestions:
In my install (Concrete 5.3.3.1) there are two TinyMCE directories, one is called “tiny_mce” and the other one is called “tiny_mce_309”. The thing is, the 309 directory is an older version of TinyMCE than the directory without the number. What I had to do was to add the language files to the “tiny_mce” (without “309“) directory.
After adding the files there I have to edit the tinyMCE.init() function in /blocks/content/editor_config.php (not editor_init.php) just as explained in the TinyMCE docs athttp://wiki.moxiecode.com/index.php/TinyMCE:LanguagePack#Using_a__L...
Don’t know if it’s required but I refreshed the “Content” block in the admin panel (since I’ve changed its editor config file). Now it works perfectly. :-)
In my install (Concrete 5.3.3.1) there are two TinyMCE directories, one is called “tiny_mce” and the other one is called “tiny_mce_309”. The thing is, the 309 directory is an older version of TinyMCE than the directory without the number. What I had to do was to add the language files to the “tiny_mce” (without “309“) directory.
After adding the files there I have to edit the tinyMCE.init() function in /blocks/content/editor_config.php (not editor_init.php) just as explained in the TinyMCE docs athttp://wiki.moxiecode.com/index.php/TinyMCE:LanguagePack#Using_a__L...
Don’t know if it’s required but I refreshed the “Content” block in the admin panel (since I’ve changed its editor config file). Now it works perfectly. :-)
Hello!
I'm trying to translate TinyMCE to hungarian, with no success.
My Concrete5 version is 5.4.0.3
I've downloaded and copied the "hu" langpacks to langs, themes and plugins dir.
I've added language : "hu", into editor_config.php:
as mentioned at this page:
http://wiki.moxiecode.com/index.php/TinyMCE:LanguagePack#Using_a__L...
Could you send me editor_init.php and editor_config.php?
What i'm doing wrong?
THX
I'm trying to translate TinyMCE to hungarian, with no success.
My Concrete5 version is 5.4.0.3
I've downloaded and copied the "hu" langpacks to langs, themes and plugins dir.
I've added language : "hu", into editor_config.php:
<script language="javascript"> tinyMCE.init({ language : "hu", mode : "textareas", width: "100%", height: "<?php echo $textEditorHeight?>px", inlinepopups_skin : "concreteMCE", theme_concrete_buttons2_add : "spellchecker", relative_urls : false, document_base_url: '<?php echo BASE_URL . DIR_REL?>/', convert_urls: false,
as mentioned at this page:
http://wiki.moxiecode.com/index.php/TinyMCE:LanguagePack#Using_a__L...
Could you send me editor_init.php and editor_config.php?
What i'm doing wrong?
THX
.
Hello!
Could you tell me exactly, where to add the "language=x" in editor_init.php?
I'm trying to translate TinyMCE to hungarian..
Or could you tell me how can I do it?
Which is the best solution?
THX
Could you tell me exactly, where to add the "language=x" in editor_init.php?
I'm trying to translate TinyMCE to hungarian..
Or could you tell me how can I do it?
Which is the best solution?
THX
Hi
After hours of googlin' around the planet I found a solution.
Here's what I did, because none of the proposed solutions, neither here nore on the tinymce-site worked:
I made the traduction in german myself.
1. Add below code-line to [root]/blocks/content/editor_config.php
(Copy of [root]/concrete/blocks/content/editor_config.php)
and/or
etc.
2. Copy de code below
3. Create a file (editor) and paste the copied code
4. Save it as 'de.js' into [root]/concrete/js/tiny_mce/langs/
I don't know if the file is at the right place, but an override in [root]/js/tiny_mce/langs/ didn't work.
Also I'd really appreciate, if some other german speaking people could read my traduction and correct it, if necessary.
de.js:
Feel free to use this file for your own language.
If you open the tiny MCE you'll see, which commands aren't translated yet:
All none-translated strings appear like:.
Just add them to the above file like this:
(no comma at the last line)
After hours of googlin' around the planet I found a solution.
Here's what I did, because none of the proposed solutions, neither here nore on the tinymce-site worked:
I made the traduction in german myself.
1. Add below code-line to [root]/blocks/content/editor_config.php
(Copy of [root]/concrete/blocks/content/editor_config.php)
... <?php }elseif($txtEditorMode=='OFFICE'){ ?> language: "de", ...
and/or
... <?php }elseif($txtEditorMode=='ADVANCED'){ ?> language: "de", ...
etc.
2. Copy de code below
3. Create a file (editor) and paste the copied code
4. Save it as 'de.js' into [root]/concrete/js/tiny_mce/langs/
I don't know if the file is at the right place, but an override in [root]/js/tiny_mce/langs/ didn't work.
Also I'd really appreciate, if some other german speaking people could read my traduction and correct it, if necessary.
de.js:
tinymce.addI18n('de',{ "class_name": "CSS-Klasse", "not_set": "Nicht gesetzt", "cancel": "Abbrechen", "insert": "Einfügen", "apply": "Anwenden", "update": "Aktualisieren", "close": "Schliessen", "advanced.path": "Pfad:", "advanced.block": "Formate", "advanced.cut_desc": "Ausschneiden", "advanced.copy_desc": "Kopieren", "advanced.paste_desc": "Einfügen", "paste.paste_text_desc": "Text einfügen", "paste.paste_word_desc": "Wörter einfügen",
Viewing 15 lines of 392 lines. View entire code block.
Feel free to use this file for your own language.
If you open the tiny MCE you'll see, which commands aren't translated yet:
All none-translated strings appear like:
style.desc
Just add them to the above file like this:
"style.desc": "Stil",
Sry posted 2 many times
Sry posted 2 many times
sry posted 2 many times