Use translations with RichTextLabel

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RoniPerson

Is there a way to translate parts of RichTextLabel? Is there an translate bbcode? Or should I use a custom script?

:bust_in_silhouette: Reply From: exuin

You could try making your own custom BBCode effect with the offset property.

This would only work if the translation is as long as its key. As far as I understood you can not modify text with the effects. On top of this custom BBCode effects run every frame. Therefore the translation would happen every frame. This is unnecessary.

RoniPerson | 2020-10-09 18:22

After looking around, there is no way to alter the vertical alignment of text (unless you want to do something like take an image of the text and then use a BitmapFont with the ascent property altered to change its vertical alignment). I did submit a proposal on the proposal github, though.

exuin | 2020-10-11 03:50