Giter VIP home page Giter VIP logo

Comments (8)

dbarzin avatar dbarzin commented on May 29, 2024 1

Username and password are documented here : https://github.com/dbarzin/mercator/blob/master/INSTALL.md#start

image

Login page will be in English shortly.

from mercator.

jereviikari avatar jereviikari commented on May 29, 2024 1

Preferred language was sent properly:

Internet Protocol Version 4, Src: 127.0.0.1, Dst: 127.0.0.1
Transmission Control Protocol, Src Port: 39914, Dst Port: 8000, Seq: 1, Ack: 1, Len: 1172
Hypertext Transfer Protocol
    GET /login HTTP/1.1\r\n
    Host: 127.0.0.1:8000\r\n
    User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0\r\n
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8\r\n
    Accept-Language: en-US,en;q=0.5\r\n
    Accept-Encoding: gzip, deflate, br\r\n
    Connection: keep-alive\r\n

from mercator.

dbarzin avatar dbarzin commented on May 29, 2024

The login page uses the internationalization framework.
If you tell your browser that you prefer English to French you will get it in English.

from mercator.

jereviikari avatar jereviikari commented on May 29, 2024

The login page uses the internationalization framework. If you tell your browser that you prefer English to French you will get it in English.

I run it on Ubuntu 23.10:
docker pull ghcr.io/dbarzin/mercator:latest
docker run -it --rm --name mercator -e APP_ENV=development -p "127.0.0.1:8000":80 ghcr.io/dbarzin/mercator:latest

Browser is Firefox 119.0+build2-0ubuntu0.23.10.1~mt1
and preferred language: English (United States) [en-us]
Neither English [en] change the page language.

from mercator.

dbarzin avatar dbarzin commented on May 29, 2024

Strange, it is configured to fallback to English here https://github.com/dbarzin/mercator/blob/master/config/app.php
as described in the documentation of Laravel : https://laravel.com/docs/10.x/localization
I have to check.

from mercator.

dbarzin avatar dbarzin commented on May 29, 2024

Fixed here : https://github.com/dbarzin/mercator/pull/537/files

from mercator.

jereviikari avatar jereviikari commented on May 29, 2024

Fixed here : https://github.com/dbarzin/mercator/pull/537/files

The change is effective, but it only applies to the login page. After signing in, most of the elements are still in French, but a few of them are in English.

If the browser's preferred language is set to French, the login page consistently displays in English.

When the browser's preferred language is adjusted on-the-fly, the changes are not immediately reflected; a service restart is required to apply the language settings. This issue appears to be relatively minor. I tied only once.

Upon initial inspection, I was unable to locate a logout option. If one exists, it could benefit from being more prominently displayed, perhaps in the top-right corner.

While I have limited familiarity with Laravel, the configurations appear to be correct, based on the assistance provided by ChatGPT.

For a dependable language change, it is recommended to adjust the settings in Mercator's Preferences -> Options.

from mercator.

dbarzin avatar dbarzin commented on May 29, 2024

After login the application uses the user's preferred language accessible from Preferences -> Options.

The support for HTTP preferred language is no implemented. I am not sure it is useful for the moment.

The logout link is on the bottom left of the screen :
image

Thanks !

from mercator.

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.