News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Initial language selection box is too small

Started by Spike, March 01, 2012, 10:23:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spike

I think the initial language selection box is too small.

Found in Simutrans 111.2.1, default installation.



Fabio

This dialog could indeed use more space. Anyway when it's open you have no need to see the map.

Lmallet


prissi

This dialog must fit on the tinyest devices and is usually only shown a single time at all. But all languages shoudl be visible.

VS

It seems that my test language was in your export :-( It pushes one item below end of window, without it things would be fine.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Fabio

IMHO given the base dimensions, the dialog should either
1) resize dynamically
2) add scroll bars.
It shouldn't be needed 99% of times, but in this case it would have helped.

isidoro

I can see your hand here, prissi (the flags)   ;)

I don't want to be picky, so please ignore these remarks about the dialog if you feel like it:

       
  • some of the text runs over the flags
  • some of the names of the languages are in English, some are the native name
  • I miss diacritics in some of them: French, Spanish, Catalonian, ...

Zeno

Quote from: isidoro on March 01, 2012, 06:15:13 PM
I miss diacritics in some of them: French, Spanish, Catalonian, ...
I can see diacritics in texts when playing in Spanish as well as Catalan (not catalonian). Did you mean another thing?
About language names, all of them should be written in native name IMHO, but I don't know if there's any issue with that or it's simply the lack of a rule.

PS:@isidoro: You meant in the native name, of course... now I realize, sorry! Maybe there's a problem displaying such characters in that window... elsewhere in the game they appear to be ok though.

prissi

Diacritics and anything else is not possible with this dialog, as only the latin1 base font is loaded at this time.

I have palinning for a long time to discard this dialog on startup, as the language settings can be either guessed from the environment or with windows functions.

Dwachs

Parsley, sage, rosemary, and maggikraut.

Ashley

Quote from: prissi on March 01, 2012, 08:09:27 PM
I have palinning for a long time to discard this dialog on startup, as the language settings can be either guessed from the environment or with windows functions.

If this is done, it would probably be best done via a call to a function in the simsys_X OS-specific files (per-platform).
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

isidoro

In Linux, and probably other UNICes, it is very easy.  The relevant function is setlocale, in locale.h

prissi

#12
Infourtunately this does not neccessarily returns teh same on any system:
Quote
On success, A pointer to a C string identifying the locale currently set for the category. If category is LC_ALL and different parts of the locale are set to different values, the string returned gives this information in a format which may vary between compiler implementations.

WIndows for instance returns "German_Germany.1252"

isidoro

There is always the possibility to check more prevalent systems (Windows, Linux, etc.) and default to the former behavior if now known.  A command-line option would also be sensible.

prissi

Commandline option exists, otherwise a server could never set its language ...

I added some code which works for Linux, Haiku and Windows (all needing very different code).