Text Wrapping I18N Labels

We are designing our solution to be i18n compatible, and we have several buttons that require descriptive labels. When placing the buttons, we have limited space to work with, and as they are roughly square in shape (to best accommodate touch screens and fingers) we place the labels below.

I know that the normal way to text wrap a Servoy label is to check the Use html checkbox in the Property Editor, but as we are using the I18N feature, it seems we are in a catch-22.

Some of our button labels WILL take up more room than we design for, and it would be very helpful if text wrap was automatic.

text_wrap.png

You can use html tags within i18n text as well.

Just put the i18n tags in the HTML using the %%tagname%% syntax.
Make sure you enable the displayTags property on the label.

Hope this helps.

Wow, it works! Although it’s a bit tedious to setup, I think this will be the way we will have to do it. Here’s the code that I actually used:

<html>
  <head>
    
  </head>
  <body>
    <div align="center">
      %%i18n:.mmnu.new_cust%%
    </div>
  </body>
</html>

Thanks for the super-fast replies. :)