# Wrong locale pt-BR

**URL:** <https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101>\
**Category:** Localization\
**Created:** [May 11, 2022, 12:13am UTC](https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101 "2022-05-11T00:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondex](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rondex](https://forum.collaboraonline.com/u/rondex)\
**Post date:** [May 11, 2022, 12:13am UTC](https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101/1 "2022-05-11T00:13:33Z")

</div>

Hello,

Using sheets I realized that locale was not correct. For example, were should be DD/MM/YYYY, it’s MM/DD/YYYY.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/4a3efcf1b735530339b5f713595a69ba48f63f18.png)

As you can see, default locale is correctly set do BR. I guess it’s something related do the input date for this specific locale.

---

<div class="post-metadata">

**Author:** ![bearon](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bearon](https://forum.collaboraonline.com/u/bearon)\
**Post date:** [May 12, 2022, 1:58am UTC](https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101/2 "2022-05-12T01:58:04Z")

</div>

Can you check what happens if you set your UI language to Portuguese (Brazil) in the file server you’re using Collabora Online/CODE with? The locale is tied to the UI language, and yours is English, regardless of what the dropdown says. If you have a packaged setup, you may need to install packages `collabora*pt-br`.

---

<div class="post-metadata">

**Author:** ![rondex](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rondex](https://forum.collaboraonline.com/u/rondex)\
**Post date:** [May 14, 2022, 1:15am UTC](https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101/3 "2022-05-14T01:15:37Z")

</div>

Hi,

Thanks for reply. Actually I’m using docker-compose to create a container with this options:

```auto
collabora:
    image: asandres/collabora:21.11.4.2.1
    restart: unless-stopped
    networks:
      - backend
    depends_on:
      - nginx-proxy
    environment:
      - password=XXXXX
      - username=XXXXX
      - lang=pt-br
      - DONT_GEN_SSL_CERT=true
      - extra_params=--o:ssl.enable=false --o:ssl.termination=true

```

Is option lang=pt-br the correct one? If not, can you please point me the right direction? My last option is to directly edit coolwsd.xml.

Thanks.

---

<div class="post-metadata">

**Author:** ![Petter](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@Petter](https://forum.collaboraonline.com/u/Petter)\
**Post date:** [March 6, 2023, 10:40am UTC](https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101/4 "2023-03-06T10:40:35Z")

</div>

Was you able to solve the problem using the docker image? I’m facing the same problem.

I’m creating a custom docker image, where I installed the `collaboraoffice*pt-br` but I’m missing something since the UI still in English.

```auto
FROM collabora/code:22.05.10.2.1
USER root
#Instala pacote de localização para o português da Collabora
RUN apt update
RUN apt install -y locales locales-all collaboraoffice*pt-br
ENV LC_ALL pt_BR.UTF-8
ENV LANG pt_BR.UTF-8
ENV LANGUAGE pt_BR.UTF-8

#Volta o usuário para o da imagem base da collabora/code
USER cool

```

EDIT: Just to clarify: The docker image `collabora/code:22.05.10.2.1` already come with all language package installed, so there is no need to perform an `apt install -y collaboraoffice*pt-br`.

EDIT2: In the browser, I can see the pt-BR localization files being downloaded, but the UI still in English. Maybe the Collabora Code is hardcoded to English only?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/b09fa7fbe62e78b871f86127856b250f37c1c8af.png)

**Solution:** Adding `lang=pt-br` to the URL solved the localization problem for me.
