~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/sharebox/CShareBox.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-28 16:17:15 UTC
  • Revision ID: admin@quickmediasolutions.com-20120628161715-hot2y9wx30m0ezw9
Added tr() where appropriate to facilitate translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
 
89
89
void CShareBox::CreateContextMenu()
90
90
{
91
 
    m_context.addAction("Add ShareBox", this, SIGNAL(AddShareBox()));
92
 
    m_context.addAction("Remove",       this, SIGNAL(Remove()));
 
91
    m_context.addAction(tr("Add ShareBox"), this, SIGNAL(AddShareBox()));
 
92
    m_context.addAction(tr("Remove"),       this, SIGNAL(Remove()));
93
93
    m_context.addSeparator();
94
 
    m_context.addAction("Quit NitroShare", QApplication::instance(), SLOT(quit()));
 
94
    m_context.addAction(tr("Quit NitroShare"), QApplication::instance(), SLOT(quit()));
95
95
}
96
96
 
97
97
void CShareBox::SetHighlight(bool highlight)
203
203
    painter.setFont(m_text_font);
204
204
 
205
205
    /* Draw the shadow for the text followed by the actual text. */
206
 
    QString text = m_id.isEmpty()?"[Select Machine]":m_name;
 
206
    QString text = m_id.isEmpty()?tr("[Select Machine]"):m_name;
207
207
 
208
208
    painter.setPen(Qt::black);
209
209
    painter.drawText(2, 158, 256, 30, Qt::AlignHCenter | Qt::AlignVCenter, text);