Fireball CMS - language variables in templates

  • Hello,


    I know that Fireball CMS is no longer under active development and I'm very sorry for them. I hope they will solve their legal problems. I really don't know where to post this since their site doesn't work anymore ;( . I'm doing a lot of tests on my local server and I'm trying to add new content to a page via the template/html option.



    The template doesn't have the multilingual option, so it's necessary to add the variables, for example:


    Smarty
    1. <h2>{lang}wcf.user.profile.menu.about{/lang}</h2>


    That displays About Me in English but when I switch to another language it doesn't change to the new language.


    I'd really appreciate your help :)


    Regards.

    My styles and plugins in the Plugin-Store.

    ♪Quiero robarle los minutos a las horas pa' que mis padres nunca se me pongan viejos...♫

  • I guess that you have to add About Me in every language you want to display. Otherwise the english term will be displayed.

    The phrase is already translated. It should display Sobre Mí in Spanish and About Me in English. The page displays the phrase in the language that is active the first time I visit the page but it doesn't change when I switch to the other language.

    My styles and plugins in the Plugin-Store.

    ♪Quiero robarle los minutos a las horas pa' que mis padres nunca se me pongan viejos...♫

  • The problem is, that the page doesn't compile every time you visit it.

    Hi, and how can I solve this problem?

    My styles and plugins in the Plugin-Store.

    ♪Quiero robarle los minutos a las horas pa' que mis padres nunca se me pongan viejos...♫

  • https://github.com/codeQuake/F…entType.class.php#L51-L55


    You could try replacing this:


    PHP
    1. if (!$content->compiled) {
    2. $compiled = WCF::getTPL()->getCompiler()->compileString('de.codequake.cms.content.type.template' . $content->contentID, $content->text);
    3. } else {
    4. $compiled = $content->compiled;
    5. }

    with this:

    PHP
    1. $compiled = WCF::getTPL()->getCompiler()->compileString('de.codequake.cms.content.type.template' . $content->contentID, $content->text);
  • That worked @MysteryCode, thank you a lot! ^^

    My styles and plugins in the Plugin-Store.

    ♪Quiero robarle los minutos a las horas pa' que mis padres nunca se me pongan viejos...♫