karlos
(Karl-Josef Adler)
March 13, 2025, 4:07pm
1
OSM und das Forum sind Vielsprachig. Und es gibt Übersetzungsfunktionen. Alles toll?
Na ja. Ich öffne das Forum mit der Liste der neuen Themen. Da ich nur DE und EN kann, verstehe ich oft nicht mal den Titel der neuen Themen.
Ich hätte zwei “Lösungen”:
Man kann die Sprachen, die man versteht im Profil eingeben und
nur passende Themen werden angezeigt.
Die Title werden übersetzt angezeigt (was durch ein Symbol gekennzeichnet wird).
English wäre ok für die meisten, vermute ich.
mcliquid
(mcliquid)
March 13, 2025, 4:15pm
2
1 Like
mcliquid
(mcliquid)
March 13, 2025, 4:18pm
3
After some research, there was a PR already, but it was closed unfortunately:
main
← angusmcleod:topic_title_translations
offen 12:09PM - 28 Jul 22 UTC
> **Note** This PR relies on the existence of a new plugin outlet in the topic t… itle. Please review that first: https://github.com/discourse/discourse/pull/17647 before merging this.
Adds topic title translations. The UI is intended to be similar to the post translation UI, with some slight modifications for the different needs of topic titles.
- The site setting `translator_default_title_languages`, for certain locales to be auto-translated on topic creation, is there because the utility of translating topic titles includes that of users reading translations in the topic list itself. Requiring user interaction for each translation would not allow for this.
- The site setting `translator_show_topic_titles_in_user_locale` is there to also allow for the default behaviour with post translations, i.e. that a user only sees the translation upon clicking the translate button. Leaving this off and leaving `translator_default_title_languages` blank would allow a site admin to exactly replicate the translation behaviour with posts.
- Unlike for post translations, the original text is not visible by default after translation, however the user can see it in the tool tip. This could alternatively be added beneath the main title text, however consider that due to the need to show topic titles translations directly on the topic list (as mentioned above), if the topic view were to show the original title first, and the translation below (i.e. exactly matching the post translation UI) this would be an incongruous experience, as the user has only seen the translated text in the topic list.
### Notes
- The Amazon translation service has been incorrectly saving post translations like this: `{ “de” => [“de”, “translated de text”] }` (they should be saved like this: `{ “de” => [“translated de text”] }` . This has been also fixed as part of this PR (as the code needed updating to support title translations).
- The Microsoft translation service was previously the only service where if the post was longer than the service's character limit the translation would be rejected entirely instead of the post content being truncated to conform to the limit. This has been changed to the truncation approach in line with how the other services work. Again, this code needed to be updated anyway to add support for topic title translations.
See also: Allow Topic Title Translation - Feature - Discourse Meta
As I understand it, it is not technically possible at the moment, at least not until the PR is finalized.
3 Likes