BlogNational Black Canadians Summit
Text expansion in bilingual interfaces
Jean Pierre Georges
Two places it showed up
On the National Black Canadians Summit site, the same loop showed up in small pieces after the large spacing was under control. “Accommodation & Location” had to sit on three centered lines without breaking the navigation bar. The stay button had to be the same width in English and in French.
The copy was doing its job. The English label fit the space it had been given. The French label was a longer string in the same control. The layout had been measured against the shorter language.
Size the control for the longer string
A button that changes width when the language changes feels like a different button. The stay button needed one width, wide enough for the French, still looking like the same control in English. The width is a property of the control, not a property of whichever label happens to be shorter.
The practical check is both locales on that control, at the width where it sits in the page. English confirms the control still looks intended when the label has room to spare. French confirms the label fits without wrapping into a second shape.
Give a navigation label its lines
A navigation bar is a fixed band. A label that needs more room will wrap into that band unless the wrap is decided. “Accommodation & Location” was given three centered lines, so the bar could hold the label in both languages without the item breaking the row.
Leaving the wrap to the browser means the English bar and the French bar are different designs. Setting the lines means both languages occupy the same place. The label is allowed to be long. The bar is not asked to improvise.
Both languages, then both widths
Text expansion sits on top of the bilingual structure. The two languages stay in step only when the layout was finished for both, which is the point of bilingual websites for Canadian organizations. A shared route can still ship a control that only fits English.
After the strings are paired, look at the control in French and in English, on a phone and on a wide screen. The Summit’s stay button and that navigation label were corrected the way the section spacing was corrected: at the place they failed, then at the other end.