News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

r2610 - diferent empty line

Started by Frank, August 08, 2009, 11:50:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Frank

In the info window from buildings missing empty line ( see grafics ).



Dwachs

#2
thank you :) since the graphics of your original post were lost, the old bug report became useless.

in nightly revisino 2998.
Parsley, sage, rosemary, and maggikraut.

prissi

Well this means mostly that the linebreak should be added on simutranslator. Or rather, just the field of the ownership should be empty as before.

Frank

Quote from: prissi on January 03, 2010, 08:02:52 PM
Well this means mostly that the linebreak should be added on simutranslator. Or rather, just the field of the ownership should be empty as before.

Translator is not positive

tree info show the empty line
groundobj info show the empty line

citybuilding info show not empty line

add the line break to Translator then have tree and groundobj 2 line breaks and citybuilding 1 line break

prissi

Since buildings are most important trees and groundobj are imho wrong. Because an empty owner should omit it completely without a leading empty line.


MHD

While working with translator I also observed strange behaviour of \n.
Sometimes, the breaks are not made and buildings like attractions then show up the whole text. This can leads to station names with prosaic text.

The breaks between owner and translator text should be alright in the case of building. As shown in Franks post, the missing line looks not good. Maybe, the placement within the window could be changed, so no text will follow up the owners' name.

Dwachs

Would it help here to have the info window display html rather then text? Then these linebreak issues could be handled uniformly.

Maybe with a different translation string that describes the layout of the window (ie linebreaks defined by language).
Parsley, sage, rosemary, and maggikraut.

prissi

Well the current version handles it consistently: No line break after the name for everything, allowing for empty string when stuff is not owned (which is mostly the case) ALso Streets are owned, but this was not printed priviously.

Frank

move them into the trash this thread

the simpler way is a failure

It was passed on to the translator, they need the \n in the translator if they want to add a blank line for their language


add 2 bytes ( 4 by utf-8 ) to string table for translate

prissi

The only other way would be to check if the translation is empty. If yes, add no newline, else add two.