Rev 12555 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12555 | Rev 14309 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | !!set class_lang=!defof class_lang in wimshome/log/classes/$wims_class/.def |
3 | !!set class_lang=!defof class_lang in wimshome/log/classes/$wims_class/.def |
4 | 4 | ||
5 | !let moduclass_lang=$lang |
5 | !let moduclass_lang=$lang |
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 |
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 |
7 | !if $wims_read_parm!=names.phtml and $wims_read_parm!=$empty |
8 | !let |
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 |
|
9 | !else |
15 | !else |
10 | !let script_file=lang/names.phtml |
16 | !let script_file=lang/names.phtml |
- | 17 | !reset script_param |
|
11 | !endif |
18 | !endif |
12 | !reset lang_exists |
19 | !reset lang_exists |
13 | !read $(script_file).$moduclass_lang |
20 | !read $(script_file).$moduclass_lang $script_param |
14 | !if $lang_exists!=yes |
21 | !if $lang_exists!=yes |
15 | !let moduclass_lang=en |
22 | !let moduclass_lang=en |
16 | !read $(script_file).$moduclass_lang |
23 | !read $(script_file).$moduclass_lang $script_param |
17 | !endif |
24 | !endif |
18 | 25 | ||
19 | !set module_language=$lang |
26 | !set module_language=$lang |
20 | !set tmp=!replace internal / by _ in $module/$(script_file) |
27 | !set tmp=!replace internal / by _ in $module/$(script_file) |
21 | !set tmp=!nospace $tmp |
28 | !set tmp=!nospace $tmp |