# Bug OP-15141 - Can't update from 13.1 - main language pt-BR

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15141

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.2.0 |
| Observed in versions | 13.1.0 |
| Sprint | 14.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Christophe Bliard |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

Main installation is using pt-BR languague, when I try to update, give the error below, seems to be a buggy where the argument should be pt-br, but in the system is set as pt only

### Steps to reproduce

1.  install OpenProject 13.1 on ubuntu Jammy
    
    1.  `sudo wget -O /etc/apt/sources.list.d/openproject.list \`  [`https://dl.packager.io/srv/opf/openproject/release/13.1/installer/ubuntu/22.04.repo`](https://dl.packager.io/srv/opf/openproject/release/13.1/installer/ubuntu/22.04.repo)

2.  run `openproject configure` and make sure to select "**pt Portuguese**" as language

3.  Switch to the OpenProject 14.1 repository
    
    1.  `sudo wget -O /etc/apt/sources.list.d/openproject.list` [`https://dl.packager.io/srv/opf/openproject/stable/14/installer/ubuntu/22.04.repo`](https://dl.packager.io/srv/opf/openproject/stable/14/installer/ubuntu/22.04.repo)

4.  run [upgrade commands](https://www.openproject.org/docs/installation-and-operations/operation/upgrading/#package-based-installation-debrpm):  
    `sudo apt-get update`  
    `sudo apt-get install --only-upgrade openproject`  
    `sudo openproject configure`

### What is the buggy behavior?

*error message:*

*rake aborted\!*  
*ArgumentError: Value for default\_language must be one of af, ar, az, be, bg, ca, ckb-IR, cs, da, de, el, en, eo, es, et, eu, fa, fi, fil, fr, he, hi, hr, hu, id, it, ja, ka, kk, ko, lt, lv, mn, ms, ne, nl, no, pl, pt-BR, pt-PT, ro, ru, rw, si, sk, sl, sr, sv, th, tr, uk, uz, vi, zh-CN, zh-TW but is pt (ArgumentError)*

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  Upgrade to the newer version

### 

### 

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Hosted cloud edition

- [x] Packaged installation
  
    - What distribution? Ubuntu 22.04

- [ ] Docker All-in-one container

- [ ] Docker-compose installation

- [ ] Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

*OpenProject default languague: pt-BR*
