Giter Site home page Giter Site logo

Comments (5)

SchlesserClaude avatar SchlesserClaude commented on September 26, 2024

The extension includes two languages files, located here:
https://github.com/oneall/social-login-phpbb/tree/master/%5B%20%3E%3D%203.1.%20%5D%20EXTENSION/oneall/sociallogin/language

Are you using a different language? Please try renaming "en" to the code of the language that you are using.

from social-login-phpbb.

 avatar commented on September 26, 2024

I'm using the language British English inside the administration panel in phpbb

from social-login-phpbb.

fade2gray avatar fade2gray commented on September 26, 2024

I got around this by making the following change to oneall/sociallogin/acp/sociallogin_acp_module.php.

Find...

    public function admin_main ()
    {
        global $db, $user, $auth, $template, $config, $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix;

On a new line after - add...

        // Add the language file.
        $user->add_lang_ext ('oneall/sociallogin', 'backend');

What it doesn't fix for me is...

from social-login-phpbb.

 avatar commented on September 26, 2024

I've managed to get the language using a slightly different approach.

Edit oneall/sociallogin/event/listener.php

Find...
        /**
         * Add Social Login language file.
         */
        public function add_language ($event)
        {
                $lang_set_ext = $event['lang_set_ext'];
                $lang_set_ext[] = array(
                        'ext_name' => 'oneall/sociallogin',
                        'lang_set' => 'frontend',
                );
                $event['lang_set_ext'] = $lang_set_ext;
        }
Replace with...
        /**
         * Add Social Login language file.
         */
        public function add_language ($event)
        {
                $lang_set_ext = $event['lang_set_ext'];
                $lang_set_ext[] = array(
                        'ext_name' => 'oneall/sociallogin',
                        'lang_set' => 'frontend',
                );
                $lang_set_ext[] = array(
                        'ext_name' => 'oneall/sociallogin',
                        'lang_set' => 'backend',
                );
                $event['lang_set_ext'] = $lang_set_ext;
        }

from social-login-phpbb.

SchlesserClaude avatar SchlesserClaude commented on September 26, 2024

Thank you very much for the solutions! I have now added them to the repository.

from social-login-phpbb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.