WangDaYeeeeee / GeometricWeather

A Material Design Weather Application
GNU Lesser General Public License v3.0
2.44k stars 186 forks source link

Translated "today" text too long in widget #398

Open bartlibert opened 2 years ago

bartlibert commented 2 years ago

In Dutch, the text "today" translates as "vandaag", which is just a tiny bit too long on my screen and causes a wonky display

Screenshot_20220811-204427_Kvsitso

papjul commented 2 years ago

Well, we don't speak dutch, so we don't know what abbreviation would be good here.

Please edit this file and send your pull request: https://github.com/WangDaYeeeeee/GeometricWeather/blob/master/app/src/main/res/values-nl/strings.xml#L11

bartlibert commented 2 years ago

OK, I thought a better solution would be to detect this kind of overflow and use an ellipse or a smaller font or something. I can imagine it's not an issue on wider screens, so an abbreviation might not be the ideal solution for everybody?

Additionally, the text "today" ("vandaag") is also used in the app itself, where it does fit, so there an abbreviation is not necessary...

Not sure what the ideal solution would be.

papjul commented 2 years ago

This is what we do in other languages AFAIK (Aujourd'hui in French becomes Ajd).

If it is used somewhere else where there is enough space, then we could duplicate the translation string, one short version and one long.