locked
How to fix text display area in multilingual app? RRS feed

  • Question

  • User1042252450 posted

    Hi all,

     

        I have implemented multilingual in my application. The text display is not proper for different language. For example in Spanish the label text is fully visible but if it will display in french then the text width is getting increased so it is not fully visible and for some other langauge it comes in second line, how to set the width and height according to langaue or is there any generic format to set?


    Thanks!

    Tuesday, November 30, 2010 8:07 AM

Answers

  • User-519136805 posted

    If you want to control all your UI issues for Multi-lingual site , then i would prefer to create different themes/CSS for each culture & let your designer knows that i want to have different css/themes for your english , french , dutch etc... version site.

    so that they will do their work & as a programmer you just need to change theme/css of the pages/masterpages based on the current culture of the site.

    Setting width/height of labels also effects other parts of the page & disturb whole UI of the site. i always prefer to create different css classes for each controls on the page..so thy gets adjusted as Language changes..

    Hope this will help !!!



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 8, 2010 1:45 AM

All replies

  • User384031199 posted

    Hi,

    Can you post the mark up here?

     

    Tuesday, November 30, 2010 9:34 AM
  • User-699953111 posted

    U can create a custom Label o custom Control to display text.

    Before render the text u can check the length and adjust the width
    of control.


    Monday, December 6, 2010 7:59 AM
  • User-519136805 posted

    If you want to control all your UI issues for Multi-lingual site , then i would prefer to create different themes/CSS for each culture & let your designer knows that i want to have different css/themes for your english , french , dutch etc... version site.

    so that they will do their work & as a programmer you just need to change theme/css of the pages/masterpages based on the current culture of the site.

    Setting width/height of labels also effects other parts of the page & disturb whole UI of the site. i always prefer to create different css classes for each controls on the page..so thy gets adjusted as Language changes..

    Hope this will help !!!



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 8, 2010 1:45 AM