[Kstars-devel] Other translation problems...

Luciano Montanaro mikelima at cirulla.net
Sun Dec 9 11:45:50 CET 2007


There are messages in the .po files that look like this:

"<html><head><meta name=\"qrichtext\" content=\"1\" /></head><body style=\" "
"white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-"
"weight:400; font-style:normal; text-decoration:none;\"><p style=\" margin-"
"top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-"
"indent:0; text-indent:0px; font-size:10pt; font-weight:600;\">Select bright "
"objects</p><p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-"
"bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-"
"indent:0px; font-size:10pt;\"></p><p style=\" margin-top:0px; margin-"
"bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-"
"indent:0px;\">On this page, you can limit your observing list to only those "
"objects brighter than a given magnitude.  Be careful with this selection, "
"because KStars does not have a magnitude for every object in its database.  "
"You need to indicate whether you want to include objects with an undefined "
"magnitude.</p><p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-"
"bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-"
"indent:0px;\"></p><p style=\" margin-top:0px; margin-bottom:0px; margin-"
"left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">If you 
do "
"not wish to exclude faint objects with this selection, simply leave the "
"checkbox below unchecked.</p><p style=\"-qt-paragraph-type:empty; margin-"
"top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-"
"indent:0; text-indent:0px;\"></p><p style=\" margin-top:0px; margin-"
"bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-"
"indent:0px;\">This is the final page of the Observing List Wizard.  You can "
"go back and modify previous pages with the <span style=\" font-weight:600;"
"\">Back</span> button.  When you are satisfied, press the <span style=\" "
"font-weight:600;\">Finish</span> button to exit the wizard, and the "
"Observing List tool will be populated with the objects you have specified "
"here.</p><p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-"
"bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-"
"indent:0px;\"></p></body></html>"


This should render similarly, but it's easier for translators to read:

"<html><body><p>"
"Select bright "
"objects</p><p>"
"</p><p>"
"On this page, you can limit your observing list to only those "
"objects brighter than a given magnitude.  Be careful with this selection, "
"because KStars does not have a magnitude for every object in its database.  "
"You need to indicate whether you want to include objects with an undefined "
"magnitude.</p><p>"
"</p><p>"
"If you do "
"not wish to exclude faint objects with this selection, simply leave the "
"checkbox below unchecked.</p><p>"
"></p><p>"
"This is the final page of the Observing List Wizard.  You can "
"go back and modify previous pages with the <b>"
"Back</b> button.  When you are satisfied, press the <b>"
"Finish</b> button to exit the wizard, and the "
"Observing List tool will be populated with the objects you have specified "
"here.</p><p></p>
"</body></html>"

It is a due to known problem with Qt Designer, the workaround is to hand-edit 
the .ui files.

Luciano


More information about the Kstars-devel mailing list