Giter VIP home page Giter VIP logo

Comments (10)

nilsteampassnet avatar nilsteampassnet commented on July 19, 2024

Hi

Hum ... I've not noticed that ... strange.
Does it keep the selected language during the session and lost it after?
Do you set the default language in the admin settings?

from teampass.

 avatar commented on July 19, 2024

Hi

Yeah, when I try to log on the default language is English US, I change it to french and it keeps the language during the session. But If we want to log on again , the language become english.

I set french in the admin settings.

from teampass.

patricklbs avatar patricklbs commented on July 19, 2024

I confirm having given the French the default language of English back after the first connection of a user, but left after the french chosen.

from teampass.

nilsteampassnet avatar nilsteampassnet commented on July 19, 2024

Can you tell me if option "Send an email to Admins on User log in" is enabled?
If yes, try disabling it. If it works after, you are experimenting an error with the SMTP credentials.

I'll try to improve that point.

from teampass.

patricklbs avatar patricklbs commented on July 19, 2024

The problème is the same when this option is enable or disable for me.
For exemple one user name "test" when i connect him the language who appear is
english then the french language default is enable.

from teampass.

nilsteampassnet avatar nilsteampassnet commented on July 19, 2024

Rah ... can't manage to reproduce.

My default language is "french".
I create a new user "user_test"
I connect myself with this new user
Language I see in TP is "french"

Hum I don't understand

from teampass.

patricklbs avatar patricklbs commented on July 19, 2024

Sorry, I reinstalled teampass, I log into admin, in the settings I change the default language in french, the interface is in English. I switch to French. I create a user mtest I log in the default language is English ...
Wamp server test.

from teampass.

nilsteampassnet avatar nilsteampassnet commented on July 19, 2024

Can you please try the next thing.
Open file index.php

Find:
}else {
if (isset($_POST['language'])) {
$_SESSION['user_language'] = filter_var($_POST['language'], FILTER_SANITIZE_STRING);
}
}

Replace by:
}else {
if (isset($_POST['language'])) {
$_SESSION['user_language'] = filter_var($_POST['language'], FILTER_SANITIZE_STRING);
}else if (isset($_SESSION['settings']['default_language'])) {
$_SESSION['user_language'] = $_SESSION['settings']['default_language'];
}
}

from teampass.

patricklbs avatar patricklbs commented on July 19, 2024

It works with this code. But the login page is always English.

Thank you.

from teampass.

nilsteampassnet avatar nilsteampassnet commented on July 19, 2024

Ok great.

Yes the login page is in english ... I can improve that.

from teampass.

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.