]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19184 moodle specific tinymce localization
authorskodak <skodak>
Sun, 17 May 2009 08:48:42 +0000 (08:48 +0000)
committerskodak <skodak>
Sun, 17 May 2009 08:48:42 +0000 (08:48 +0000)
lib/editor/tinymce/extra/tools/.cvsignore [new file with mode: 0644]
lib/editor/tinymce/extra/tools/compress.sh
lib/editor/tinymce/extra/tools/get_langs.sh [new file with mode: 0644]
lib/editor/tinymce/readme_moodle.txt

diff --git a/lib/editor/tinymce/extra/tools/.cvsignore b/lib/editor/tinymce/extra/tools/.cvsignore
new file mode 100644 (file)
index 0000000..8f9d645
--- /dev/null
@@ -0,0 +1,2 @@
+yuicompressor.jar
+temp
index bc3f1a8580531f70a045767f52cc7b2fc46e2c12..dbdbfea6f31a07c71c8737d96d9648f42394f650 100644 (file)
@@ -1,2 +1,3 @@
+#!/bin/bash
 java -jar yuicompressor.jar --line-break 1000 ../../tiny_mce_src.js -o ../../tiny_mce.js
 java -jar yuicompressor.jar --line-break 1000 ../../Popup.js -o ../../tiny_mce_popup.js
\ No newline at end of file
diff --git a/lib/editor/tinymce/extra/tools/get_langs.sh b/lib/editor/tinymce/extra/tools/get_langs.sh
new file mode 100644 (file)
index 0000000..2fc0cf9
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+for lang in 'sq' 'ar' 'az' 'be' 'bn' 'nb' 'bs' 'br' 'bg' 'ca' 'ch' 'zh' 'hr' 'cs' 'da' 'dv' 'nl' 'en' 'et' 'fi' 'fr' 'gl' 'de' 'el' 'gu' 'he' 'hu' 'is' 'id' 'ia' 'it' 'ja' 'ko' 'lv' 'lt' 'mk' 'ms' 'mn' 'se' 'no' 'nn' 'fa' 'pl' 'pt' 'ro' 'ru' 'sc' 'sr' 'ii' 'si' 'sk' 'sl' 'es' 'sv' 'tt' 'th' 'tr' 'tw' 'uk' 'cy' 'vi'  
+do
+ wget "http://services.moxiecode.com/i18n/download.aspx?format=xml&code=$lang&product=tinymce" -O temp/$lang.xml
+done
\ No newline at end of file
index ce921aa6654b67efee16528e8212ee371f507f9e..a32d11f87e52e791268b55da872637f530cd7fea 100644 (file)
@@ -10,7 +10,7 @@ Upgrade procedure:
  3/ copy tinymce/jscripts/tiny_mce/classes/Popup.js to Popup.js
  4/ apply plugins/media/* (extra/tinymce_plugin_media.patch) - MDL-16650
  5/ apply strings patch
- 6/ compress modified js files using yuicompressor.jar from dev package, use shell file extra/tools/compress.sh
+ 6/ copy yuicompressor.jar from dev package into extra/tools/, use shell script extra/tools/compress.sh to compress modified files
  7/ download all TinyMCE lang files and update moodle lang string files
  8/ rebuild string files