Subversion Repositories wimsdev

Rev

Rev 9309 | Rev 12555 | Go to most recent revision | 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
8
 !let script_file=!nospace $wims_read_parm
9
!else
10
 !let script_file=lang/names.phtml
11
!endif
12
!reset lang_exists
13
!read $(script_file).$moduclass_lang
2368 bpr 14
!if $lang_exists!=yes
15
   !let moduclass_lang=en
5191 guerimand 16
   !read $(script_file).$moduclass_lang
2368 bpr 17
!endif
2156 bpr 18
 
2368 bpr 19
!set module_language=$lang
9309 bpr 20
!set tmp=!replace internal / by _ in $module/$(script_file)
21
!set tmp=!nospace $tmp
11469 bpr 22
!read themes/_lang/$tmp.$lang
9309 bpr 23
!read themes/$wims_theme/lang/$tmp.$lang
2123 bpr 24
 
2173 bpr 25
!!########