Results 1 to 2 of 2

Thread: Language string

  1. #1
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default Language string

    Hello

    I have a problem and I don't understand what's going wrong.
    I have developped my first module which works, but I still have a problem that I can't resolve...

    The translation string for the name of the module is not load. It appears in the left column of the back-office and in the module list as the directory name of my extention.
    I have put the file in [my extention]/languages/??/modules.php

    Code:
    <?php
    // Back end modules
    $GLOBALS['TL_LANG']['MOD']['fb_comments'] = array('Comentarios', 'Recupera y referencia los comentarios.');
    
    // Front end modules
    $GLOBALS['TL_LANG']['FMD']['fb_comments'] = array('Comentarios', 'Este módulo publica los comentarios.');
     
    ?>
    I have compared with other extensions and I don't find where the problem is.

    Could anyone give me a clue ?
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

  2. #2
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default Re: Language string

    I found the problem ...

    I made a mistake in the name of the language file! I missed an S.

    Now it works perfectly.
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •