Tutorial Modification the login panel for other languages

Discussion in 'Subrion Open Source CMS Core' started by Chaffinch, Nov 5, 2017.

  1. Chaffinch

    Chaffinch New Member

    Modification the login panel for other languages


    Before modification:
    http://subrion41520.krynica-zdroj.eu/log_panel_en.png


    Edit file located in: ./admin/templates/default/login.tpl
    in line: 76 change code snippet from 'login' to 'login_btn'
    <input type="submit" class="btn btn-primary" tabindex="5" value="{lang key='login'}">

    <input type="submit" class="btn btn-primary" tabindex="5" value="{lang key='login_btn'}">

    Save changes.
    After modification:
    http://subrion41520.krynica-zdroj.eu/log_panel.png

    Now log in to your database directly.
    Run the query:

    INSERT INTO `sbr415_language` (`id`, `key`, `original`, `value`, `category`, `code`, `module`) VALUES
    (NULL, 'login_btn', 'Login', 'Login', 'admin', 'en', ''),
    (NULL, 'login_btn', 'Login', 'Zaloguj', 'admin', 'pl', '');

    Warning:
    In place 'Zaloguj' enter your phrase
    In place 'pl' enter your phrase

    The final result:
    http://subrion41520.krynica-zdroj.eu/final_panel.png
    I get the correct phrase :)
    I hope it will be useful

Share This Page