rafatosta / zapzap

WhatsApp desktop application written in Pyqt6 + PyQt6-WebEngine.
https://rtosta.com/zapzap-web/
GNU General Public License v3.0
86 stars 2 forks source link

Display issues with long caracter strings #96

Closed rene-coty closed 2 years ago

rene-coty commented 2 years ago

I recently added a complete French translation to the code, but now that I have updated to version 4.0 I noticed some display issues that are caused by long caracter strings (because the original strings in english always tend to be shorter than their French equivalents, it has always been so..). As depicted in the screenshot below, long strings are truncated because the interface apparently doesn't adapt to their length.. (the 's' at the end of the translation of "User Management" doesn't appear, and the translation of the "New User" button is also truncated). Is there a way to make the UI more adaptive, depending on the size of the translated strings ? That would ease the use by non-english users.. Capture d’écran du 2022-08-20 21-50-03

rafatosta commented 2 years ago

Yes, it is possible.But we can have the freedom to translate the way you want it, it does not need to literally as I put it. For example in Portuguese I only put "Usuários" for User Management because it gets too big and on the only "Novo" button.

image

What I can suggest at the moment is to make the options shorter.But I will worry about the sizing in the next updates

rene-coty commented 2 years ago

OK then I will update the fr.po file, in the way you recommend