Buttons translation

1 Answer 180 Views
Button Localization
Nancy
Top achievements
Rank 1
Nancy asked on 02 Jul 2021, 08:58 AM

Hello!

Do you guys have any tips on how to design buttons so that they would look good after translation into foreign languages, like German or Korean? After translation text can be too long

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Jul 2021, 08:46 AM

Hi Nancy,

I the width property is not set (default case) the button will accommodate the whole text and will be resized accordingly:

<telerik:RadButton RenderMode="Lightweight" ID="Button1" runat="server"
                        Text="Standard Button With No Icons and Very Long Text Inside">
</telerik:RadButton>

If the width property is set, you can cut the text using the text-overflow: ellipsis CSS trick shown below:

<style>
    .RadButton .rbText {
        display: block;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
</style>
<telerik:RadButton RenderMode="Lightweight" ID="Button1" runat="server" Width="80px"
    Text="Standard Button With No Icons and Very Long Text Inside">
</telerik:RadButton>

 

 

Best Regards,
Rumen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Button Localization
Asked by
Nancy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or