2010-09-28, 10:11
I have a little issue with the font size and the len of text displayed inside a
Python code
My personal function do display several infos / warnings / errors looks like this ...
With the default english language most of the text is shown correctly ....
But as soon I change to German a few strings are to long to be displayed correctly. (On a single line)
It shows only a few points at the end. (like text.....)
* Is it possible to use a linebreak inside the strings.xml to be shown correctly
for a particular language ?
I saw inside the api documentation that it is possible to use multiple lines for a
dialog ....
heading : string or unicode - dialog heading.
line1 : string or unicode - line #1 text.
line2 : [opt] string or unicode - line #2 text.
line3 : [opt] string or unicode - line #3 text.
Is the len of the string that can be shown inside dialog.ok allways the same ?
(For example 35 Chars)
Independed from resolution and the used Theme ?
I hope somebody can give me a little tip ;-)
Python code
My personal function do display several infos / warnings / errors looks like this ...
Code:
#########################################################
# Function : GUIInfo #
#########################################################
# Parameter : #
# #
# Selector integer #
# #
# 0 Info #
# 1 Warning #
# 2 Error #
# 3 No text #
# #
# Info String to be shown inside Dialog-Box #
# #
# Returns : none #
#########################################################
def GUIInfo(Selector,Info):
dialog = xbmcgui.Dialog()
title = __language__(33214 + Selector)
selected = dialog.ok(title,Info)
return 0
#########################################################
With the default english language most of the text is shown correctly ....
But as soon I change to German a few strings are to long to be displayed correctly. (On a single line)
It shows only a few points at the end. (like text.....)
* Is it possible to use a linebreak inside the strings.xml to be shown correctly
for a particular language ?
I saw inside the api documentation that it is possible to use multiple lines for a
dialog ....
heading : string or unicode - dialog heading.
line1 : string or unicode - line #1 text.
line2 : [opt] string or unicode - line #2 text.
line3 : [opt] string or unicode - line #3 text.
Is the len of the string that can be shown inside dialog.ok allways the same ?
(For example 35 Chars)
Independed from resolution and the used Theme ?
I hope somebody can give me a little tip ;-)