PDA

View Full Version : Can I use a “\n” character in strings that are to be translated with Qt Linguist



stevenkeith
29th September 2009, 11:31
Hi,

I'm working on supporting different languages for our GUI. I'm having a problem translating strings that have a '\n' in them. They seem to be ignored.

In Qt Designer I have a QCheckBox with this in the text field:

Here's an \nexample that doesn't work

This appears in english in our french translation.

Having looked at the .ts XML it seems that the text after the '\n' is ommited (I guess this is why it doesn't get translated ?)

Does anyone have a way of including a newline in the original text?