We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1169
    • 312 Posts
    Should I be able to add an entry to register.inc.php
    $_lang['register.address'] = 'Address';

    or
    $_lang['register.anything'] = 'Anything I want here';


    and should this then show in core/cashe/lexicon/en/login/register.cache.php when the register snippet is calledand then use [[%register.anything]] in a register form

    Thanks
    Allan
      DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
      • 3749
      • 24,544 Posts
      That will work if you make the change before the package is built. The language strings are installed when the package is installed. The language files themselves are not used when the snippet executes.

      You could also add your extra strings manually in System | Lexicon Management (in the login namespace, register topic) or you could check for them and add them in code the first time your snippet runs if they’re not there.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 1169
        • 312 Posts
        Thanks BobRay

        I did that after finding answer in docs.

        Working OK.

        This Lexicon seemed daunting at first but as you get into it it gets easier and you wonder what was I thinking.
        Likeing Revo more and more.

        Thought I posted this message this morning.

        Regards
        Allan
          DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31