# Translations not working in release

**URL:** <https://discourse.cataclysmdda.org/t/translations-not-working-in-release/26944>\
**Category:** Translations Team Discussion\
**Created:** [August 31, 2021, 3:12pm UTC](https://discourse.cataclysmdda.org/t/translations-not-working-in-release/26944 "2021-08-31T15:12:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paco](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@paco](https://discourse.cataclysmdda.org/u/paco)\
**Post date:** [August 31, 2021, 3:12pm UTC](https://discourse.cataclysmdda.org/t/translations-not-working-in-release/26944/1 "2021-08-31T15:12:09Z")

</div>

Last week, i couldn’t test translations and i though that was a puntual problem. Today neither. Only appears english and i couldn’t change it. Maybe is a bug or maybe is some changes or maybe is the version that i download. I am not sure.

Can somebody check if it is a problem mine or a common in the new releases?.

---

<div class="post-metadata">

**Author:** ![Noctivagante](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctivagante/32/365_2.png) [@Noctivagante](https://discourse.cataclysmdda.org/u/Noctivagante)\
**Post date:** [August 31, 2021, 3:17pm UTC](https://discourse.cataclysmdda.org/t/translations-not-working-in-release/26944/2 "2021-08-31T15:17:30Z")

</div>

(Justo estaba creando un post sobre lo mismo… lo escribo acá)

In the last experimental (2021-08-31-0920) and also in the previous one I try (2021-08-30-2011) there’s only 2 options in language selection, English and System Language.  
In my case, my system it’s in Spanish (Spain) but I use Spanish (Argentina) translation.  
Did someone remove the option to select any language? Or it’s just a bug?

---

<div class="post-metadata">

**Author:** ![Noctivagante](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctivagante/32/365_2.png) [@Noctivagante](https://discourse.cataclysmdda.org/u/Noctivagante)\
**Post date:** [September 1, 2021, 5:53am UTC](https://discourse.cataclysmdda.org/t/translations-not-working-in-release/26944/3 "2021-09-01T05:53:07Z")

</div>

There is already a PR fixing this problem.

> <https://github.com/CleverRaven/Cataclysm-DDA/pull/51219>
>
> \#### Summary
> Bugfixes "Fix broken list of languages available"
> 
> \#### Purpose …of change
> The list of available languages was broken after the recent file-system change merge. 7f713d6a3b9ea96e5b331e1715f32791820573ef is the last good commit. 95975cb10dd7e97f6328caa831e0d17762221d0e is the first commit exhibits the problem.
> 
> Only two options, "English" and "System Language", are available for selection. All other languages are missing:
> 
> \<img width="1072" src="https://user-images.githubusercontent.com/21075502/131271823-dd93382b-0adb-42da-9017-4db97c4099de.png"\>
> 
> \#### Describe the solution
> There is an off-by-one error in extracted language code from directory paths:
> \<img width="597" src="https://user-images.githubusercontent.com/21075502/131271417-50e0bb23-0451-4066-980c-8e5fc0b51263.png"\>
> 
> Change the language code matching algorithm to only match the \`/LC\_MESSAGES\` suffix so it is now independent of parent directory structure.
> 
> \#### Describe alternatives you've considered
> 
> 
> 
> \#### Testing
> The 25 supported languages show up again:
> 
> \<img width="1072" src="https://user-images.githubusercontent.com/21075502/131272081-8edb306a-2577-4eba-bad1-115616eb9534.png"\>
> 
> \#### Additional context
