Commit ed69ae20 authored by sikeda's avatar sikeda
Browse files

[-feature] Preparing javaScript variable "lang" which may be used for i18n of...

[-feature] Preparing javaScript variable "lang" which may be used for i18n of js contents.  First, i18n'ed TinyMCE (appropriate lakguage pack must be installed).

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@8978 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent f7873cbe
......@@ -1386,7 +1386,7 @@ our @params = (
'gettext_id' =>
'Javascript excerpt that enables and configures the WYSIWYG HTML editor.',
'vhost' => '1',
'default' => 'tinyMCE.init({mode : "exact",elements : "body"});',
'default' => 'tinyMCE.init({mode:"exact",elements:"body",language:lang.toLowerCase()});',
'file' => 'wwsympa.conf',
},
{ 'name' => 'htmlarea_url',
......
<!-- $Id$ -->
<!-- DEVELOPMENT WARNING
//Don't add javascript to this file, except if you need to initialize variables using TT2 parsing.
//Use the src/etc/script/js/sympa.js file instead to write your scripts. -->
[%#
## DEVELOPMENT WARNING
## Don't add javascript to this file, except if you need to initialize
## variables using TT2 parsing.
## Use the src/etc/script/js/sympa.js file instead to write your scripts.
#%]
<script type="text/javascript">
// this script only contains variable initializations.
// Miscellaneous vars
var path_cgi = '[% path_cgi %]/';
var lang = '[% lang %]';
</script>
......@@ -58,10 +60,10 @@ var nomove={"TR":0,"CENTER":0,"B":0,"P":0,"U":0,"I":0,"DIV":0,"A":0,"FONT":0,"LI
<link rel="stylesheet" type="text/css" href="[% static_content_url %]/js/jquery.jqplot.css" />
<script type="text/javascript" src="[% static_content_url %]/js/sympa.js"></script>
[% IF use_html_editor %]
[% IF use_html_editor -%]
<script type="text/javascript" src="[% html_editor_url %]"></script>
<script type="text/javascript">
[% html_editor_init %]
</script>
[% END %]
[% END -%]
<!-- end javascript.tt2 -->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment