Skip to content

gui: Allow to translate theme names - #7441

Closed
tomasz1986 wants to merge 1 commit into
syncthing:mainfrom
tomasz1986:tomasz86-gui-translatethemenames
Closed

tomasz1986 wants to merge 1 commit into
syncthing:mainfrom
tomasz1986:tomasz86-gui-translatethemenames

Conversation

@tomasz1986

Copy link
Copy Markdown
Member

Allow to translate theme names, so that they match the GUI language
rather than being always displayed in English, as it is the case right
now.

Signed-off-by: Tomasz Wilczyński [email protected]

Allow to translate theme names, so that they match the GUI language
rather than being always displayed in English, as it is the case right
now.

Signed-off-by: Tomasz Wilczyński <[email protected]>
@tomasz1986

Copy link
Copy Markdown
Member Author

This works if I add theme names to a language json file manually, but I'm really not sure how the interaction with Transifex operates. Is this enough to add a new string to the translation, or does it require a different approach?

@calmh

calmh commented Mar 8, 2021

Copy link
Copy Markdown
Member

We have tooling to add things automatically to lang-en.json, but things can also be added there manually and will be allowed to stay there. That file is read by transifex automatically.

I'm not sure this is entirely great as-is though, as you'll get rather context-free strings to translate. And perhaps we shouldn't translate the autofixed "theme name" but rather a key like theme-key-default to something human readable like The default theme, I don't know...

@tomasz1986

tomasz1986 commented Mar 9, 2021 •

Copy link
Copy Markdown
Member Author

I'm not sure this is entirely great as-is though, as you'll get rather context-free strings to translate.

That is true, although there are several strings like that already, e.g. "Off", etc. If there is a better way to do this, I'm all for it.

Although, to tell the truth, even if there is a context, it is still often necessary to search for a particular string in the HTML. For instance, I have been going through the Polish translation recently, and in many cases it is impossible to accurately translate things like adjectives, etc. without the related nouns (due to differences in gender, plurality, etc.). Same goes for some English words that don't have direct counterparts, and thus need to be translated differently depending on the usage.

@st-review

Copy link
Copy Markdown

🤖 beep boop

I'm going to close this pull request as it has been idle for more than 90 days.

This is not a rejection, merely a removal from the list of active pull requests that is periodically reviewed by humans. The pull request can be reopened when there is new activity, and merged once any remaining issues are resolved.

@st-review st-review closed this Aug 11, 2021
@tomasz1986

Copy link
Copy Markdown
Member Author

I still think it would be nice to translate the theme names, even if only these short strings. This is because at the moment there are quite a few languages listed on Transifex that are marked as translated in 100% already. However, even in those languages, the only part of the software remaining untranslated are these theme names (apart from debugging options, error logs, and similar).

In contrary to some of the other strings, themes are something that any user is likely going to encounter. Therefore, leaving these untranslated makes the software feel less "complete". I'd say this is especially true when using non-Latin languages, because then these theme names really do stick out.

@acolomb acolomb mentioned this pull request Oct 17, 2021
1 of 2 tasks
@acolomb

acolomb commented Oct 17, 2021

Copy link
Copy Markdown
Member

Note that your approach here causes a translation string {{ themeName(theme) }} to be added. That's not desired nor does it work as intended.

I proposed a different approach based on the theme-name-... proposal above in #8006.

@tomasz1986
tomasz1986 deleted the tomasz86-gui-translatethemenames branch January 1, 2022 18:44
@calmh calmh added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Aug 11, 2022
@syncthing syncthing locked and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants