# Translating theme names?

**URL:** https://forum.syncthing.net/t/translating-theme-names/16459
**Category:** UX
**Created:** [March 7, 2021, 12:56am UTC](https://forum.syncthing.net/t/translating-theme-names/16459 "2021-03-07T00:56:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tomasz86](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tomasz86](https://forum.syncthing.net/u/tomasz86)
#### Post date: [March 7, 2021, 12:56am UTC](https://forum.syncthing.net/t/translating-theme-names/16459/1 "2021-03-07T00:56:41Z")

</div>

I’m not sure if this is even possible, as it seems that the theme names are simply taken from their folder names, and they are not included in the HTML, but it would be nice to have the theme names also translated in the GUI. Right now, they are always in English regardless of the set language.

Not a big deal, but it does make the translation look a little “incomplete”.

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [March 7, 2021, 10:21am UTC](https://forum.syncthing.net/t/translating-theme-names/16459/2 "2021-03-07T10:21:37Z")

</div>

Could definitely be done (hardcoded in UI JS or some script generating something from the directory names), it’s just a question of someone caring enough to do something about it.

---

<div class="post-metadata">

### Author: ![tomasz86](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tomasz86](https://forum.syncthing.net/u/tomasz86)
#### Post date: [March 8, 2021, 3:16am UTC](https://forum.syncthing.net/t/translating-theme-names/16459/3 "2021-03-08T03:16:20Z")

</div>

> <https://github.com/syncthing/syncthing/pull/7441>

---

<div class="post-metadata">

### Author: ![acolomb](https://forum.syncthing.net/user_avatar/forum.syncthing.net/acolomb/32/11343_2.png) [@acolomb](https://forum.syncthing.net/u/acolomb)
#### Post date: [October 17, 2021, 7:27pm UTC](https://forum.syncthing.net/t/translating-theme-names/16459/4 "2021-10-17T19:27:17Z")

</div>

Another try:

> <https://github.com/syncthing/syncthing/pull/8006>
>
> \### Purpose
> 
> Supersedes #7441 with a different approach. Add each subdirector…y of the guiDir as a translation candidate string.
> The key is prefixed with "theme-name-" and the default English translation corresponds to the directory name turned to title case. Disable the automatic name mangling in the GUI JS code in favor of just looking up the translation. 
> 
> \### Testing
> 
> The second commit shows the effect of running \`go run build.go translate\` and manually adds a German translation for testing. \*\*It should be reverted before merging!\*\* Just let the automatic translation scripts handle it instead.
> 
> Verified to show translated names in German language setting and no visible change in the English setting.
> 
> \### To-Do
> 
> \* \[\] Check what happens for other languages in Transifex where there is no translation yet. Will it copy the key or just apply the English translation as a fallback?
> \* \[\] This will not work correctly for themes supplied in the \`STGUIASSETS\` directory. Maybe a check could be added if the translated string is still prefixed with \`theme-name-\` and fall back to the old capitalization code in JS?
