Docker locales in LazyLibrarian

  • Hello All


    I try to change locale for a docker container. but I'm lost about the line in the faq :
    - ./.bashrc:/root/.bashrc:ro


    I try to put a files .bashrc with all the line in my appdata/LazyLibrarian and link it to /root/.bashrc:ro but that don't work.

    Can you help me ?


    The docker container is LazyLibrarian from linuxserver.io


    I find a link with a special chapter on the faq of lazylibrarian here :


    https://lazylibrarian.gitlab.io/faq/



    For French locale use this for your docker env (change all locale accordingly):
    lazylibrarian:
    image: linuxserver/lazylibrarian
    container_name: lazylibrarian
    environment:
    - PUID=1001
    - PGID=1001
    - TZ=Pacific/Noumea
    - PYTHONIOENCODING=utf-8
    - LANG=fr_FR.UTF-8
    - LANGUAGE=fr_FR:fr
    - LC_CTYPE="fr_FR.UTF-8"
    - LC_NUMERIC="fr_FR.UTF-8"
    - LC_TIME="fr_FR.UTF-8"
    - LC_COLLATE="fr_FR.UTF-8"
    - LC_MONETARY="fr_FR.UTF-8"
    - LC_MESSAGES="fr_FR.UTF-8"
    - LC_PAPER="fr_FR.UTF-8"
    - LC_NAME="fr_FR.UTF-8"
    - LC_ADDRESS="fr_FR.UTF-8"
    - LC_TELEPHONE="fr_FR.UTF-8"
    - LC_MEASUREMENT="fr_FR.UTF-8"
    - LC_IDENTIFICATION="fr_FR.UTF-8"
    volumes:
    - /home/lazylibrarian:/config
    - /NFS:/NFS
    - ./.bashrc:/root/.bashrc:ro
    ports:
    - 5299:5299
    restart: unless-stopped
    and put this in your docker bashrc file :
    export PYTHONIOENCODING=utf-8
    export LANG=fr_FR.UTF-8
    export LANGUAGE=fr_FR:fr
    export LC_CTYPE="fr_FR.UTF-8"
    export LC_NUMERIC="fr_FR.UTF-8"
    export LC_TIME="fr_FR.UTF-8"
    export LC_COLLATE="fr_FR.UTF-8"
    export LC_MONETARY="fr_FR.UTF-8"
    export LC_MESSAGES="fr_FR.UTF-8"
    export LC_PAPER="fr_FR.UTF-8"
    export LC_NAME="fr_FR.UTF-8"
    export LC_ADDRESS="fr_FR.UTF-8"
    export LC_TELEPHONE="fr_FR.UTF-8"
    export LC_MEASUREMENT="fr_FR.UTF-8"
    export LC_IDENTIFICATION="fr_FR.UTF-8"

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!