Page 1 of 1

A http bug in the POT file?

Posted: 27 Oct 2008 02:22
by MT
Hi
I found one strange string - In the POT file there is a string (16855):
"This is VLC's skinnable interface. You can download skins at <a href="

but in modules/gui/qt4/ui/sprefs_interface.ui:155 this string is call:
("This is VLC's skinnable interface. You can download skins at <a href="http://www.videolan.org/vlc/skins.php"> ... ins.php</a> to customize your player.")

I think there is a bug with this http link. I tried to rename this string
but i still can not translate it. where is the bug? in the file sprefs_interface.ui or the POT file?

Thanks!

Michi

Re: A http bug in the POT file?

Posted: 27 Oct 2008 11:33
by xtophe
Yes this is a bug.
But not an easy one.

The problem is that qt stores the dialog in some .ui files which are some XML files.
And gettext which is the framework we use for the translation has been designed for C primarly.
And the way to store strings and particurarly to use special characters is different in XML and C.

So we got problem with the < instead of < by example and problem with the strings with url.

In 0.9-bugfix i got a crude and hugly workaround for the <. In master (1.0.0) i need to find a proper solution.

I was hoping to find a proper solution and use it for 0.9.x, but as i haven't yet, I think i'll expand the kludge which work for < to the strings with url