Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7882659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:20:13+00:00 2026-06-03T04:20:13+00:00

Say we have an overlay DHTML panel on a web page that contains two

  • 0

Say we have an overlay DHTML panel on a web page that contains two buttons in the top occupying whole width of the dialog, like this:

panel

Text for Button 1 and Button 2 should be localized. Content of checkbox group is static and should not be localized.

There can be a big difference between button text width in different languages (~100% extra space in comparison with English version).

The question is which strategy to apply for sizing Button 1 and Button 2 depending on the length of the text content:

  1. Make buttons fixed width and truncate text content with ellipsis.
  2. Make buttons fixed width and wrap text content on the subsequent lines making buttons grow in height.
  3. Make buttons fixed width but make them wide enough to host text in all languages without truncation or wrapping.
  4. Make buttons dynamically adjust width and make panel grow horizontally with their size.

I am leaning towards using third or forth option according to the several UI localization best practices that were found:

  • Preparing the User Interface for Localization
  • Best Practices for Globalization and Localization
  • Globalization Step-by-Step – UI Considerations

Still we have some debate in the team discussing the best option and it would be interesting to hear concious outer voice of the community.

I am interested in the best approach for this specific case as well general guidelines for solving web UI sizing issues in regards of localization.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:20:14+00:00Added an answer on June 3, 2026 at 4:20 am

    As you perhaps know, text shortened with ellipsis (or with a single dot) could be incomprehensible:

    How compr. is th.?

    You should seen a lot of this staff in mobile area (phones, tablets, etc.), such translations look ugly. OK, with lower screen resolutions you actually end up with no choice (unless you can create some auto-scrolling text). But in case of web interface you certainly have a choice.

    Typically, there are two kind of solutions corresponding to your points #3 and #4. Personally, I am leaning to #4 – make buttons auto-sizable. This of course will result with inconsistently sized buttons, but there is little we can do about it.

    If you cannot use solution #4 (i.e. UI Designer is strong opponent of this technique), you may modify solution #3 a bit. Basically, what I used in past projects was, I had buttons of fixed sizes and default size was capable to fit most of languages (except Polish and Russian of course), but I also had several CSS classes that defined wider buttons. When localizing into “too long” languages I simply used the most wide button class I could. If the text still didn’t fit, then I asked the translators for shortening it (usually re-phrasing it and shorten the text with a single dot as a last resort).
    However, please keep in mind that it increases localization costs. This is the reason I would not recommend this method.

    As for solution #2, you will end up with ugly looking UI. You simply have no control over how browser will wrap a text, and you will have a lot of texts that go outside the button clipping rectangle (overlap it).

    As for solution #1, using ellipsis is a bad idea for two reasons. First one is, ellipsis is not valid in many languages (this especially regards to Asian languages). The second one is, as I understand you want to do that automatically. In this case, you won’t be able to measure strings – their actual, on screen size, written with a fall-back font. In case of web UI, you don’t know whether user has particular font installed, so you will be guessing the size (OK, with Dojo you can theoretically measure it on the client side). This will of course result in overlapping text (if you decide on dynamic shortening over your chosen font) or totally incomprehensible text (if you decide on shortening after say 8 characters). I had a project which started to use static shortening, it was a total mess. Then we switch to dynamic and it is still not good enough.
    To counter potential UI Designer argument that goes “we have no space for string expansion”, I can only say that means that you designed the interface incorrectly for it is too crowded. This is the point where I18n goes hand in hand with UI design best practices: strive for simplicity (in UI design). The result would be easy to use and easy to localize application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got two images, say png and jpeg and I need to overlay
Say I have a method that returns this. Vector[ (PkgLine, Tree) ]() I want
Say I have four points that define a Bézier curve. I'd like to implement
Say I have info.php page with user info (id, name, age, etc). On this
I have a big image that has to go in the background. Say the
How can create overlay div with black background lets say, I have an anchor
I have two bitmap images. One contains a picture taken with a usb camera.
I have two images with different IDs, lets say #pic1 and #pic2. I tried
I am using JQuery Overlay from FlowPlayer. I have this that opens my overlay:
Let's say I have: <div> hello <div>hello</div> </div> I'd like the two texts to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.