We would like to have the TinyMCE French language pack and other languages.
I've been told this should work with Drush 5 and the module make_post:
; Download TinyMCE
libraries[tinymce][download][type] = "file"
libraries[tinymce][download][url] = "http://github.com/downloads/tinymce/tinymce/tinymce_3.4.2.zip"
libraries[tinymce][directory_name] = "tinymce"
; TinyMCE French language pack (JS export)
; Needs Drush 5 and its sub-module make_post
libraries[tinymce_fr][download][type] = "post"
libraries[tinymce_fr][download][url] = "http://www.tinymce.com/i18n/index.php?ctrl=export&act=zip"
libraries[tinymce_fr][download][data] = "la[]=fr&la_export=js&pr_id=7&submitted=Download"
; Force filename so Drush Make unzips it
libraries[tinymce_fr][download][filename] = "tinymce_fr.zip"
; The two following lines are telling drush make to put the archive files in libraries/tinymce/jscripts/tiny_mce
libraries[tinymce_fr][destination] = "libraries/tinymce/jscripts"
libraries[tinymce_fr][directory_name] = "tiny_mce"
; Allow drush make to install librairies[tinymce_fr] inside a non empty directory
libraries[tinymce_fr][overwrite] = TRUE
If using Drush 4, replacing the line
libraries[tinymce_fr][download][type] = "post"
by these ones:
libraries[tinymce_fr][download][type] = "file"
libraries[tinymce_fr][download][request_type] = "post"
I tried with Drupal core 6 and 7, with Drush 4 and 5, with and without the module make_post, with type "file" and "post". Nothing works on my side. I receive an HTML file instead of a zip file, or I get one of these error messages:
tinymce downloaded from http://github.com/downloads/tinymce/tinymce/tinymce_3.4.2.zip. [ok]
missing schema [error]
Unable to download tinymce_fr from http://www.tinymce.com/i18n/index.php?ctrl=export&act=zip. [error]
With drush 5 and make_post:
tinymce downloaded from http://github.com/downloads/tinymce/tinymce/tinymce_3.4.2.zip. [ok]
unlink(/tmp/make_tmp_1345232248_502e9d7866d3e): No such file or directory filesystem.inc:121 [warning]
Useful documentation:
http://davidstosik.fr/telecharger-pack-langue-francaise-pour-tinymce-ave...
#1134326: Allow a DrushMakeProject to be installed in a non empty directory (Port to Drush 5)
http://drupal.org/project/make_post
http://www.tinymce.com/wiki.php/Language
http://www.tinymce.com/i18n/index.php?ctrl=lang&act=download&pr_id=1
Is anyone able to make it work ?
Comments
Comment #1
j0nathan CreditAttribution: j0nathan commentedComment #2
j0nathan CreditAttribution: j0nathan commentedComment #3
j0nathan CreditAttribution: j0nathan commentedComment #4
j0nathan CreditAttribution: j0nathan commentedComment #5
mvcthis is very annoying, but i managed to download the language pack using the following command:
wget 'http://www.tinymce.com/i18n3x/index.php?ctrl=export&act=zip&la[]=fr&pr_i...' -O tinymce_language_pack_fr.zip
can you try again without passing parameters by POST?
this should give you a zip file with the following structure:
so, you'll have to somehow move everything out of the tinymce_language_pack/ directory using the makefile.
i've just done this manually for the platform drupal-7-2013.03.25-dev because there is a bug in tinymce that breaks the editor completely when a language file is missing, and the wysiwyg authors say for now you have to download the language packs separately. see also the wysiwyg feature requests to enable better language handling:
#379182: TinyMCE stopped showing in languages other than English
#362318: Limit wysiwyg language selection to available languages
note: the maintainers are moving to an external service for managing translations for tinymce 4.x (currently in beta), so this method will change when 4.0 is released (and when that version is supported by wysiwyg.module: #1968318: Support for TinyMCE 4.x)
Comment #6
j0nathan CreditAttribution: j0nathan commentedI tried this in the makefile:
And I got "Unable to download":
Comment #7
mvcit looks like curl tries to interpret [ and ] in the url as a glob for some reason. this is possibly a bug. anyways, i was able to get this to work on the command line by encoding the url:
that works, but dumps the zip file into a file called index.php%3Fctrl%3Dexport%26act%3Dzip%26la%5B%5D%3Dfr%26pr_id%3D7%26la_export%3Djs
if possible, you might want to get drush make to drop the -O option and add -o tinymce_language_pack_fr.zip
Comment #8
j0nathan CreditAttribution: j0nathan commentedIt works with the URL encoded:
Comment #9
j0nathan CreditAttribution: j0nathan commentedThanks mvc.
Committed for Drupal 6 and 7 : http://drupalcode.org/project/kplatforms.git/commit/385e158