Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0
-
Fix Version/s: STABLE backlog
-
Component/s: HTML Editor
-
Labels:None
-
Affected Branches:MOODLE_20_STABLE
Description
We would need a new dragmath apple param - custom lang file url to which would be added current language name ?language=cs, we would use similar tricks like in tinymce strings.php file
benefits:
- fully translated moode UI
- more transalations for upstream
We should not imo modify dragmath sources ourselves because we would loose the digital signature. Maybe we could also wait for the result of GPL3 compatibility issue...
Petr,
Dragmath has a lang applet parameter and I believe Mauno anticipated your concern with:
<param name="language" value="<?php echo $lang; ?>" />
with $lang being set by the following code:
$lang = required_param('elanguage', PARAM_SAFEDIR);
if (file_exists("$CFG->dataroot/lang/$lang") or file_exists("$CFG->dirroot/lang/$lang")) {
$SESSION->lang = $lang;
} else if (file_exists("$CFG->dataroot/lang/{$lang}_utf8") or file_exists("$CFG->dirroot/lang/{$lang}_utf8")) {
$SESSION->lang = $lang.'_utf8';
}
The language files are available here:
http://dragmath.cvs.sourceforge.net/dragmath/ddma/lang/
per discussion here I believe:
http://www.dragmath.bham.ac.uk/doc/language.html
I think the only issue is whether there is variation on the text used to identify the language, and that could be resolved either by using an array in the dialog file or by simply creating a new language xml file that would provide the conversion....
Does that cover it?