GUI size and translations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GUI size and translations

Gabriele Greco-3
I've recently received the localization strings for my application in a few
languages and I've found that few translations keep the gui minimum size
larger that the screen of many notebook (my target is to make it fit 1280
pixels).

I've not found an easy way to understand what string is causing the
problem, also because I've a 12 pages notebook that is used to display the
various GUI layouts (and one of the 12 may be the culprit of the gui
horizontal grow).

I'm quite new to localization and gettext and I was wondering if there is a
standard way to check for this kind of problems without having to explore
every single mask of the program with every supported language... (actually
I will be already in the order of several hundreds tests...)

--
*Bye,*
* Gabry*
_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: GUI size and translations

Emmanuele Bassi
The usual way to deal with this is to set a `max-width-chars` on the
labels and set the `ellipsize`, `lines`, and `wrap` properties; if
you're using gettext, then you can leave a translator comment (which
will get included in the POT file) to tell the translator how many
characters are available for that particular string. Then you wait for
the bug reports saying that the localisation is broken in a specific
language, and you ask the translator to use a shorter word or
sentence.

Sadly, translations will always be problematic on UIs unless you
centralise all the localisations in place and you run them through a
centralised editorial/QA process.

Ciao,
 Emmanuele.


On 26 April 2017 at 11:33, Gabriele Greco <[hidden email]> wrote:

> I've recently received the localization strings for my application in a few
> languages and I've found that few translations keep the gui minimum size
> larger that the screen of many notebook (my target is to make it fit 1280
> pixels).
>
> I've not found an easy way to understand what string is causing the
> problem, also because I've a 12 pages notebook that is used to display the
> various GUI layouts (and one of the 12 may be the culprit of the gui
> horizontal grow).
>
> I'm quite new to localization and gettext and I was wondering if there is a
> standard way to check for this kind of problems without having to explore
> every single mask of the program with every supported language... (actually
> I will be already in the order of several hundreds tests...)
>
> --
> *Bye,*
> * Gabry*
> _______________________________________________
> gtk-app-devel-list mailing list
> [hidden email]
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



--
https://www.bassi.io
[@] ebassi [@gmail.com]
_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list