Subversion Repositories wimsdev

Rev

Rev 11469 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

!!##should allow to have only one module by language

!!set class_lang=!defof class_lang in wimshome/log/classes/$wims_class/.def

!let moduclass_lang=$lang
!! 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
!if $wims_read_parm!=names.phtml and $wims_read_parm!=$empty
  !let script_file=!nospace $wims_read_parm
!else
  !let script_file=lang/names.phtml
!endif
!reset lang_exists
!read $(script_file).$moduclass_lang
!if $lang_exists!=yes
  !let moduclass_lang=en
  !read $(script_file).$moduclass_lang
!endif

!set module_language=$lang
!set tmp=!replace internal / by _ in $module/$(script_file)
!set tmp=!nospace $tmp
!read themes/_lang/$tmp.$lang
!read themes/$wims_theme/lang/$tmp.$lang

!!########