URL:
  <http://gna.org/bugs/?15727>

                 Summary: no support for auto linebreaks in caption= blocks
leads to problems
                 Project: Battle for Wesnoth
            Submitted by: ivanovic
            Submitted on: Sonntag 28.03.2010 um 15:14
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: mordante
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.0
        Operating System: any

    _______________________________________________________

Details:

If there is too much text in a caption= block the result is that the scenario
is not playable. A good example testcase is the german translation of line
1409 in data/multiplayer/scenarios/2p_Dark_Forecast.cfg.

To reproduce:
* switch to a width of 768px (eg by using the default res 1024x768)
* switch to the german translation
* start a game in "2S - Dunkle Aussichen (Überleben" (German name for Dark
Forecast)

Resulting error right at the start:



20100328 15:10:25 error general: Ein Fehler ist durch möglicherweise
ungültiges WML aufgetreten
Die Fehlermeldung ist:
Anzeigen eines Dialogfensters fehlgeschlagen. Es passt nicht in die aktuelle
Fenstergröße.
 
Wenn Ihr diesen Fehler meldet, gebt bitte diese Fehlermeldung an:
/src/wesnoth-1.8/src/gui/widgets/window.cpp:804 in function 'layout' found
the following problem: Failed to size window; wanted size 944,481 available
size 882,738 screen size 1024,768.



Translation: Showing the dialog failed, reason: not enough space in the
current window size. In general the size of text should not lead to such
problems since especially translations might use a lot more space than the
original version and translators can sadly not test every possible case. In
general such a case of "string can not be displayed" should not lead to the
scenario not working but either using a workaround (eg adding a newline) or
by not showing all of the string where such a workaround is not possible.
The same problem even occurs in the English version when trying to start Dark
Forecast in 800x600.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?15727>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to