Rev 12555 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1629 | bpr | 1 | !!##should allow to have only one module by language |
2 | |||
2368 | bpr | 3 | !!set class_lang=!defof class_lang in wimshome/log/classes/$wims_class/.def |
2173 | bpr | 4 | |
2368 | bpr | 5 | !let moduclass_lang=$lang |
5191 | guerimand | 6 | !! this test must be keeped for background compatibility since modification of all modules use script langclass by call langclass names.phtml instead of lang/names.phtml |
7 | !if $wims_read_parm!=names.phtml and $wims_read_parm!=$empty |
||
14309 | guerimand | 8 | !let script_file=!word 1 of $wims_read_parm |
9 | !let nb_=!wordcnt $wims_read_parm |
||
10 | !if $nb_>1 |
||
11 | !let script_param=!word 2 to -1 of $wims_read_parm |
||
12 | !else |
||
13 | !reset script_param |
||
14 | !endif |
||
5191 | guerimand | 15 | !else |
12555 | bpr | 16 | !let script_file=lang/names.phtml |
14309 | guerimand | 17 | !reset script_param |
5191 | guerimand | 18 | !endif |
19 | !reset lang_exists |
||
14309 | guerimand | 20 | !read $(script_file).$moduclass_lang $script_param |
2368 | bpr | 21 | !if $lang_exists!=yes |
12555 | bpr | 22 | !let moduclass_lang=en |
14309 | guerimand | 23 | !read $(script_file).$moduclass_lang $script_param |
2368 | bpr | 24 | !endif |
2156 | bpr | 25 | |
2368 | bpr | 26 | !set module_language=$lang |
9309 | bpr | 27 | !set tmp=!replace internal / by _ in $module/$(script_file) |
28 | !set tmp=!nospace $tmp |
||
11469 | bpr | 29 | !read themes/_lang/$tmp.$lang |
9309 | bpr | 30 | !read themes/$wims_theme/lang/$tmp.$lang |
2123 | bpr | 31 | |
2173 | bpr | 32 | !!######## |