web icon indicating copy to clipboard operation
web copied to clipboard

Translations: Login UI not translations

Open hale177 opened this issue 7 months ago • 1 comments

Describe the bug

my local env install version 7.1.2 also login dashboard was not translated. I am using the Chinese language, and my browser is Chrome with Chinese as the default language.

However, the "username," "password," and "login" button remain in English instead of being translated into Chinese.

so ,How to set the login UI to Chinese language ?

Steps to reproduce

1. set ocis web default chinese language 
2. quit and Login again

Expected behavior

login UI display chinese language ( username / password / Log in)

Actual behavior

Image

Setup

- Web version: 
- oCIS version: 7.1.2 (docker deploy)
- browser: chrome 133.0.6943.53(default chinese language)

### Additional context

docker-compose yaml

services:
  ocis:
    image: owncloud/ocis:7.1.2
    container_name: ocis
    entrypoint: /bin/sh
    command: ['-c', 'ocis init --insecure yes || true && ocis server']
    ports:
      - 0.0.0.0:9200:9200/tcp
    volumes:
      - ./etc:/etc/ocis
      - ./data:/var/lib/ocis
      - /etc/localtime:/etc/localtime
    environment:
      OCIS_INSECURE: "true"
      PROXY_HTTP_ADDR: 0.0.0.0:9200
      OCIS_URL: https://192.168.6.240:9200
      OCIS_DEFAULT_LANGUAGE: zh
      PROXY_ENABLE_BASIC_AUTH: "true"
      IDM_ADMIN_PASSWORD: admin

No response

hale177 avatar May 24 '25 00:05 hale177

The login screen you see comes from the lico package. There is an i18n file according to Chinese but unfortunately there aren't any translations yet:

https://github.com/libregraph/lico/blob/master/identifier/i18n/zh-CN.po

Maybe you can create a pull request and help the maintainer to translate.

After this is done, a version bump of the package might be possible, so the translations would be available.

AlexAndBear avatar May 24 '25 09:05 AlexAndBear