Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#260 Add language folder for theme

XOOPS_2.0.x
open
Laurent JEN
Core (214)
5
2012-09-25
2007-08-04
domecc
No

We often need theme's custom language. If xoops's theme has its own language folder, it would be great.

Discussion

  • Laurent JEN
    Laurent JEN
    2007-08-10

    Logged In: YES
    user_id=1528770
    Originator: NO

    in file include/common.php

    add this line, just before include site-wide lang file

    // #################### Include theme lang file ##################
    if ( file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/theme.php") ) {
    include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/theme.php";
    } else {
    include_once XOOPS_ROOT_PATH."/language/english/theme.php";
    }
    // #################### End include theme lang file ##################

    use in you template theme
    define("THEME_MESSAGE", "View messages");

    <{$smarty.const.THEME_MESSAGE}>

     
  • Laurent JEN
    Laurent JEN
    2007-11-01

    Logged In: YES
    user_id=1528770
    Originator: NO

    improved on xoops 2.0.18 rev 1135

     
  • Sorry for active this old feature request,
    but what about with 2.3 version?