i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").tqarg(p_map->count(false)),1,1,p_map->count(false),1,&ok);
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").arg(p_map->count(false)),1,1,p_map->count(false),1,&ok);
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").tqarg(p_map->count(false)),1,1,p_map->count(false),1,&ok);
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").arg(p_map->count(false)),1,1,p_map->count(false),1,&ok);
if(ok)
{
removeOldAskWidget();
@ -201,7 +201,7 @@ void kgeography::askMap()
inti;
boolok;
showResultsDialog();
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").tqarg(p_map->count(true)),1,1,p_map->count(true),1,&ok);
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").arg(p_map->count(true)),1,1,p_map->count(true),1,&ok);
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").tqarg(p_map->count(false)),1,1,p_map->count(false),1,&ok);
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").arg(p_map->count(false)),1,1,p_map->count(false),1,&ok);
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").tqarg(p_map->count(false)),1,1,p_map->count(false),1,&ok);
i=KInputDialog::getInteger(i18n("Number of Questions"),i18n("How many questions do you want? (1 to %1)").arg(p_map->count(false)),1,1,p_map->count(false),1,&ok);
if(aux=="nothing")KMessageBox::error(this,i18n("You have found a bug in a map. Please contact the author and tell the %1 map has nothing associated to color %2,%3,%4.").tqarg(p_map->getFile()).tqarg(tqRed(c)).tqarg(tqGreen(c)).tqarg(tqBlue(c)));
if(aux=="nothing")KMessageBox::error(this,i18n("You have found a bug in a map. Please contact the author and tell the %1 map has nothing associated to color %2,%3,%4.").arg(p_map->getFile()).arg(tqRed(c)).arg(tqGreen(c)).arg(tqBlue(c)));
p_error=i18n("%1 is not a valid tag inside tag %2. Valid tags are %3, %4 and %5").tqarg(name).tqarg(prev).tqarg("mapFile").tqarg("name").tqarg("division");
p_error=i18n("%1 is not a valid tag inside tag %2. Valid tags are %3, %4 and %5").arg(name).arg(prev).arg("mapFile").arg("name").arg("division");
p_error=i18n("%1 is not a valid tag inside tag %2. Valid tags are %3, %4, %5, %6 and %7").tqarg(name).tqarg(prev).tqarg("color").tqarg("name").tqarg("ignore").tqarg("capital").tqarg("flag");
p_error=i18n("%1 is not a valid tag inside tag %2. Valid tags are %3, %4, %5, %6 and %7").arg(name).arg(prev).arg("color").arg("name").arg("ignore").arg("capital").arg("flag");
if(!b)p_error=i18n("There is a division without name");
b=b&&p_map->addDivision(p_division);
if(!b)p_error=i18n("There is already either a division called %1 or a division with the same colors as %2").tqarg(p_division->getName()).tqarg(p_division->getName());
if(!b)p_error=i18n("There is already either a division called %1 or a division with the same colors as %2").arg(p_division->getName()).arg(p_division->getName());
b=b&&(p_capitalSet||!p_division->canAsk(false));
if(!b)p_error=i18n("Division %1 has no capital").tqarg(p_division->getName());
if(!b)p_error=i18n("Division %1 has no capital").arg(p_division->getName());
<string>Time during which the Hint is displayed</string>
</property>
<property name="whatsThis" stdset="0">
<string>You can set the time for displaying the Hint tooltip. Default is 3 seconds but younger tqchildren might need longer time to be able to read the Hint.</string>
<string>You can set the time for displaying the Hint tooltip. Default is 3 seconds but younger children might need longer time to be able to read the Hint.</string>
</property>
</widget>
<spacer row="2" column="0">
@ -178,7 +178,7 @@
<string>Time during which the Already Guessed tooltip is displayed</string>
</property>
<property name="whatsThis" stdset="0">
<string>You can set the time for displaying the Already Guessed tooltip after you try a letter that was already guessed. Default is 3 seconds but younger tqchildren might need longer time to be able to understand they are trying a letter that was already guessed.</string>
<string>You can set the time for displaying the Already Guessed tooltip after you try a letter that was already guessed. Default is 3 seconds but younger children might need longer time to be able to understand they are trying a letter that was already guessed.</string>
<string>Enter the text for your label here and press "Next".
If you want to show variable parts, then put %1, %2, ... at the appropriate places (e.g. "This segment is %1 units long.").</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -71,7 +71,7 @@ If you want to show variable parts, then put %1, %2, ... at the appropriate plac
<property name="text">
<string>Now select the argument(s) you need. For every argument, click on it, select an object and a property in the Kig window, and click finish when you are done...</string>
_ResultView->append(TQString("<p>%1</p>").tqarg(i18n("HTML Entity: %1").tqarg(TQString("&#x%1;").tqarg(TQString::number(toAddKanji.kanji().tqat(0).tqunicode(),16)))));// show html entity
_ResultView->append(TQString("<p>%1</p>").arg(i18n("HTML Entity: %1").arg(TQString("&#x%1;").arg(TQString::number(toAddKanji.kanji().at(0).tqunicode(),16)))));// show html entity
// now show some compounds in which this kanji appears
TQStringkanji=toAddKanji.kanji();
_ResultView->addHeader(i18n("%1 in compounds").tqarg(kanji));
_ResultView->addHeader(i18n("%1 in compounds").arg(kanji));
html.append(i18n(" Common Miscount: %1.").tqarg(result.miscount()));
html.append(i18n(" Common Miscount: %1.").arg(result.miscount()));
if(!!rad.radical())
html.append(i18n(" Largest radical: %1, with %2 strokes.").tqarg(TQString("<a href=\"__radical:%1\">%2</a>").tqarg(rad.radical()).tqarg(rad.radical())).tqarg(rad.strokes()));
html.append(i18n(" Largest radical: %1, with %2 strokes.").arg(TQString("<a href=\"__radical:%1\">%2</a>").arg(rad.radical()).arg(rad.radical())).arg(rad.strokes()));
TQSimpleRichTextrichText(title.isNull()?printText:i18n("<h1>Search for \"%1\"</h1>").tqarg(title)+printText,font(),context(),styleSheet(),mimeSourceFactory(),body.height(),TQt::black,false);
TQSimpleRichTextrichText(title.isNull()?printText:i18n("<h1>Search for \"%1\"</h1>").arg(title)+printText,font(),context(),styleSheet(),mimeSourceFactory(),body.height(),TQt::black,false);
if(m_languages[Prefs::languageNumber()]=="cs"||m_languages[Prefs::languageNumber()]=="da"||m_languages[Prefs::languageNumber()]=="sk"||m_languages[Prefs::languageNumber()]=="es"||m_languages[Prefs::languageNumber()]=="de"||m_languages[Prefs::languageNumber()]=="nds")//Dutch, English, French and Italian have no special characters
m_secondToolbar->insertButton(charIcon(allData[i].at(0)),i,TQT_SIGNAL(clicked()),TQT_TQOBJECT(this),TQT_SLOT(slotPasteChar()),true,i18n("Inserts the character %1").tqarg(allData[i]),i+1);
m_secondToolbar->insertButton(charIcon(allData[i].at(0)),i,TQT_SIGNAL(clicked()),TQT_TQOBJECT(this),TQT_SLOT(slotPasteChar()),true,i18n("Inserts the character %1").arg(allData[i]),i+1);
if(!KIO::NetAccess::exists(url,false,m_parent)||KMessageBox::warningContinueCancel(m_parent,i18n("A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?").tqarg(url.url()),i18n("Overwrite File?"),KGuiItem(i18n("&Overwrite")))==KMessageBox::Continue)
if(!KIO::NetAccess::exists(url,false,m_parent)||KMessageBox::warningContinueCancel(m_parent,i18n("A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?").arg(url.url()),i18n("Overwrite File?"),KGuiItem(i18n("&Overwrite")))==KMessageBox::Continue)
{
if(!kmplotio->save(url))
KMessageBox::error(m_parent,i18n("The file could not be saved"));
@ -293,7 +293,7 @@ void MainDlg::slotExport()
if(!url.isEmpty())
{
// check if file exists and overwriting is ok.
if(KIO::NetAccess::exists(url,false,m_parent)&&KMessageBox::warningContinueCancel(m_parent,i18n("A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?").tqarg(url.url()),i18n("Overwrite File?"),KGuiItem(i18n("&Overwrite")))!=KMessageBox::Continue)return;
if(KIO::NetAccess::exists(url,false,m_parent)&&KMessageBox::warningContinueCancel(m_parent,i18n("A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?").arg(url.url()),i18n("Overwrite File?"),KGuiItem(i18n("&Overwrite")))!=KMessageBox::Continue)return;
if(KMessageBox::warningContinueCancel(this,i18n("Line %1 is not a valid parameter value and will therefore not be included. Do you want to continue?").tqarg(i))==KMessageBox::Cancel)
if(KMessageBox::warningContinueCancel(this,i18n("Line %1 is not a valid parameter value and will therefore not be included. Do you want to continue?").arg(i))==KMessageBox::Cancel)
if(!KIO::NetAccess::exists(url,false,this)||KMessageBox::warningContinueCancel(this,i18n("A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?").tqarg(url.url()),i18n("Overwrite File?"),KGuiItem(i18n("&Overwrite")))==KMessageBox::Continue)
if(!KIO::NetAccess::exists(url,false,this)||KMessageBox::warningContinueCancel(this,i18n("A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?").arg(url.url()),i18n("Overwrite File?"),KGuiItem(i18n("&Overwrite")))==KMessageBox::Continue)
if(KMessageBox::warningContinueCancel(0,i18n("Are you sure you want to remove the %1 link?").tqarg(currentItemTitle),i18n("Delete Confirmation"),KStdGuiItem::del())!=KMessageBox::Continue)
if(KMessageBox::warningContinueCancel(0,i18n("Are you sure you want to remove the %1 link?").arg(currentItemTitle),i18n("Delete Confirmation"),KStdGuiItem::del())!=KMessageBox::Continue)
p.drawText(0,fov->ViewBox->contentsRect().height(),i18n("angular size in arcminutes","%1 arcmin").tqarg(KGlobal::locale()->formatNumber(f->size()),3));
p.drawText(0,fov->ViewBox->contentsRect().height(),i18n("angular size in arcminutes","%1 arcmin").arg(KGlobal::locale()->formatNumber(f->size()),3));
KMessageBox::error(this,i18n("Expose duration is invalid. %1 supports expose durations from %2 to %3 seconds only.").tqarg(currentCCD).tqarg(exposeElem->min).tqarg(exposeElem->max));
KMessageBox::error(this,i18n("Expose duration is invalid. %1 supports expose durations from %2 to %3 seconds only.").arg(currentCCD).arg(exposeElem->min).arg(exposeElem->max));
if(KMessageBox::warningContinueCancel(0,i18n("Are you sure you want to remove the %1 client?").tqarg(clientListView->currentItem()->text(1)),i18n("Delete Confirmation"),KStdGuiItem::del())!=KMessageBox::Continue)
if(KMessageBox::warningContinueCancel(0,i18n("Are you sure you want to remove the %1 client?").arg(clientListView->currentItem()->text(1)),i18n("Delete Confirmation"),KStdGuiItem::del())!=KMessageBox::Continue)
message=i18n("%1: Spitzer Space Telescope, courtesy NASA/JPL-Caltech [public domain]").tqarg(longname());
message=i18n("%1: Spitzer Space Telescope, courtesy NASA/JPL-Caltech [public domain]").arg(longname());
//SEDS Image
}elseif(imageTitle==i18n("Show SEDS Image")){
message=i18n("%1: SEDS, http://www.seds.org [free for non-commercial use]").tqarg(longname());
message=i18n("%1: SEDS, http://www.seds.org [free for non-commercial use]").arg(longname());
//Kitt Peak AOP Image
}elseif(imageTitle==i18n("Show KPNO AOP Image")){
message=i18n("%1: Advanced Observing Program at Kitt Peak National Observatory [free for non-commercial use; no physical reproductions]").tqarg(longname());
message=i18n("%1: Advanced Observing Program at Kitt Peak National Observatory [free for non-commercial use; no physical reproductions]").arg(longname());
message=i18n("%1: National Optical Astronomy Observatories and AURA [free for non-commercial use]").tqarg(longname());
message=i18n("%1: National Optical Astronomy Observatories and AURA [free for non-commercial use]").arg(longname());
//VLT Image
}elseif(imageTitle.contains("VLT")){
message=i18n("%1: Very Large Telescope, operated by the European Southern Observatory [free for non-commercial use; no reproductions]").tqarg(longname());
message=i18n("%1: Very Large Telescope, operated by the European Southern Observatory [free for non-commercial use; no reproductions]").arg(longname());
if(KMessageBox::warningContinueCancel(0,i18n("Are you sure you want to remove %1?").tqarg(indi_driver->devices[finalIndex]->label),i18n("Delete Confirmation"),KStdGuiItem::del())!=KMessageBox::Continue)
if(KMessageBox::warningContinueCancel(0,i18n("Are you sure you want to remove %1?").arg(indi_driver->devices[finalIndex]->label),i18n("Delete Confirmation"),KStdGuiItem::del())!=KMessageBox::Continue)
@ -141,7 +141,7 @@ This Wizard will help you to connect to your telescope and control it from KStar
<br><br>
Please click next to continue.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -167,7 +167,7 @@ Please click next to continue.</string>
Please select your telescope model from the list below. Click next after selecting a model.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -274,12 +274,12 @@ Please select your telescope model from the list below. Click next after selecti
<property name="text">
<string><h3>2. Align Your Telescope</h3>
You need to align your telescope before you can control it properly from KStars. Please refer to your telescope manual for tqalignment instructions.
You need to align your telescope before you can control it properly from KStars. Please refer to your telescope manual for alignment instructions.
<br><br>
After a successful tqalignment, connect your telescope's RS232 interface to your computer's serial or USB port.
After a successful alignment, connect your telescope's RS232 interface to your computer's serial or USB port.
<br><br><br>Click next to continue.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -306,7 +306,7 @@ After a successful tqalignment, connect your telescope's RS232 interface to your
Verify if the following time, date, and location settings are correct. If any of the settings are incorrect, you can correct them via the <tt>Set time</tt> and <tt>Set Location</tt> buttons.
</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -524,7 +524,7 @@ Verify if the following time, date, and location settings are correct. If any of
Enter the port number your telescope is connected to. If you only have one serial port in your computer, the port is usually <tt>/dev/ttyS0</tt>
<br><br>If you are unsure about the port number, you can leave the field empty and KStars will try to scan the ports for attached telescopes. Beware that the autoscan process might take a few minutes to complete. </string>
emitErrorMsg(node->getToken(),i18n("The %1 command was called with %2 but needs 1 parameter.","The %1 command was called with %2 but needs %n parameters.",quantity).tqarg(node->getLook()).tqarg(nodeSize),errorCode);
emitErrorMsg(node->getToken(),i18n("The %1 command was called with %2 but needs 1 parameter.","The %1 command was called with %2 but needs %n parameters.",quantity).arg(node->getLook()).arg(nodeSize),errorCode);
}
else
{
emitErrorMsg(node->getToken(),i18n("The %1 command was called with %2 but only accepts 1 parameter.","The %1 command was called with %2 but only accepts %n parameters.",quantity).tqarg(node->getLook()).tqarg(nodeSize),errorCode);
emitErrorMsg(node->getToken(),i18n("The %1 command was called with %2 but only accepts 1 parameter.","The %1 command was called with %2 but only accepts %n parameters.",quantity).arg(node->getLook()).arg(nodeSize),errorCode);
}
returnfalse;
}
@ -1093,16 +1093,16 @@ bool Executer::checkParameterType(TreeNode* node, int valueType, int errorCode)
{
casestringValue:
if(quantity==1)
emitErrorMsg(node->getToken(),i18n("The %1 command only accepts a string as its parameter.").tqarg(node->getLook()),errorCode);
emitErrorMsg(node->getToken(),i18n("The %1 command only accepts a string as its parameter.").arg(node->getLook()),errorCode);
else
emitErrorMsg(node->getToken(),i18n("The %1 command only accepts strings as its parameters.").tqarg(node->getLook()),errorCode);
emitErrorMsg(node->getToken(),i18n("The %1 command only accepts strings as its parameters.").arg(node->getLook()),errorCode);
break;
casenumberValue:
if(quantity==1)
emitErrorMsg(node->getToken(),i18n("The %1 command only accepts a number as its parameter.").tqarg(node->getLook()),errorCode);
emitErrorMsg(node->getToken(),i18n("The %1 command only accepts a number as its parameter.").arg(node->getLook()),errorCode);
else
emitErrorMsg(node->getToken(),i18n("The %1 command only accepts numbers as its parameters.").tqarg(node->getLook()),errorCode);
emitErrorMsg(node->getToken(),i18n("The %1 command only accepts numbers as its parameters.").arg(node->getLook()),errorCode);
// TODO maybe this language name can be more pretty by not using ".left(2)", ie "American English" would than be possible... [if this is possible this should be fixed at more places.]
/*@todo this code doesn't work very well. Have to look in more detail on how Kate does it.
if(doc_url.path()==path)
{
TQStringstr=i18n("The file %1 was changed (modified) on disc by another program!\n\n").tqarg(doc_url.fileName());
TQStringstr=i18n("The file %1 was changed (modified) on disc by another program!\n\n").arg(doc_url.fileName());
inti=KMessageBox::warningYesNoCancel(0,str+i18n("Do you want to reload the modified file? Data loss may occur."),TQString(),i18n("Reload"),i18n("Do Not Reload"));