When I localize an application with the new TLang and a translated text is much longer than the original, wouldn't it break my layout for example because a button could be to small to fit the translated text? How do you handle this? Or is it possible to adapt the font size to the length of the translated string (I know that I could do this for every element on my form for example with Canvas.TextWidth() but this would be a pain).

有帮助吗?

解决方案

Use autosize property, and align your Tlayout components to alContents of his parent.

Example:

Layou1.ALign:=alContents;
Label1.Autosize:=True;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top